]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wlcore: get channel from bss_conf instead of hw->conf
authorEliad Peller <eliad@wizery.com>
Tue, 20 Nov 2012 11:20:04 +0000 (13:20 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 27 Nov 2012 08:48:31 +0000 (10:48 +0200)
We care only about the operational channel, not
about the temporal hw channel (which won't have
any real meaning in multi-channel env anyway)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c

index 829d818503ff9a42020b7f5cdc1430bed084b1a8..03765cf2a66632f86dfe02df81eb1697b982d15d 100644 (file)
@@ -3977,7 +3977,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
                        goto sta_not_found;
 
                /* save the supp_rates of the ap */
-               sta_rate_set = sta->supp_rates[wl->hw->conf.channel->band];
+               sta_rate_set = sta->supp_rates[wlvif->band];
                if (sta->ht_cap.ht_supported)
                        sta_rate_set |=
                          (sta->ht_cap.mcs.rx_mask[0] << HW_HT_RATES_OFFSET) |