-
由 Maxime Bizon 提交于
device_add() is called before adding the phy to the cfg80211 device list. So if a userspace program uses sysfs uevents to detect new phy devices, and queries nl80211 to get phy info, it can get ENODEV even though the phy exists in sysfs. An easy workaround is to hold the cfg80211 mutex until the phy is present in sysfs/cfg80211/debugfs. Signed-off-by: NMaxime Bizon <mbizon@freebox.fr> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
5a652052