summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/cfg80211.c
diff options
context:
space:
mode:
authorAvinash Patil2012-05-09 03:30:30 +0200
committerJohn W. Linville2012-05-16 18:46:37 +0200
commit40bbc21a2c2bc432735a085d572f3cb3732cf64c (patch)
treefe67ba6db810450bcdc141837aedd1cc00c7b3d0 /drivers/net/wireless/mwifiex/cfg80211.c
parentmwifiex: retrieve IEs from cfg80211_beacon_data and send to firmware (diff)
downloadkernel-qcow2-linux-40bbc21a2c2bc432735a085d572f3cb3732cf64c.tar.gz
kernel-qcow2-linux-40bbc21a2c2bc432735a085d572f3cb3732cf64c.tar.xz
kernel-qcow2-linux-40bbc21a2c2bc432735a085d572f3cb3732cf64c.zip
mwifiex: delete IEs when stop_ap
Delete custom IEs set by start_ap cfg80211 handler when stop_ap handler is called for AP interface. IE index required for deletion is stored in mwifiex_private structure. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 2d0952dc593a..f315ffcedb06 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -929,6 +929,9 @@ static int mwifiex_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
{
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
+ if (mwifiex_del_mgmt_ies(priv))
+ wiphy_err(wiphy, "Failed to delete mgmt IEs!\n");
+
if (mwifiex_send_cmd_sync(priv, HostCmd_CMD_UAP_BSS_STOP,
HostCmd_ACT_GEN_SET, 0, NULL)) {
wiphy_err(wiphy, "Failed to stop the BSS\n");