|
@@ -7282,20 +7282,18 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx,
|
|
|
#endif
|
|
|
if (params->only_wdev_register) {
|
|
|
hdd_register_wdev(sta_adapter, adapter, params);
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- status = hdd_register_interface(adapter, rtnl_held, params);
|
|
|
- if (QDF_STATUS_SUCCESS != status)
|
|
|
- goto err_destroy_dp_intf;
|
|
|
-
|
|
|
- /* Stop the Interface TX queue. */
|
|
|
- hdd_debug("Disabling queues");
|
|
|
- wlan_hdd_netif_queue_control(adapter,
|
|
|
+ } else {
|
|
|
+ status = hdd_register_interface(adapter, rtnl_held,
|
|
|
+ params);
|
|
|
+ if (QDF_STATUS_SUCCESS != status)
|
|
|
+ goto err_destroy_dp_intf;
|
|
|
+ /* Stop the Interface TX queue. */
|
|
|
+ hdd_debug("Disabling queues");
|
|
|
+ wlan_hdd_netif_queue_control(adapter,
|
|
|
WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER,
|
|
|
WLAN_CONTROL_PATH);
|
|
|
+ }
|
|
|
break;
|
|
|
-
|
|
|
case QDF_P2P_GO_MODE:
|
|
|
case QDF_SAP_MODE:
|
|
|
adapter = hdd_wlan_create_ap_dev(hdd_ctx, mac_addr,
|