diff options
author | Arik Nemtsov <arik@wizery.com> | 2010-10-16 20:27:53 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-01-24 21:11:50 +0100 |
commit | c6c8a65de6d3aa8daa93beeac390f49a21d0be36 (patch) | |
tree | c5acea628c7de5c01a2d3db3cc5ab0a9c341f279 /drivers/net/wireless/wl12xx/main.c | |
parent | wl12xx: AP mode - add STA add/remove ops (diff) | |
download | linux-c6c8a65de6d3aa8daa93beeac390f49a21d0be36.tar.xz linux-c6c8a65de6d3aa8daa93beeac390f49a21d0be36.zip |
wl12xx: AP mode - changes in TX path
When in AP mode set appropriate HLID and rate policy for each skb.
Respond to supported-rates related changes in op_tx only when acting
as STA.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 739fee640528..ed5e2fc21ea2 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -943,7 +943,8 @@ static int wl1271_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) spin_lock_irqsave(&wl->wl_lock, flags); if (sta && (sta->supp_rates[conf->channel->band] != - (wl->sta_rate_set & HW_BG_RATES_MASK))) { + (wl->sta_rate_set & HW_BG_RATES_MASK)) && + wl->bss_type != BSS_TYPE_AP_BSS) { wl->sta_rate_set = sta->supp_rates[conf->channel->band]; set_bit(WL1271_FLAG_STA_RATES_CHANGED, &wl->flags); } |