Skip to content

Commit 0eba97c

Browse files
Arend van Spriellinux4kix
authored andcommitted
brcmfmac: deal with NL80211_CHANWIDTH_20_NOHT setting
The driver can get a channel definition with bandwidth set to NL80211_CHANWIDTH_20_NOHT. This was no handled in brcmfmac which results in a warning splat. One scenario in which this is observed was when running hostapd with configuration 'hw_mode=g'. Cc: Jon Nettleton <jon.nettleton@gmail.com> Signed-off-by: Arend van Spriel <arend@broadcom.com>
1 parent 4ef6590 commit 0eba97c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ static u16 chandef_to_chanspec(struct brcmu_d11inf *d11inf,
352352
ch_inf.chnum = ieee80211_frequency_to_channel(ch->center_freq1);
353353
primary_offset = ch->center_freq1 - ch->chan->center_freq;
354354
switch (ch->width) {
355+
case NL80211_CHAN_WIDTH_20_NOHT:
355356
case NL80211_CHAN_WIDTH_20:
356357
ch_inf.bw = BRCMU_CHAN_BW_20;
357358
WARN_ON(primary_offset != 0);

0 commit comments

Comments
 (0)