diff options
author | Eliad Peller <eliad@wizery.com> | 2013-05-07 14:41:08 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2013-06-17 10:56:59 +0200 |
commit | 6f0b1bb2ba2b1df781c64fff645c3fe0495b8161 (patch) | |
tree | 1600b05712c984ad2629f39e6b420d1472c20840 /drivers | |
parent | wlcore: move sysfs handling to a separate file (diff) | |
download | linux-6f0b1bb2ba2b1df781c64fff645c3fe0495b8161.tar.xz linux-6f0b1bb2ba2b1df781c64fff645c3fe0495b8161.zip |
wlcore: configure rates in multiple cases
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 600ed7bc38db..04dc1b6ae35b 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -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; |