mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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:
parent
62b100fe5f
commit
dbffab89f6
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue