Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eliad Peller and committed by
Luciano Coelho
6f0b1bb2 33cab57a

+1 -2
+1 -2
drivers/net/wireless/ti/wlcore/main.c
··· 4215 4215 } 4216 4216 4217 4217 /* Handle new association with HT. Do this after join. */ 4218 - if (sta_exists && 4219 - (changed & BSS_CHANGED_HT)) { 4218 + if (sta_exists) { 4220 4219 bool enabled = 4221 4220 bss_conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT; 4222 4221