Browse Source

qcacld-3.0: Don't update the global channel list on channel avoidance

Don't update the global channel list on channel avoidance event. The
LTE channel avoidance is relevant for beaconing entities only.

Change-Id: Iad991e63d59d7070d487c2aef5302ced1d0f91c6
CRs-Fixed: 2267371
Tushnim Bhattacharyya 6 years ago
parent
commit
84e1e23f32
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/hdd/src/wlan_hdd_regulatory.c

+ 3 - 2
core/hdd/src/wlan_hdd_regulatory.c

@@ -1309,12 +1309,13 @@ static void hdd_regulatory_dyn_cbk(struct wlan_objmgr_psoc *psoc,
 	if (wiphy->registered)
 		hdd_send_wiphy_regd_sync_event(hdd_ctx);
 #endif
-	sme_generic_change_country_code(hdd_ctx->mac_handle,
-					hdd_ctx->reg.alpha2);
 
 	if (avoid_freq_ind)
 		hdd_ch_avoid_ind(hdd_ctx, &avoid_freq_ind->chan_list,
 				&avoid_freq_ind->freq_list);
+	else
+		sme_generic_change_country_code(hdd_ctx->mac_handle,
+				hdd_ctx->reg.alpha2);
 }
 
 int hdd_regulatory_init(struct hdd_context *hdd_ctx, struct wiphy *wiphy)