wlan: do not register wiphy structure for FTM mode
In FTM mode set_wiphy_dev called by wlan_hdd_cfg80211_init binds the wlan
device with Linux wiphy device tree.
Since un-registration is done by Wiphy_unregister during unload, device is
not unbind from LINUX device tree. As result kernel crash observed when
linux device tree try to power control for Wiphy device which is already
freed by WLAN unload driver.
So do not wlan_hdd_cfg80211_init for FTM mode.
Change-Id: Iae8b1d79e6b32d61a6f9bb230d898d1c49e48efb
CRs-Fixed: 594711
1 file changed