mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Keep WEP key when vendor subcmd restart sap
When vendor subcmd set sap channel, driver will do sap restart, WEP key will be cleared when stop bss, then it will cause WEP shared connection fail. Fix is to keep WEP key when bss stop caused by QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL. Change-Id: Ib91993ae953f04c01dc9130774f91300dd8bd62a CRs-Fixed: 2134346
This commit is contained in:
parent
7255b70295
commit
73bccf2d88
3 changed files with 11 additions and 3 deletions
|
|
@ -689,10 +689,13 @@ struct hdd_hostapd_state {
|
|||
* to maintain SCC mode with the STA role on the same card.
|
||||
* this usually happens when STA is connected to an external
|
||||
* AP that runs on a different channel
|
||||
* @BSS_STOP_DUE_TO_VENDOR_CONFIG_CHAN: BSS stopped due to
|
||||
* vendor subcmd set sap config channel
|
||||
*/
|
||||
enum bss_stop_reason {
|
||||
BSS_STOP_REASON_INVALID = 0,
|
||||
BSS_STOP_DUE_TO_MCC_SCC_SWITCH = 1,
|
||||
BSS_STOP_DUE_TO_VENDOR_CONFIG_CHAN = 2,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10091,6 +10091,7 @@ __wlan_hdd_cfg80211_sap_configuration_set(struct wiphy *wiphy,
|
|||
ap_ctx->sapConfig.channel = config_channel;
|
||||
ap_ctx->sapConfig.ch_params.ch_width =
|
||||
ap_ctx->sapConfig.ch_width_orig;
|
||||
ap_ctx->bss_stop_reason = BSS_STOP_DUE_TO_VENDOR_CONFIG_CHAN;
|
||||
|
||||
wlan_reg_set_channel_params(hdd_ctx->hdd_pdev,
|
||||
ap_ctx->sapConfig.channel,
|
||||
|
|
|
|||
|
|
@ -1826,9 +1826,13 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
hdd_ctx->dev_dfs_cac_status = DFS_CAC_NEVER_DONE;
|
||||
}
|
||||
hdd_debug("bss_stop_reason=%d", ap_ctx->bss_stop_reason);
|
||||
if (ap_ctx->bss_stop_reason !=
|
||||
BSS_STOP_DUE_TO_MCC_SCC_SWITCH) {
|
||||
/* when MCC to SCC switching happens, key storage
|
||||
if ((BSS_STOP_DUE_TO_MCC_SCC_SWITCH !=
|
||||
ap_ctx->bss_stop_reason) &&
|
||||
(BSS_STOP_DUE_TO_VENDOR_CONFIG_CHAN !=
|
||||
ap_ctx->bss_stop_reason)) {
|
||||
/*
|
||||
* when MCC to SCC switching or vendor subcmd
|
||||
* setting sap config channel happens, key storage
|
||||
* should not be cleared due to hostapd will not
|
||||
* repopulate the original keys
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue