diff options
| author | Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org> | 2017-12-22 19:23:03 +0530 |
|---|---|---|
| committer | Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org> | 2017-12-22 20:10:39 +0530 |
| commit | bd0776d283d75a2ae07b6366a51ddd715a5e4f5c (patch) | |
| tree | a9599a031a8e451ec7824ef3268462f7b77c4b43 | |
| parent | 5b9aff0e0ce4ea02fddb99840fbb4955314085db (diff) | |
qcacld-3.0: Fix invalid reg rules set for world regd
When trying to change country code to world regd from user-space,
invalid reg rules are set due to invocation of hdd_modify_wiphy().
To fix, avoid invocation of hdd_modify_wiphy() for initiator
NL80211_REGDOM_SET_BY_CORE.
Change-Id: Ie296bc6051c09f33a389be4fe396599918fc96eb
CRs-Fixed: 2159180
| -rw-r--r-- | core/hdd/src/wlan_hdd_regulatory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c index 3323f3b9c78b..51948bf8a940 100644 --- a/core/hdd/src/wlan_hdd_regulatory.c +++ b/core/hdd/src/wlan_hdd_regulatory.c @@ -827,13 +827,13 @@ void hdd_reg_notifier(struct wiphy *wiphy, hdd_ctx->reg.alpha2[0] = request->alpha2[0]; hdd_ctx->reg.alpha2[1] = request->alpha2[1]; + hdd_ctx->reg.reset = reset; hdd_set_dfs_region(hdd_ctx, (enum dfs_region) request->dfs_region); if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) { - hdd_ctx->reg.reset = reset; hdd_debug("Driver module is closed, apply it later"); return; } |
