projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32677b2
)
mwifiex: fix typo in del_virtual_intf() function
author
Xinming Hu
<huxm@marvell.com>
Fri, 18 Sep 2015 13:32:03 +0000
(06:32 -0700)
committer
Kalle Valo
<kvalo@codeaurora.org>
Tue, 29 Sep 2015 07:47:27 +0000
(10:47 +0300)
Interface counters should be incremented in add_virtual_intf()
and decremented in del_virtual_intf() function. This patch
corrects it.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/cfg80211.c
b/drivers/net/wireless/mwifiex/cfg80211.c
index
ff63cb5
..
d814340
100644
(file)
--- a/
drivers/net/wireless/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/mwifiex/cfg80211.c
@@
-2859,14
+2859,14
@@
int mwifiex_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
case NL80211_IFTYPE_UNSPECIFIED:
case NL80211_IFTYPE_STATION:
case NL80211_IFTYPE_ADHOC:
- adapter->curr_iface_comb.sta_intf
++
;
+ adapter->curr_iface_comb.sta_intf
--
;
break;
case NL80211_IFTYPE_AP:
- adapter->curr_iface_comb.uap_intf
++
;
+ adapter->curr_iface_comb.uap_intf
--
;
break;
case NL80211_IFTYPE_P2P_CLIENT:
case NL80211_IFTYPE_P2P_GO:
- adapter->curr_iface_comb.p2p_intf
++
;
+ adapter->curr_iface_comb.p2p_intf
--
;
break;
default:
mwifiex_dbg(adapter, ERROR,