Skip to content

Commit

Permalink
brcmfmac: deal with NL80211_CHANWIDTH_20_NOHT setting
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
  • Loading branch information
Arend van Spriel authored and linux4kix committed Oct 2, 2014
1 parent 4ef6590 commit 0eba97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ static u16 chandef_to_chanspec(struct brcmu_d11inf *d11inf,
ch_inf.chnum = ieee80211_frequency_to_channel(ch->center_freq1);
primary_offset = ch->center_freq1 - ch->chan->center_freq;
switch (ch->width) {
case NL80211_CHAN_WIDTH_20_NOHT:
case NL80211_CHAN_WIDTH_20:
ch_inf.bw = BRCMU_CHAN_BW_20;
WARN_ON(primary_offset != 0);
Expand Down

0 comments on commit 0eba97c

Please sign in to comment.