|
@@ -13239,6 +13239,9 @@ static QDF_STATUS hdd_open_ocb_interface(struct hdd_context *hdd_ctx)
|
|
|
uint8_t *mac_addr;
|
|
|
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_OCB_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_OCB_MODE,
|
|
|
"wlanocb%d", mac_addr);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
@@ -13260,6 +13263,9 @@ static QDF_STATUS hdd_open_concurrent_interface(struct hdd_context *hdd_ctx)
|
|
|
|
|
|
iface_name = hdd_ctx->config->enable_concurrent_sta;
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_STA_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_STA_MODE,
|
|
|
iface_name, mac_addr);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
@@ -13284,6 +13290,9 @@ hdd_open_adapters_for_mission_mode(struct hdd_context *hdd_ctx)
|
|
|
return hdd_open_ocb_interface(hdd_ctx);
|
|
|
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_STA_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_STA_MODE,
|
|
|
"wlan%d", mac_addr);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
@@ -13304,6 +13313,9 @@ hdd_open_adapters_for_mission_mode(struct hdd_context *hdd_ctx)
|
|
|
*/
|
|
|
if (ucfg_nan_is_vdev_creation_allowed(hdd_ctx->psoc)) {
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_NAN_DISC_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ goto err_close_adapters;
|
|
|
+
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_NAN_DISC_MODE,
|
|
|
"wifi-aware%d", mac_addr);
|
|
|
if (status) {
|
|
@@ -13332,6 +13344,9 @@ static QDF_STATUS hdd_open_adapters_for_ftm_mode(struct hdd_context *hdd_ctx)
|
|
|
uint8_t *mac_addr;
|
|
|
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_FTM_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_FTM_MODE,
|
|
|
"wlan%d", mac_addr);
|
|
|
|
|
@@ -13350,6 +13365,8 @@ hdd_open_adapters_for_monitor_mode(struct hdd_context *hdd_ctx)
|
|
|
uint8_t *mac_addr;
|
|
|
|
|
|
mac_addr = wlan_hdd_get_intf_addr(hdd_ctx, QDF_MONITOR_MODE);
|
|
|
+ if (!mac_addr)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
status = hdd_open_adapter_no_trans(hdd_ctx, QDF_MONITOR_MODE,
|
|
|
"wlan%d", mac_addr);
|