mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Handle TDLS HE mode in 11b mode to calculate phymode
If STA connection is in 11b mode and TDLS connect in HE, the phymoe is not calculated properly. Handle the HE mode in 11b network type as well. Change-Id: I0ddafa0b4be8d6eab02c66be7c0f909c2d968918 CRs-Fixed: 2923182
This commit is contained in:
parent
64ce785659
commit
9bf83d10e9
1 changed files with 7 additions and 12 deletions
|
|
@ -3180,18 +3180,13 @@ wma_peer_phymode(tSirNwType nw_type, uint8_t sta_type,
|
|||
case eSIR_11B_NW_TYPE:
|
||||
#ifdef FEATURE_WLAN_TDLS
|
||||
if (STA_ENTRY_TDLS_PEER == sta_type) {
|
||||
if (is_vht) {
|
||||
if (CH_WIDTH_80MHZ == ch_width)
|
||||
phymode = WLAN_PHYMODE_11AC_VHT80;
|
||||
else
|
||||
phymode = (CH_WIDTH_40MHZ == ch_width) ?
|
||||
WLAN_PHYMODE_11AC_VHT40 :
|
||||
WLAN_PHYMODE_11AC_VHT20_2G;
|
||||
} else if (is_ht) {
|
||||
phymode = (CH_WIDTH_40MHZ == ch_width) ?
|
||||
WLAN_PHYMODE_11NG_HT40 :
|
||||
WLAN_PHYMODE_11NG_HT20;
|
||||
} else
|
||||
if (is_he)
|
||||
phymode = WLAN_PHYMODE_11AXG_HE20;
|
||||
else if (is_vht)
|
||||
phymode = WLAN_PHYMODE_11AC_VHT20_2G;
|
||||
else if (is_ht)
|
||||
phymode = WLAN_PHYMODE_11NG_HT20;
|
||||
else
|
||||
phymode = WLAN_PHYMODE_11B;
|
||||
} else
|
||||
#endif /* FEATURE_WLAN_TDLS */
|
||||
|
|
|
|||
Loading…
Reference in a new issue