mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
mwifiex: fix typo in del_virtual_intf() function
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>
This commit is contained in:
parent
32677b2584
commit
65405c51bb
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue