libwifi: nlwifi: Fix phy to netdev
Function to get netdev from phy sometimes returns wrong netdev when /sys/class/ieee80211/phyX/device/net/ lists all netdevs. To prevent this additional check is needed to be sure that particular netdev belongs to phy we are looking for.
Signed-off-by: Marek Puzyniak marek.puzyniak@iopsys.eu