Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 87f78493 authored by Sachin Ahuja's avatar Sachin Ahuja Committed by Peng Xu
Browse files

cfg80211: Avoid regulatory restore when COUNTRY_IE_IGNORE is set



When REGULATORY_COUNTRY_IE_IGNORE is set,  __reg_process_hint_country_ie()
ignores the country code change request from __cfg80211_connect_result()
via regulatory_hint_country_ie().

After Disconnect, similar to above, country code should not be reset to
world when country IE ignore is set. But this is violated and restore of
regulatory settings is invoked by cfg80211_disconnect_work via
regulatory_hint_disconnect().

To address this, avoid regulatory restore from regulatory_hint_disconnect()
when COUNTRY_IE_IGNORE is set.

Note: Currently, restore_regulatory_settings() takes care of clearing
beacon hints. But in the proposed change, regulatory restore is avoided.
Therefore, explicitly clear beacon hints when DISABLE_BEACON_HINTS
is not set.

Signed-off-by: default avatarRajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Change-Id: I01ccdc4d2831cf252a4b35f9f856f3256d9b7429
CRs-Fixed: 1023778
Git-commit: 7417844b63d4b0dc8ab23f88259bf95de7d09b57
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarSachin Ahuja <sahuja@codeaurora.org>
Signed-off-by: default avatarPeng Xu <pxu@codeaurora.org>
parent 792e8f6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment