summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-05-15 11:33:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-15 17:00:53 +0300
commitb3a71adf4d580b6382944e2c2ead392ba65e5243 (patch)
treeae8e3a8dd4e3390b72ddfad03777a8af0afac8f8 /drivers
parent5a48a4a3efb45fb18970c05e3a6b6bf5d72dbb7a (diff)
downloadlinux-b3a71adf4d580b6382944e2c2ead392ba65e5243.tar.xz
staging: wfx: merge wfx_stop_ap() with wfx_reset()
wfx_stop_ap() and wfx_reset() do the same thing. Merge them. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200515083325.378539-13-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/wfx/sta.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index e077f42b62dc..7d9f680ca53a 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -479,11 +479,7 @@ void wfx_stop_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
{
struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv;
- hif_reset(wvif, false);
- wfx_tx_policy_init(wvif);
- if (wvif_count(wvif->wdev) <= 1)
- hif_set_block_ack_policy(wvif, 0xFF, 0xFF);
- wvif->bss_not_support_ps_poll = false;
+ wfx_reset(wvif);
}
static void wfx_join_finalize(struct wfx_vif *wvif,