qcacld-3.0: Set 5G band capability bit in gActionOUIConnect1x1 ini
gActionOUIConnect1x1 is used to specify action OUIs for 1x1 connection. Some Access Points are unable to handle SMPS and OMN frames and shows abnormal behaviour when STA is switching between 2x2 to 1x1 and vice-versa. To avoid this, restrict connection in 1x1 mode with such APs. Here the scenario is DUT STA1 connects in 2x2 mode to AP1 in 5G mode then later on DUT another STA2 iface connects to AP2 in 2G mode. DUT sends OMN frame to AP1 to inform that it is going to switch to 1x1 mode. AP1 ack this frame but doesn't change its Tx rates and continues to use 2x2 rates which DUT cannot ACK. This causes low throughput issue where AP1 Tx rate falls to 6Mbps due to missing acks. Hence, 5G band capability bit in "gActionOUIConnect1x1" is set to make connections in 1x1 with such AP. Presently, 5G band capability bit is not checked if 2G band capability bit is not set or 2G band is not enabled. Hence, Vendor AP capability check for 2G and 5G Band is refactored. Change-Id: Ic6b682451405a2373000e4c64656f50c2fab0ee6 CRs-Fixed: 2558293
This commit is contained in:

committed by
nshrivas

parent
9f67bd28c8
commit
ee81f8b2eb
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -846,16 +846,12 @@ check_for_vendor_ap_capabilities(struct action_oui_extension *extension,
|
||||
}
|
||||
}
|
||||
|
||||
if (extension->info_mask & ACTION_OUI_INFO_AP_CAPABILITY_BAND) {
|
||||
if ((*extension->capability &
|
||||
ACTION_OUI_CAPABILITY_2G_BAND_MASK) &&
|
||||
!attr->enable_2g)
|
||||
return false;
|
||||
if ((*extension->capability &
|
||||
ACTION_CAPABILITY_5G_BAND_MASK) &&
|
||||
!attr->enable_5g)
|
||||
return false;
|
||||
}
|
||||
if (extension->info_mask & ACTION_OUI_INFO_AP_CAPABILITY_BAND &&
|
||||
((attr->enable_5g &&
|
||||
!(*extension->capability & ACTION_CAPABILITY_5G_BAND_MASK)) ||
|
||||
(attr->enable_2g &&
|
||||
!(*extension->capability & ACTION_OUI_CAPABILITY_2G_BAND_MASK))))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user