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
This commit is contained in:
Nachiket Kukade 2017-04-25 19:26:02 +05:30 • committed by snandini
commit dbffab89f6

View file

@ -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);