mwifiex: correct config_bands handling for ibss network
BAND_G is implicit when BAND_GN is present. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Родитель
d7b9c5204e
Коммит
3b86acb808
|
@ -1694,7 +1694,7 @@ static int mwifiex_set_ibss_params(struct mwifiex_private *priv,
|
||||||
|
|
||||||
if (cfg80211_get_chandef_type(¶ms->chandef) !=
|
if (cfg80211_get_chandef_type(¶ms->chandef) !=
|
||||||
NL80211_CHAN_NO_HT)
|
NL80211_CHAN_NO_HT)
|
||||||
config_bands |= BAND_GN;
|
config_bands |= BAND_G | BAND_GN;
|
||||||
} else {
|
} else {
|
||||||
if (cfg80211_get_chandef_type(¶ms->chandef) ==
|
if (cfg80211_get_chandef_type(¶ms->chandef) ==
|
||||||
NL80211_CHAN_NO_HT)
|
NL80211_CHAN_NO_HT)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче