]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
wlcore: configure rates in multiple cases
authorEliad Peller <eliad@wizery.com>
Tue, 7 May 2013 12:41:08 +0000 (15:41 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 17 Jun 2013 08:56:59 +0000 (11:56 +0300)
The current code configures the peer caps only on BSS_CHANGED_HT
notification. However, we have to configure the peer caps
(and rates) even when HT is not enabled. Otherwise, the fw
continues working with low rates.

Configure the peer caps when sta_exists is true (i.e. when
we extracted the sta rates, e.g. on association).

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

index 600ed7bc38db3bbbf1b78e176f1fcc0a1d4ab2d1..04dc1b6ae35be6d379c77e169fff850d7dad05fa 100644 (file)
@@ -4215,8 +4215,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
        }
 
        /* Handle new association with HT. Do this after join. */
-       if (sta_exists &&
-           (changed & BSS_CHANGED_HT)) {
+       if (sta_exists) {
                bool enabled =
                        bss_conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT;