]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: core: Reorder wiphy_register() notifications relevantly
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Wed, 13 Aug 2014 13:04:51 +0000 (16:04 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 20:17:41 +0000 (16:17 -0400)
commita336a47a68d266626a364adc6be4667d6df27895
tree1cd9e5371031ca8196ffa203275b0c9f4c1a88c3
parent808903f4b960f78d8be9563b06e919009293f5e1
wireless: core: Reorder wiphy_register() notifications relevantly

Currently it can send regulatory domain change notification before any
NEW_WIPHY notification. Moreover, if rfill_register() fails, calling
wiphy_unregister() will send a DEL_WIPHY though no NEW_WIPHY had been
sent previously.

Thus reordering so it properly notifies NEW_WIPHY before any other.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c