]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: fix wiphy registration sequence
authorLior David <qca_liord@qca.qualcomm.com>
Thu, 18 Aug 2016 13:52:16 +0000 (16:52 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 19 Aug 2016 10:11:28 +0000 (13:11 +0300)
commit05c9c350eca5fe153423e79f838ac56dd6efce68
treefb63395f876148ab0549e2b2d078d9e858d44a04
parent6eac271bea120e2d99cfbca3103bab66c54d0b70
wil6210: fix wiphy registration sequence

Currently wiphy structure is initialized and registered
in wil_if_alloc, before some information is available such
as MAC address and capabilities. As a result there is a
small chance user space will get incorrect information
from calls such as NL80211_CMD_GET_WIPHY.
Fix this by seperating the registration and moving it
to wil_if_add which is executed later, after all
relevant information is known.

Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/netdev.c