Explorar el Código

qcacld-3.0: Do not allow ns offload in IBSS mode

NS Offload is not supported in IBSS mode. Configuring it while
in IBSS mode causes crash in firmware.

Do not allow ns offload in IBSS mode.

Change-Id: I1f6cf7b6c65238a9335f828321487ea784a4512b
CRs-Fixed: 2035449
Nachiket Kukade hace 8 años
padre
commit
dbffab89f6
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -6597,6 +6597,11 @@ __wlan_hdd_cfg80211_set_ns_offload(struct wiphy *wiphy,
 	pHddCtx->ns_offload_enable =
 		nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG]);
 
+	if (QDF_IBSS_MODE == adapter->device_mode) {
+		hdd_debug("NS Offload is not supported in IBSS mode");
+		return -EINVAL;
+	}
+
 	/* update ns offload in case it is already enabled/disabled */
 	if (pHddCtx->ns_offload_enable)
 		hdd_enable_ns_offload(adapter, pmo_ns_offload_dynamic_update);