|
@@ -1581,24 +1581,7 @@ static void hdd_fill_station_info(struct hdd_adapter *adapter,
|
|
|
stainfo->tx_mcs_map);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * hdd_stop_sap_due_to_invalid_channel() - to stop sap in case of invalid chnl
|
|
|
- * @work: pointer to work structure
|
|
|
- *
|
|
|
- * Let's say SAP detected RADAR and trying to select the new channel and if no
|
|
|
- * valid channel is found due to none of the channels are available or
|
|
|
- * regulatory restriction then SAP needs to be stopped. so SAP state-machine
|
|
|
- * will create a work to stop the bss
|
|
|
- *
|
|
|
- * stop bss has to happen through worker thread because radar indication comes
|
|
|
- * from FW through mc thread or main host thread and if same thread is used to
|
|
|
- * do stopbss then waiting for stopbss to finish operation will halt mc thread
|
|
|
- * to freeze which will trigger stopbss timeout. Instead worker thread can do
|
|
|
- * the stopbss operation while mc thread waits for stopbss to finish.
|
|
|
- *
|
|
|
- * Return: none
|
|
|
- */
|
|
|
-static void hdd_stop_sap_due_to_invalid_channel(struct work_struct *work)
|
|
|
+void hdd_stop_sap_due_to_invalid_channel(struct work_struct *work)
|
|
|
{
|
|
|
struct hdd_adapter *sap_adapter = container_of(work, struct hdd_adapter,
|
|
|
sap_stop_bss_work);
|
|
@@ -2632,8 +2615,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
|
|
|
case eSAP_STOP_BSS_DUE_TO_NO_CHNL:
|
|
|
hdd_debug("Stop sap session[%d]",
|
|
|
adapter->vdev_id);
|
|
|
- INIT_WORK(&adapter->sap_stop_bss_work,
|
|
|
- hdd_stop_sap_due_to_invalid_channel);
|
|
|
schedule_work(&adapter->sap_stop_bss_work);
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
|