mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
mwl8k: allow selecting 5 GHz channels
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
8707d02625
commit
42574ea227
1 changed files with 2 additions and 0 deletions
|
@ -2222,6 +2222,8 @@ static int mwl8k_cmd_set_rf_channel(struct ieee80211_hw *hw,
|
||||||
|
|
||||||
if (channel->band == IEEE80211_BAND_2GHZ)
|
if (channel->band == IEEE80211_BAND_2GHZ)
|
||||||
cmd->channel_flags |= cpu_to_le32(0x00000001);
|
cmd->channel_flags |= cpu_to_le32(0x00000001);
|
||||||
|
else if (channel->band == IEEE80211_BAND_5GHZ)
|
||||||
|
cmd->channel_flags |= cpu_to_le32(0x00000004);
|
||||||
|
|
||||||
if (conf->channel_type == NL80211_CHAN_NO_HT ||
|
if (conf->channel_type == NL80211_CHAN_NO_HT ||
|
||||||
conf->channel_type == NL80211_CHAN_HT20)
|
conf->channel_type == NL80211_CHAN_HT20)
|
||||||
|
|
Loading…
Reference in a new issue