Explorar el Código

qcacld-3.0: Ignore user regulatory hint conditionally

Ignore user regulatory hint conditionally if it does not have sub-type
NL80211_USER_REG_HINT_CELL_BASE. For mobile devices, do not accept user
configuration from other sub-types.

Change-Id: I5990e8f4a80eebb56760e0034e397529ef77eefb
CRs-Fixed: 2362693
Amar Singhal hace 6 años
padre
commit
b5bdce6069
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      core/hdd/src/wlan_hdd_regulatory.c

+ 5 - 0
core/hdd/src/wlan_hdd_regulatory.c

@@ -937,6 +937,11 @@ void hdd_reg_notifier(struct wiphy *wiphy,
 
 	switch (request->initiator) {
 	case NL80211_REGDOM_SET_BY_USER:
+
+		if (request->user_reg_hint_type !=
+		    NL80211_USER_REG_HINT_CELL_BASE)
+			return;
+
 		qdf_mem_copy(country, request->alpha2, QDF_MIN(
 			     sizeof(request->alpha2), sizeof(country)));
 		status = ucfg_reg_set_country(hdd_ctx->pdev, country);