diff options
author | Eliad Peller <eliad@wizery.com> | 2012-11-28 11:42:31 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-12-11 09:35:34 +0200 |
commit | 530abe195df6918d43c9381fd9a70b7e16d55036 (patch) | |
tree | ac8b080cfd5732de975c76e54d7244ec83a0a93b /drivers/net/wireless/ti/wlcore/main.c | |
parent | 4d703847617fa053689b119e43122088c81ef86d (diff) | |
download | linux-3.10-530abe195df6918d43c9381fd9a70b7e16d55036.tar.gz linux-3.10-530abe195df6918d43c9381fd9a70b7e16d55036.tar.bz2 linux-3.10-530abe195df6918d43c9381fd9a70b7e16d55036.zip |
wlcore: add ACX_PEER_CAP command
ACX_PEER_CAP command is just ACX_PEER_HT_CAP, but allows
configuring the peer's support rates as well.
this is needed because we start the station role when
the remote rates are not known yet.
the two commands should be unified in future fw versions,
but for now add a new set_peer_cap per-hw op, that will
use ACX_PEER_CAP for 18xx, and ACX_PEER_HT_CAP for 12xx.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/main.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 486b7fa0259..fed227c88a8 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -4132,10 +4132,11 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl, bool enabled = bss_conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT; - ret = wl1271_acx_set_ht_capabilities(wl, - &sta_ht_cap, - enabled, - wlvif->sta.hlid); + ret = wlcore_hw_set_peer_cap(wl, + &sta_ht_cap, + enabled, + wlvif->rate_set, + wlvif->sta.hlid); if (ret < 0) { wl1271_warning("Set ht cap failed %d", ret); goto out; |