]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
mwl8k: allow selecting 5 GHz channels
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 12 Jan 2010 12:49:18 +0000 (13:49 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 19:21:17 +0000 (14:21 -0500)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index e370245b3901cd1419cc7da817e13883a96e580a..6e8c126aa5e024a07ccf8a3717c9f8b17480dbb1 100644 (file)
@@ -2222,6 +2222,8 @@ static int mwl8k_cmd_set_rf_channel(struct ieee80211_hw *hw,
 
        if (channel->band == IEEE80211_BAND_2GHZ)
                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 ||
            conf->channel_type == NL80211_CHAN_HT20)