Loading
qcacld-3.0: Update MLME Cfg num_ppe_th
With Kernel 5.13.2 onwards, if ppe_present is present in HE capabilities then ppe_threshold fields are also required to be sent such as length has to be non zero and the data can be all zeros as part of TDLS Discovery and Setup frame. While sending setup frames, ies are packed using dor11f apis such as dot11f_pack_ie_he_cap(). Even if ppet_present is set, dot11f_pack_ie_he_cap() will only send ppe_threshold if num_ppe_th is present. The HE capabilties which are sent in these are filled using MLME Cfg HE capabilities. So, calculate and set num_ppe_th using cfg ppe fields based on the operating band. Also to cover a corner scenario where ppe_present is set but calculated num_ppe_th is 0, set num_ppe_th to 1 so that atleast 1 byte should be sent to prevent framework from throwing exception during add_sta. Change-Id: Ibe4fd3fdacce24573c09b3609babf04ef4423fb1 CRs-Fixed: 3183531