If the DUT is only 20MHz capable, SGI40 should not be enabled.
Changes done to remove the SGI40 check if the width is 20 MHz.
Change-Id: I38f1b2d5eb9ed850fb8ccec3c460633fbcbedccd
SCSC-Bug-Id: SSB-42343
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
/* Enable LDPC, SGI20 and SGI40 for both SoftAP & P2PGO if firmware supports */
if (cfg80211_find_ie(WLAN_EID_HT_CAPABILITY, settings->beacon.tail, settings->beacon.tail_len)) {
u8 enforce_ht_cap1 = sdev->fw_ht_cap[0] & (IEEE80211_HT_CAP_LDPC_CODING |
- IEEE80211_HT_CAP_SGI_20 |
- IEEE80211_HT_CAP_SGI_40);
+ IEEE80211_HT_CAP_SGI_20);
u8 enforce_ht_cap2 = sdev->fw_ht_cap[1] & (IEEE80211_HT_CAP_RX_STBC >> 8);
slsi_modify_ies(dev, WLAN_EID_HT_CAPABILITY, (u8 *)settings->beacon.tail,