|
@@ -1753,7 +1753,15 @@ int wlan_hdd_cfg80211_start_acs(struct hdd_adapter *adapter)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
|
+ if (!hdd_ctx) {
|
|
|
|
+ hdd_err("hdd_ctx is NULL");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
sap_config = &adapter->session.ap.sap_config;
|
|
sap_config = &adapter->session.ap.sap_config;
|
|
|
|
+ if (!sap_config) {
|
|
|
|
+ hdd_err("SAP config is NULL");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
if (hdd_ctx->acs_policy.acs_channel)
|
|
if (hdd_ctx->acs_policy.acs_channel)
|
|
sap_config->channel = hdd_ctx->acs_policy.acs_channel;
|
|
sap_config->channel = hdd_ctx->acs_policy.acs_channel;
|
|
else
|
|
else
|