|
@@ -1296,8 +1296,8 @@ mwifiex_radio_type_to_band(u8 radio_type)
|
|
|
* order to send the appropriate scan commands to firmware to populate or
|
|
|
* update the internal driver scan table.
|
|
|
*/
|
|
|
-static int mwifiex_scan_networks(struct mwifiex_private *priv,
|
|
|
- const struct mwifiex_user_scan_cfg *user_scan_in)
|
|
|
+int mwifiex_scan_networks(struct mwifiex_private *priv,
|
|
|
+ const struct mwifiex_user_scan_cfg *user_scan_in)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
struct mwifiex_adapter *adapter = priv->adapter;
|
|
@@ -1362,6 +1362,7 @@ static int mwifiex_scan_networks(struct mwifiex_private *priv,
|
|
|
adapter->cmd_queued = cmd_node;
|
|
|
mwifiex_insert_cmd_to_pending_q(adapter, cmd_node,
|
|
|
true);
|
|
|
+ queue_work(adapter->workqueue, &adapter->main_work);
|
|
|
} else {
|
|
|
spin_unlock_irqrestore(&adapter->scan_pending_q_lock,
|
|
|
flags);
|
|
@@ -1377,26 +1378,6 @@ static int mwifiex_scan_networks(struct mwifiex_private *priv,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * Sends IOCTL request to start a scan with user configurations.
|
|
|
- *
|
|
|
- * This function allocates the IOCTL request buffer, fills it
|
|
|
- * with requisite parameters and calls the IOCTL handler.
|
|
|
- *
|
|
|
- * Upon completion, it also generates a wireless event to notify
|
|
|
- * applications.
|
|
|
- */
|
|
|
-int mwifiex_set_user_scan_ioctl(struct mwifiex_private *priv,
|
|
|
- struct mwifiex_user_scan_cfg *scan_req)
|
|
|
-{
|
|
|
- int status;
|
|
|
-
|
|
|
- status = mwifiex_scan_networks(priv, scan_req);
|
|
|
- queue_work(priv->adapter->workqueue, &priv->adapter->main_work);
|
|
|
-
|
|
|
- return status;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* This function prepares a scan command to be sent to the firmware.
|
|
|
*
|