|
@@ -5681,6 +5681,7 @@ wlan_hdd_wifi_config_policy[QCA_WLAN_VENDOR_ATTR_CONFIG_MAX + 1] = {
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST] = {.type = NLA_U32 },
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL] = {.type = NLA_U32 },
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT] = {.type = NLA_U8},
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE] = {.type = NLA_U8 },
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -6001,7 +6002,7 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy,
|
|
|
uint8_t *scan_ie;
|
|
|
struct sir_set_tx_rx_aggregation_size request;
|
|
|
QDF_STATUS qdf_status;
|
|
|
- uint8_t retry, delay;
|
|
|
+ uint8_t retry, delay, enable_flag;
|
|
|
uint32_t abs_delay;
|
|
|
int param_id;
|
|
|
uint32_t tx_fail_count;
|
|
@@ -6065,6 +6066,11 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy,
|
|
|
if (status != QDF_STATUS_SUCCESS)
|
|
|
ret_val = -EPERM;
|
|
|
}
|
|
|
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE]) {
|
|
|
+ enable_flag =
|
|
|
+ nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE]);
|
|
|
+ sme_set_scan_disable(hdd_ctx->hHal, !enable_flag);
|
|
|
+ }
|
|
|
|
|
|
if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER]) {
|
|
|
qpower = nla_get_u8(
|