MLK-19091 cfg80211: make phy index match after wiphy dev is released
authorAndy Duan <fugang.duan@nxp.com>
Thu, 13 Sep 2018 09:23:37 +0000 (17:23 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitcf6bcaac1dcd46304ae02fb04a068c420f80d82f
tree5928f384dc09d661928a1588ab8762d27591e0bb
parentb609d401ad945da475bc4e4b39aba06793ea1873
MLK-19091 cfg80211: make phy index match after wiphy dev is released

During insmod/rmmod test, the phy index increases that cause troube
for test case. To make global variable wiphy_counter match between
creat and free wiphy device, it needs to decrease the atomic counter
when wiphy device is freed.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
net/wireless/core.c