summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/hw_ops.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-11-26 18:05:41 +0200
committerLuciano Coelho <coelho@ti.com>2012-11-28 11:45:42 +0200
commit5f9b67770be4201f4449b0f180effecaac4e2686 (patch)
tree5ac83cde8a352c12db4715e83743915de03a961f /drivers/net/wireless/ti/wlcore/hw_ops.h
parent7c482c1040ae54e89a8fd4d6415577070d5a915d (diff)
downloadlinux-5f9b67770be4201f4449b0f180effecaac4e2686.tar.bz2
wlcore: use new set bandwidth command to adjusting channel BW
We support changing the channel BW when we started the STA role on a 40Mhz bandwidth. Otherwise a reconnection is required. Save the started channel width and use it when channel width updates arrive. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/hw_ops.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h
index 2673d783ec1e..0e0b6563a3ff 100644
--- a/drivers/net/wireless/ti/wlcore/hw_ops.h
+++ b/drivers/net/wireless/ti/wlcore/hw_ops.h
@@ -201,4 +201,12 @@ wlcore_hw_pre_pkt_send(struct wl1271 *wl, u32 buf_offset, u32 last_len)
return buf_offset;
}
+static inline void
+wlcore_hw_sta_rc_update(struct wl1271 *wl, struct wl12xx_vif *wlvif,
+ struct ieee80211_sta *sta, u32 changed)
+{
+ if (wl->ops->sta_rc_update)
+ wl->ops->sta_rc_update(wl, wlvif, sta, changed);
+}
+
#endif