mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-16 19:47:55 +00:00
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>
This commit is contained in:
parent
e8041ceede
commit
9612bd1ee3
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason_code)
|
||||||
dev_dbg(adapter->dev,
|
dev_dbg(adapter->dev,
|
||||||
"info: successfully disconnected from %pM: reason code %d\n",
|
"info: successfully disconnected from %pM: reason code %d\n",
|
||||||
priv->cfg_bssid, reason_code);
|
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,
|
cfg80211_disconnected(priv->netdev, reason_code, NULL, 0,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue