Skip to content

Commit 34eba91

Browse files
Phil Elwellpopcornmix
authored andcommitted
brcmfmac: Mute expected startup 'errors'
The brcmfmac WiFi driver always complains about the '00' country code. Modify the driver to ignore '00' silently. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent c25c6c7 commit 34eba91

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

‎drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6930,6 +6930,8 @@ static void brcmf_cfg80211_reg_notifier(struct wiphy *wiphy,
69306930
/* ignore non-ISO3166 country codes */
69316931
for (i = 0; i < sizeof(req->alpha2); i++)
69326932
if (req->alpha2[i] < 'A' || req->alpha2[i] > 'Z') {
6933+
if (req->alpha2[0] == '0' && req->alpha2[1] == '0')
6934+
return;
69336935
brcmf_err("not an ISO3166 code (0x%02x 0x%02x)\n",
69346936
req->alpha2[0], req->alpha2[1]);
69356937
return;

0 commit comments

Comments
 (0)