diff options
author | 2014-12-29 08:24:10 +0200 | |
---|---|---|
committer | 2015-01-09 15:48:01 +0200 | |
commit | 830513abc6ea2b1828b83b37300711984bae89f6 (patch) | |
tree | 18247a58f0399dc5d932b18ab99b24a74b99acad /drivers/net/wireless/ti/wlcore/hw_ops.h | |
parent | wlcore: add support for ap csa (diff) | |
download | linux-dev-830513abc6ea2b1828b83b37300711984bae89f6.tar.xz linux-dev-830513abc6ea2b1828b83b37300711984bae89f6.zip |
wlcore: add dfs master restart calls
call wlcore_cmd_dfs_master_restart when starting
the ap on a new channel (after csa is done).
Add a new WLVIF_FLAG_BEACON_DISABLED flag to
indicate that dfs_master_restart command
is required.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/hw_ops.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h index 42fef847dc5c..eec56935b1b6 100644 --- a/drivers/net/wireless/ti/wlcore/hw_ops.h +++ b/drivers/net/wireless/ti/wlcore/hw_ops.h @@ -320,4 +320,13 @@ wlcore_hw_set_cac(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool start) return wl->ops->set_cac(wl, wlvif, start); } + +static inline int +wlcore_hw_dfs_master_restart(struct wl1271 *wl, struct wl12xx_vif *wlvif) +{ + if (!wl->ops->dfs_master_restart) + return -EINVAL; + + return wl->ops->dfs_master_restart(wl, wlvif); +} #endif |