wil6210: Fix AP/PCP start flow
authorKirshenbaum Erez <erezk@wilocity.com>
Sun, 9 Jun 2013 14:35:28 +0000 (17:35 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 19:06:52 +0000 (15:06 -0400)
commit4c895f41a750b3f81bf0890d2730ac6b867357f8
tree677344aefbd42f14bc24bc32eb472739a0b572be
parenteb4928cfc6263c3377d049a41830e36d1af15b31
wil6210: Fix AP/PCP start flow

WMI PCP Start flow should not be handled through:
net_device_ops->ndo_open()->wil_up()->__wil_up()
because it missing mandatory FW parameters (SSID,Channel,IEs, Security...).

Prior to AP starting __wil_up() may be called with iftype set
cfg80211_ops->change_virtual_intf(NL80211_IFTYPE_AP or STATION)
depend on the application hostapd/wpa_supplicant/iw.
there should not be an attempt to start an AP flow,
AP/PCP start flow will be started latter by cfg80211_ops->start_ap().

Signed-off-by: Kirshenbaum Erez <erezk@wilocity.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/main.c