mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mihai Sain <mihai.sain@microchip.com>
To: <ajay.kathat@microchip.com>, <claudiu.beznea@tuxon.dev>
Cc: <linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Mihai Sain" <mihai.sain@microchip.com>
Subject: [PATCH 2/6] wifi: wilc1000: Use wiphy_err() for interface limit error
Date: Mon, 23 Nov 2026 15:41:16 +0200	[thread overview]
Message-ID: <20261123134120.32638-3-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261123134120.32638-1-mihai.sain@microchip.com>

Use wiphy_err() instead of pr_err() when the maximum number of
concurrent interfaces is reached.

This adds wireless PHY device context to the error message,
making it easier to identify the device that triggered the error.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 drivers/net/wireless/microchip/wilc1000/cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c
index 3db290875ff4..429889a2f5ed 100644
--- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c
+++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c
@@ -1577,7 +1577,7 @@ static struct wireless_dev *add_virtual_intf(struct wiphy *wiphy,
 validate_interface:
 	mutex_lock(&wl->vif_mutex);
 	if (wl->vif_num == WILC_NUM_CONCURRENT_IFC) {
-		pr_err("Reached maximum number of interface\n");
+		wiphy_err(wiphy, "Reached maximum number of interface\n");
 		mutex_unlock(&wl->vif_mutex);
 		return ERR_PTR(-EINVAL);
 	}
-- 
2.56.1


  parent reply	other threads:[~2026-11-23 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 13:41 [PATCH 0/6] wifi: wilc1000: Improve error logging Mihai Sain
2026-11-23 13:41 ` [PATCH 1/6] wifi: wilc1000: Use netdev_err() for WoWLAN trigger errors Mihai Sain
2026-11-23 13:41 ` Mihai Sain [this message]
2026-11-23 13:41 ` [PATCH 3/6] wifi: wilc1000: Use device-specific logging for interrupt errors Mihai Sain
2026-11-23 13:41 ` [PATCH 4/6] wifi: wilc1000: Use device-specific error logging Mihai Sain
2026-11-23 13:41 ` [PATCH 5/6] wifi: wilc1000: Use device-specific error logging for MAC address retrieval failure Mihai Sain
2026-11-23 13:41 ` [PATCH 6/6] wifi: wilc1000: Use device-specific logging Mihai Sain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123134120.32638-3-mihai.sain@microchip.com \
    --to=mihai.sain@microchip.com \
    --cc=ajay.kathat@microchip.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®