wifi: fix FST with Wifi STA+SAP concurrency

Wifi STA+SAP concurrency feature was recently introduced and revealed two
FST bugs.

First bug is when FST enabled, wifi_load_driver is expected to load both
wlan and wigig (fst) drivers. If both drivers already loaded,
wifi_load_driver returns immediately with success.

With above implementation, if one of the drivers is loaded but the other
one is not, wifi_load_driver proceed to load both drivers and this
of-course fail.

To fix this, is_wifi_driver_loaded() only check the status of wlan driver.
wifi_load_driver skip loading wlan driver if it is already loaded.

The second bug is that fstman was wrongly started for AP mode in some cases
that it shouldn't have.

To fix this, wifi_start_fstman calls is_fst_softap_enabled() instead of
is_fst_enabled() when starting AP mode.

CRs-Fixed: 1051370
Change-Id: I7b924c79d0aa19083a57f1179ebdfceaf64f5396
2 files changed