mac80211: Allow a STA to join an IBSS with 80+80 MHz channel
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 26 Nov 2015 18:49:38 +0000 (20:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
While it was possible to create an IBSS with 80+80 MHz channel, joining
such an IBSS resulted in falling back to 20 MHz channel with VHT
disabled due to a missing switch case for 80+80.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c

index 337bb5d7800384b8acd52664951be429668e3f3c..f7fc0e00497fd73f858833e2cb54ec3058b177fe 100644 (file)
@@ -428,6 +428,7 @@ static void ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
                chandef.width = sdata->u.ibss.chandef.width;
                break;
        case NL80211_CHAN_WIDTH_80:
+       case NL80211_CHAN_WIDTH_80P80:
        case NL80211_CHAN_WIDTH_160:
                chandef = sdata->u.ibss.chandef;
                chandef.chan = cbss->channel;