Commit Graph

15971 Commits

Author SHA1 Message Date
Pragaspathi Thilagaraj
6fc0a9a120 qcacld-3.0: Fix default value of beamformee STS Capability for SAP
A VHT beamformee shall indicate the maximum number of space-time
streams it can receive in a VHT NDP in the Beamformee STS
Capability subfield of the VHT Capabilities Information field of
the VHT Capabilities element. The SAP is advertising STS value
as 8 in both 2G and 5G band. This may cause IOT issues.

Fix the default value of beamformee STS capability value as
default value 3 for SAP.

Change-Id: I026eabeea941a33f1ffab6e498e6de90e182320e
CRs-Fixed: 2448390
2019-05-28 05:18:48 -07:00
nshrivas
48a887afae Release 5.2.0.134T
Release 5.2.0.134T

Change-Id: I5e964e839fd3cf0269a9201bab61bbdf58af03cc
CRs-Fixed: 774533
2019-05-28 00:53:22 -07:00
bings
616cd434b8 qcacld-3.0: Make AP+AP in DFS channel in DBS mode work for SDXPRAIRIE
WiFi chip in SDXPRAIRIE supports DBS, and it is OK to start AP+AP in
DFS channel in DBS mode.
If CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE is defined, AP+AP in
DFS channel in DBS mode fails to start.

Remove CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE definition to make
AP+AP in DFS channel in DBS mode work for SDXPRAIRIE.

Change-Id: I1947b480aca2acb3245350c73935f6a4f9af964f
CRs-Fixed: 2459215
2019-05-28 00:53:21 -07:00
nshrivas
e9ee88cbe5 Release 5.2.0.134S
Release 5.2.0.134S

Change-Id: I7c8147f94d48392ab55c7f8b8ac875a329ee6837
CRs-Fixed: 774533
2019-05-27 22:04:13 -07:00
Srinivas Girigowda
395adddf8f qcacld-3.0: Replace SIR_MAC_RRM_* with converged macros
Replace SIR_MAC_RRM_* with converged macros.

Change-Id: I2150b5818dee4e35dda51a23fc956876d88b4c5b
CRs-Fixed: 2459572
2019-05-27 22:04:12 -07:00
nshrivas
9fce107497 Release 5.2.0.134R
Release 5.2.0.134R

Change-Id: I40c2116fe291a35d983a76ddfa05559619c5828e
CRs-Fixed: 774533
2019-05-27 20:13:16 -07:00
Jingxiang Ge
37204fd470 qcacld-3.0: Move tdls_osif_init_cb after checking tdls_feature_flags
If tdls feature is disabled, as currently tdls_osif_init_cb is called
before checking flags, tdls_osif_deinit_cb will be missed which causes
memory leak.

Do tdls_osif_init_cb after checking tdls_feature_flags.

Change-Id: I008c69a9b39f5321d1ca79f5193539f5abd32a02
CRs-Fixed: 2459853
2019-05-27 20:13:16 -07:00
nshrivas
d071de06fe Release 5.2.0.134Q
Release 5.2.0.134Q

Change-Id: I01a0cf8ba44c57788a044e6b4aa10fcb8be1125e
CRs-Fixed: 774533
2019-05-27 15:33:37 -07:00
Pragaspathi Thilagaraj
1112c96ef5 qcacld-3.0: Replace typedef tSirBssDescription
The linux coding style forbids use of typedef unless clearly
some rules are met. The tSirBssDescription doesn't match any of
those criteria, so replace it with underlying structure
bss_description.

Change-Id: I36ad517325117cf04d499c7c472ca6ef5921a85d
CRs-Fixed: 2459769
2019-05-27 15:33:37 -07:00
Pragaspathi Thilagaraj
e05162d92b qcacld-3.0: Rename pe_session member bssIdx
The Linux Coding Style doesn't allow mixed-case names so rename
bssIdx in struct pe_session to be in compliance.

Change-Id: Idf2df6cb4ca30e4fdae74b8fb39445bb878003c5
CRs-Fixed: 2459768
2019-05-27 15:33:33 -07:00
nshrivas
49f1803b05 Release 5.2.0.134P
Release 5.2.0.134P

Change-Id: I9c87d1d1a6ea2b8a6013c6dea65b9a4e96def155
CRs-Fixed: 774533
2019-05-27 10:37:32 -07:00
Ajit Vaishya
8515e65ec7 qcacld-3.0: set LOCAL_MODULE_TAGS to optional variant
From Android Q onwards LOCAL_MODULE_TAGS set to debug
variant is deprecated, thus set LOCAL_MODULE_TAGS
to optional variant by removing LOCAL_MODULE_TAGS.
If a module doesn't specify a tag (by LOCAL_MODULE_TAGS),
its tag defaults to optional.

Change-Id: Iecadd3bf07a375e2cfb044b400330c490f2023b0
CRs-Fixed: 2452507
2019-05-27 10:37:31 -07:00
Bala Venkatesh
d576fc5dac qcacld-3.0: Do not update the pkt cnt for connected AP
For implicit and external control the tdls connection is
established based on the tx and rx pkt count. But currently,
pkt count with connected AP also tracked.

Do not track packets for connected AP as TDLS is not possible
with connected AP.

Change-Id: I29d6f4e7858de1ec453d64b6fce548f5132c57d4
CRs-Fixed: 2457524
2019-05-27 10:37:26 -07:00
nshrivas
cb8716747a Release 5.2.0.134O
Release 5.2.0.134O

Change-Id: I4faaa0688940799cab1f7a05d2db29efd3eb9460
CRs-Fixed: 774533
2019-05-27 06:07:10 -07:00
Pragaspathi Thilagaraj
afd0a48d1c qcacld-3.0: Rename pe_session member eSirBssType
The Linux Coding Style doesn't allow mixed-case names so rename
eSirBssType in struct pe_session to be in compliance.

Change-Id: Iafe6649a130c77064180c67fb1385d2d7a763370
CRs-Fixed: 2459767
2019-05-27 06:07:09 -07:00
nshrivas
bf0ad87984 Release 5.2.0.134N
Release 5.2.0.134N

Change-Id: I7029feb10bc703f6bcd590c8bf2a5eaa6a62d35d
CRs-Fixed: 774533
2019-05-27 04:23:22 -07:00
Pragaspathi Thilagaraj
cb58bbc7b6 qcacld-3.0: Replace typedef tSirMacStatusCodes
The Linux Coding Style enumerates a few special cases where
typedefs are useful, but stresses "NEVER EVER use a typedef
unless you can clearly match one of those rules." The
tSirMacStatusCodes typedef does not meet any of those criteria,
so replace it properly named enum.

Change-Id: I4712acc4898a60ce78e7a6e71d2e91f5b1929c97
CRs-Fixed: 2459765
2019-05-26 14:10:28 +05:30
nshrivas
be24d8ccb5 Release 5.2.0.134M
Release 5.2.0.134M

Change-Id: Ie4a23bf4789c82da576cdc94b4962a5a9941210e
CRs-Fixed: 774533
2019-05-24 23:13:18 -07:00
Abhishek Singh
bb9deb4ae0 qcacld-3.0: Release vdev ref and delete pending peers in wma close
In hdd_vdev_destroy, if policy_mgr_check_and_stop_opportunistic_timer
decides to move to single mac mode and while sending the HW mode change
the target goes down, this leads to timeout of the HW mode change req in
WMA layer which is 2 sec and in serialization its 4 sec, but
policy_mgr_check_and_stop_opportunistic_timer timeout in 1 sec and proceed
to sme_close_session and wait for it to complete.

sme_close_session queue WLAN_SER_CMD_DEL_STA_SESSION to serialization but
it remains in pending queue, behind HW mode change req.

Now due to SSR the wait event for sme_close_session is set and thus
hdd_vdev_destroy logically deletes the vdev.

Now on WMA timeout the HW mode change try to remove the request from
serialization which it fails to remove as it fails to get ref for vdev
with vdev being logically deleted.

Thus WLAN_SER_CMD_DEL_STA_SESSION is not processed and is flushed in
hdd_wlan_shutdown.

Thus as SSR WLAN_SER_CMD_DEL_STA_SESSION is flushed from serialization
queue, the wma_vdev_detach() is not called for that vdev and thus the
peer attached to the vdev are not deleted and wma vdev ref is also not
released, this lead vdev/peer ref leak.

To fix this update the wait timeout in
policy_mgr_check_and_stop_opportunistic_timer with proper value higher
than the serialization timeout for the HW mode change request. ALso
set the wait event in policy_mgr_pdev_set_hw_mode_cb in failure cases
as well to avoid timeout in case of hw mode change failures.

Also release pending peer and vdef refs in wma_wmi_service_close.

Change-Id: I5ddf8263b0dbf889be506332a67f5e18c1bfb111
CRs-Fixed: 2458034
2019-05-24 23:13:17 -07:00
nshrivas
587668adc3 Release 5.2.0.134L
Release 5.2.0.134L

Change-Id: Ia771a4fce17584a9079f80fd44ce66b69fff7679
CRs-Fixed: 774533
2019-05-24 16:00:49 -07:00
sheenam monga
fa3cb430b3 qcacld-3.0: CONFIG_MCL cleanup for WLAN_SCHED_REDUCTION_LIMIT
Remove CONFIG_MCL for reduction limit to make code generic.
Initialize value for reduction limit  i.e WLAN_SCHED_REDUCTION_LIMIT
to 0 for MCL. In case WLAN_SCHED_REDUCTION_LIMIT not defined, then
define WLAN_SCHED_REDUCTION_LIMIT to 32 for WIN.

Change-Id: I6f6e4c9b3df71110654d487fcdae0334eeee4091
CRs-Fixed: 2459119
2019-05-24 16:00:48 -07:00
Paul Zhang
3718567245 qcacld-3.0: Implement api for interop issues ap
Implement the interface to transfer the info between
host driver and firmware about the ap which has interop
issues with the DUT. It is detected by firmware and
forwarded to user sapce for persistent storage. And
user space configs these APs to firmware when the DUT
starts up next time.

CRs-Fixed: 2425202
Change-Id: I2e828d521f0e04862a01fa1c90626f51b7f65796
2019-05-24 16:00:44 -07:00
nshrivas
55902294cf Release 5.2.0.134K
Release 5.2.0.134K

Change-Id: If774011b5ba6e7a6a648d09c2c3d7ea0e1d62a5a
CRs-Fixed: 774533
2019-05-24 13:50:01 -07:00
bings
1117283ca4 qcacld-3.0: Don't set WMI_PEER_NEED_PTK_4_WAY for FILS connection
When FILS authentication is performed, the key confirmation is
performed as part of the FILS exchange using association frames.
Hence, no additional 4-way handshake is necessary. But still the
host driver sets the WMI_PEER_NEED_PTK_4_WAY flag as part of
peer_assoc command. So firmware expects setting key command after
4-Way handshake is completed. But host sends the set key command
before M4 in this case, which results in firmware assert.

Don't set WMI_PEER_NEED_PTK_4_WAY for FILS connection.

Change-Id: I13451bd7592d5836c16cd648235f691b11aafb15
CRs-Fixed: 2458097
2019-05-24 13:50:00 -07:00
nshrivas
be72fa855c Release 5.2.0.134J
Release 5.2.0.134J

Change-Id: I92e752d3e8453c4b993de150912bb0a6543db42a
CRs-Fixed: 774533
2019-05-24 06:42:10 -07:00
Abhishek Singh
ed8873ab97 qcacld-3.0: Remove Vdev SM related flags from configs
Vdev SM related flags are no longer used so remove them.

Change-Id: Iafb5d15691644912e563072a9fd6bdccd1b16918
CRs-Fixed: 2457271
2019-05-24 06:42:10 -07:00
nshrivas
6eef43cb82 Release 5.2.0.134I
Release 5.2.0.134I

Change-Id: I93cd1a82fc86137fe3b6db2a955157baf051fc4d
CRs-Fixed: 774533
2019-05-24 04:12:45 -07:00
Will Huang
aea01e02ec qcacld-3.0: Release vdev reference when sap_get_channel_list failed
If sap_get_channel_list return 0 channel, didn't release vdev reference
acquired by wlan_objmgr_get_vdev_by_macaddr_from_psoc() in function
sap_channel_sel().

Release the vdev reference at the end of function sap_channel_sel().

Change-Id: Ib8d240e464ea893d97fef5f563bfb080646bae46
CRs-Fixed: 2457532
2019-05-24 04:12:45 -07:00
nshrivas
29d9b4c68e Release 5.2.0.134H
Release 5.2.0.134H

Change-Id: I2814da35938a160b9e82ebc2d2e6b1dc1eca30c3
CRs-Fixed: 774533
2019-05-23 22:57:28 -07:00
Jiani Liu
6d3b6a16ab qcacld-3.0: Add PTP timestamp socket options TX support
Host need to fill netbuf with qtime instead of tsf. So
host need to add tsf64 enable/disable related functions
and definitions to sync with FW.

The tsf64_time is new added to fw/host structure, so host
need to add parse functions to get tsf64_time from tx_desc.

Change-Id: Ieea0d8f905eb57629d279f8da0e811857b760b1f
CRs-Fixed: 2444456
2019-05-23 22:57:27 -07:00
nshrivas
e80d3fd502 Release 5.2.0.134G
Release 5.2.0.134G

Change-Id: I2157ff590312ceb6b60d4ad771dcb3f43e34d5f0
CRs-Fixed: 774533
2019-05-23 20:34:56 -07:00
Varun Reddy Yeturu
cbaa004c02 qcacld-3.0: Add compile time flag RX_DESC_MULTI_PAGE_ALLOC
Add a compile time feature flag by name RX_DESC_MULTI_PAGE_ALLOC
which will enable the memory allocation of RX descriptors using
multiple pages instead of large contiguous memory.

Change-Id: Ia3803a3685c605c79a34a0c2c000d7ed4adb7d97
CRs-Fixed: 2456267
2019-05-23 20:34:56 -07:00
nshrivas
a8898a4e23 Release 5.2.0.134F
Release 5.2.0.134F

Change-Id: Ie722a5d5ecaabe8d43bd99e8fd0678182a171d0d
CRs-Fixed: 774533
2019-05-23 16:39:56 -07:00
Manikandan Mohan
6bd71be66e qcacld-3.0: Call correct PMO API for setting PS params
WMI_STA_PS_PARAM_INACTIVITY_TIME and
WMI_STA_PS_PARAM_MAX_RESET_ITO_COUNT_ON_TIM_NO_TXRX
need to be sent as WMI_STA_POWERSAVE_PARAM_CMDID param IDs.
Thus use pmo_tgt_send_vdev_sta_ps_param instead of
pmo_tgt_vdev_update_param_req in appropriate locations.

Change-Id: Ie9438cd88540a9bbcaf120b3d0a32d355f85002d
CRs-fixed: 2457998
2019-05-23 16:39:55 -07:00
Srinivas Dasari
b264fecd52 qcacld-3.0: Read ini param oce_sta_enable after parsing the ini conf
The ini param oce_sta_enable is getting read before parsing the
ini conf file, to set few OCE related wiphy flags. None of these
flags are getting set as it is resulting 0.
Move this to an API after parsing the ini file.

Change-Id: Ibf61996da4cc6b69892a5f2fe325b42c39f5fce3
CRs-Fixed: 2449519
2019-05-23 16:39:28 -07:00
nshrivas
8e3bd12ef0 Release 5.2.0.134E
Release 5.2.0.134E

Change-Id: Id1fdcf0344ffbb877433237a58f528da1e2df437
CRs-Fixed: 774533
2019-05-23 13:12:18 -07:00
Rajeev Kumar
c58f7c2578 qcacld-3.0: Add change to support DRV during wow mode
Add changes to support DRV feature during wow mode.

Change-Id: I588dfc5fa1bc419a288f346664c4028ef2d2011b
CRs-Fixed: 2456148
2019-05-23 13:12:17 -07:00
nshrivas
61155b9b08 Release 5.2.0.134D
Release 5.2.0.134D

Change-Id: I417fcb838e30b3629ec308e948b358b55ce002b0
CRs-Fixed: 774533
2019-05-23 09:30:42 -07:00
Frank Liu
7314020cf4 qcacld-3.0: Add genoa defconfig for multiple ko support
To build multipel ko for different wlan targets, add genoa support
which will be used on AUTO platform.

Change-Id: I55e8591624ca4fe03bc06572cd2c46510eded366
CRs-Fixed: 2429383
2019-05-23 09:30:41 -07:00
sheenam monga
70823870a4 qcacld-3.0: CONFIG_MCL cleanup for Serialization msg queue depth
Remove CONFIG_MCL for Serialization msg queue depth to make code generic.
Initialize value for Serialization msg queue depth i.e
SCHEDULER_CORE_MAX_MESSAGES to 1000 for MCL. In case
SCHEDULER_CORE_MAX_MESSAGES not defined, then
SCHEDULER_CORE_MAX_MESSAGES define to 4000 for WIN.

Change-Id: I498cfb73ed7774d9d26b1374ee87b1a7691341d9
CRs-Fixed: 2457704
2019-05-23 09:30:36 -07:00
Abhinav Kumar
392221599a qcacld-3.0: Process vendor cmd for BEACON_REPORTING_OP_STOP
Userspace request driver to report details of each beacon
received whose bssid is same as currently connected BSS's
mac address. The driver encapsulates the details of these
beacons as an asynchronous event within vendor command:
QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with operation
type QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP until
userspace requests to stop sending beacons.

When driver gets stop indication from userspace, it does
the following things:
1. De-register all callback which is registered while handling
start indication
2. Add beacon filter and send it to fw

If driver is in WOW mode and WMI_ADD_BCN_FILTER_CMDID is
NOT configured, fw wakeup HOST and sends connected AP beacon.
Fw should not wakeup host if host is in wow mode. In order
to support this, configure WOW_BEACON_EVENT for STA and P2P.

Change-Id: Ie7c768fa957d02e1361e1ecb95435ba3f06034b0
CRs-Fixed: 2431360
2019-05-23 09:30:32 -07:00
nshrivas
c990f623c5 Release 5.2.0.134C
Release 5.2.0.134C

Change-Id: Idd42f5b35b42200d007de8c075ecd61800392dfa
CRs-Fixed: 774533
2019-05-23 00:17:44 -07:00
Srinivas Girigowda
ef0d714d22 qcacld-3.0: Replace SIR_MAC_BA_* with converged macros
Replace SIR_MAC_BA_* with converged macros.

Change-Id: Id6b32a6e6cbf07ab728fc8832879d2f2dfc85820
CRs-Fixed: 2457795
2019-05-23 00:17:43 -07:00
Srinivas Girigowda
03cebc3fdf qcacld-3.0: Replace SIR_MAC_QOS_* with converged QOS macros
Replace SIR_MAC_QOS_* with converged QOS macros.

Change-Id: I669b83495b4f78398200135c41cd67867fb2fc3d
CRs-Fixed: 2457795
2019-05-23 00:17:37 -07:00
Srinivas Girigowda
48bec1c925 qcacld-3.0: Replace SIR_MAC_ACTION_* macros with ACTION_CATEGORY_*
Replace SIR_MAC_ACTION_* macros with converged ACTION_CATEGORY_*.

Change-Id: I53eb7f02ca9e271116198d40b0e98163cc0331b8
CRs-Fixed: 2457795
2019-05-23 00:17:33 -07:00
nshrivas
d3c98d0159 Release 5.2.0.134B
Release 5.2.0.134B

Change-Id: I07eccab6ff101656588896fa9d6e7d24bd3f8fdb
CRs-Fixed: 774533
2019-05-22 14:15:12 -07:00
Sravan Kumar Kairam
dbb89a7c2f qcacld-3.0: Enable SMMU S1 flag for Kona
Enable IPA SMMU S1 translation feature flag for
kona target.

Change-Id: Ia16867dd730c658b043e58ac832a05d6abe58f05
CRs-Fixed: 2457687
2019-05-22 14:15:11 -07:00
nshrivas
cac99062f7 Release 5.2.0.134A
Release 5.2.0.134A

Change-Id: I7ab3fe744104eca7334797f0793625a6e6a6970e
CRs-Fixed: 774533
2019-05-22 09:06:15 -07:00
Nirav Shah
4e6451fe9d qcacld-3.0: Do not send reassoc failure in case of no hw_mode change
In roaming scenario when there is no hw_mode change is required, roam
failure is sent to CSR which is causing move VDEV from INIT state to
EV_DOWN. In this case, wma_target_req buffer expected instead of
scheduler_msg. As the wrong buffer is passed, it is causing a
system instability.

Fix is not to send reassoc failure for LFR2 when there is
no change in hw_mode required and go ahead with connect.

Change-Id: I7cc7b0ee1407e04c47177838fc069db5b90353d7
CRs-Fixed: 2451178
2019-05-22 09:06:14 -07:00
nshrivas
e609d6c4e2 Release 5.2.0.134
Release 5.2.0.134

Change-Id: I3f5caccd7857576759ef9f5cb74530368feba07b
CRs-Fixed: 774533
2019-05-22 04:47:03 -07:00