diff options
author | Avinash Patil <patila@marvell.com> | 2013-10-11 18:31:32 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-14 13:24:26 -0400 |
commit | 9612bd1ee3e3136e4748d7175bb6e7551482cc2e (patch) | |
tree | 7f624abb9860a585ebc8acffe294cb582426029e /drivers/net/wireless/mwifiex/sta_event.c | |
parent | e8041ceeded8a0f68cc0c75faf911e4369bba89f (diff) | |
download | lwn-9612bd1ee3e3136e4748d7175bb6e7551482cc2e.tar.gz lwn-9612bd1ee3e3136e4748d7175bb6e7551482cc2e.zip |
mwifiex: inform cfg80211 about disconnect for P2P client interface
This patch adds missing cfg80211_disconnected event for P2P client
interface upon successful deauthenticate command, deauthenticate
event or disassociate event from FW.
Signed-off-by: Avinash Patil <patila@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/sta_event.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_event.c b/drivers/net/wireless/mwifiex/sta_event.c index 8b057524b252..8c351f71f72f 100644 --- a/drivers/net/wireless/mwifiex/sta_event.c +++ b/drivers/net/wireless/mwifiex/sta_event.c @@ -118,7 +118,8 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason_code) dev_dbg(adapter->dev, "info: successfully disconnected from %pM: reason code %d\n", priv->cfg_bssid, reason_code); - if (priv->bss_mode == NL80211_IFTYPE_STATION) { + if (priv->bss_mode == NL80211_IFTYPE_STATION || + priv->bss_mode == NL80211_IFTYPE_P2P_CLIENT) { cfg80211_disconnected(priv->netdev, reason_code, NULL, 0, GFP_KERNEL); } |