diff mbox

[01/16] mwifiex: fix typo in del_virtual_intf() function

Message ID 1442583138-2979-2-git-send-email-akarwar@marvell.com (mailing list archive)
State Accepted
Delegated to: Kalle Valo
Headers show

Commit Message

Amitkumar Karwar Sept. 18, 2015, 1:32 p.m. UTC
From: Xinming Hu <huxm@marvell.com>

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>
---
 drivers/net/wireless/mwifiex/cfg80211.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Kalle Valo Sept. 29, 2015, 7:49 a.m. UTC | #1
> From: Xinming Hu <huxm@marvell.com>
> 
> 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>

Thanks, 16 patches applied to wireless-drivers-next.git:

65405c51bb2e mwifiex: fix typo in del_virtual_intf() function
0a252abb6ad7 mwifiex: update amsdu tx packet time stamp
e3ad3d5b6ab2 mwifiex: minor corrections in multiport aggregation code
9a9053c3420f mwifiex: fix driver init failure under memory pressure
02421dd3f6af mwifiex: NULL check for cfg80211_inform_bss()
2c3da961268f mwifiex: don't always include ht/vht info in tdls confirm frame
17e524b1b60f mwifiex: fix NULL pointer dereference during hidden SSID scan
14d9c11c91a6 mwifiex: avoid memsetting PCIe event buffer
70c5ad7e20c1 mwifiex: correct paused tx data packet counter
17090beec26e mwifiex: Suppress -ENOSR error for data traffic on USB
d22871db0172 mwifiex: fix tx data_sent issue for usb interface
d941444321f6 mwifiex: move usb specific data_sent update to usb.c
2b0f997db43f mwifiex: add usb multi channel event process support
308fe29ef243 mwifiex: add usb tx data multi endpoints support
7e4e5d2cd081 mwifiex: add usb multi endpoints resync support
735ab6bfc038 mwifiex: complete usb tx data with multi endpoints

Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 7e71dd7..4e06e98 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -2862,14 +2862,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,