prima: Add 80MHz channel bw offset support for tdlsecchnoffst ioctl
Allow tdlsecchnoffst driver ioctl to configure 80MHz channel bandwidth
offset when driver and FW is 11ac capable.
Change-Id: If02d05cacc7a825439e3e1ebe6212850508d8404
CRs-Fixed: 812959
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 12a0d73..62d77c4 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -9621,6 +9621,18 @@
return 0;
}
+
+ if ((offchanoffset == 80) &&
+ (TRUE == sme_IsFeatureSupportedByFW(DOT11AC)) &&
+ (TRUE == sme_IsFeatureSupportedByDriver(DOT11AC)))
+ {
+ tdlsOffChBwOffset = 4;
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+ "%s: change tdls secondary off channel offset to %u",
+ __func__, tdlsOffChBwOffset);
+
+ return 0;
+ }
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s: Invalid tdls secondary off channel offset %d",
__func__, offchanoffset);
return -1;