Commit Graph

6378 Commits

Author SHA1 Message Date
nshrivas
bf0c2b7c56 Release 5.2.0.132B
Release 5.2.0.132B

Change-Id: I0b2e497a9f0741bda9d0a88a93c321d2eb806060
CRs-Fixed: 774533
2019-05-01 10:18:24 -07:00
Ashish Kumar Dhanotiya
9d9816952c qcacld-3.0: Add support to cache peer rssi and mc_bc count
Use updated cp stats component to get peer rssi and tx rate,
rx rate for big data logging as legacy infrastructure is
deprecated.
Additionally add support for RX multicast broadcast packets from FW.

Change-Id: Idcab4a022a4e7e34bd15878f95ad8248ca3aa9dd
CRs-fixed: 2428582
2019-05-01 10:18:15 -07:00
nshrivas
08cda833de Release 5.2.0.132A
Release 5.2.0.132A

Change-Id: I6c8b0ee7631a67bc63fc059ab158109c2ecf4e71
CRs-Fixed: 774533
2019-05-01 05:53:59 -07:00
nshrivas
eadf113bc7 Release 5.2.0.132
Release 5.2.0.132

Change-Id: Ia2abed8b855143366be062387ca04fa3c6251d86
CRs-Fixed: 774533
2019-05-01 04:05:33 -07:00
nshrivas
d3e80a467e Release 5.2.0.131Z
Release 5.2.0.131Z

Change-Id: I16d5fe46bf40052282bbc0ba7ffc7dba25726117
CRs-Fixed: 774533
2019-04-30 22:27:24 -07:00
nshrivas
475387de32 Release 5.2.0.131Y
Release 5.2.0.131Y

Change-Id: Ie82bc6b9e610ac84190502f641cdd075058de854
CRs-Fixed: 774533
2019-04-30 08:41:13 -07:00
Bala Venkatesh
51930d5a43 qcacld-3.0: Don't allow update peer command if peer not found
Do not allow tdls peer update command if tdls peer is not
found in lim. If peer assoc command is given to FW
without peer create, FW will assert.

Remove tdls peers in tdls component in case of roaming as
peers are deleted in lim as part of roaming.

Change-Id: Ie227da682e4d30c9b583881f7e2eaafe91826476
CRs-Fixed: 2441951
2019-04-30 08:41:12 -07:00
nshrivas
55864f4eb5 Release 5.2.0.131X
Release 5.2.0.131X

Change-Id: I4bdb6420e535bff90099048882a3edfada9429cb
CRs-Fixed: 774533
2019-04-30 02:13:15 -07:00
nshrivas
b7a6d8c807 Release 5.2.0.131W
Release 5.2.0.131W

Change-Id: I749fefe088cc9dde4b4e0eaa444988af76d5acb7
CRs-Fixed: 774533
2019-04-29 15:27:10 -07:00
nshrivas
f34c4a6d10 Release 5.2.0.131V
Release 5.2.0.131V

Change-Id: I81cf33b95823721a6f707bb27a03355f5dcc4304
CRs-Fixed: 774533
2019-04-29 06:13:19 -07:00
hqu
fdfa9a62e9 qcacld-3.0: Refine structure he_ops_network_endian
Structure he_ops_network_endian doesn't match 11ax
spec definition for he operation element format.
Driver will parse the wrong value from hostapd data.

Fix is to refine structure he_ops_network_endian
according to 11ax spec, basically sync with structure
tDot11fIEhe_op definition.

Change-Id: I173eca9a2d73df24e44560508c6514479f7d4e5e
CRs-Fixed: 2437831
2019-04-29 06:13:14 -07:00
nshrivas
9632694c97 Release 5.2.0.131U
Release 5.2.0.131U

Change-Id: Icece49374a1f31416a7178140f397e27a1e41d48
CRs-Fixed: 774533
2019-04-29 04:17:31 -07:00
Pragaspathi Thilagaraj
b017650fc7 qcacld-3.0: Handle WMI_ROAM_EVENTID with deauth/disassoc reason
When AP sends deauthentication/disassociation frame, host will
handle the deauth/disassoc frame. If the ini
"enable_disconnect_roam_offload" is enabled, firmware will
trigger a roam scan immediately after deauth/disassoc is
received and roam to a new AP. If roam failure happens after
this roam scan, firmware will send  WMI_ROAM_EVENTID with reason
WMI_ROAM_REASON_DEAUTH.

Register a WMA callback to call the PE disconnect handler
function. This will call lim_tear_down_link_with_ap() to
handle the deauth state machine changes and posts message to
sme to inform the link lost info.

Change-Id: I404b019595b96c0710d09cb9218e3a1d28924fc7
CRs-Fixed: 2443219
2019-04-29 04:17:20 -07:00
nshrivas
bd71a02dc7 Release 5.2.0.131T
Release 5.2.0.131T

Change-Id: I667c0bde3ae5fd5ec87ea63a57111fbf63f08319
CRs-Fixed: 774533
2019-04-29 01:44:27 -07:00
Jianmin Zhu
d25260775f qcacld-3.0: Fix LFR2 VDEV SM failure
1. Move the VDEV SM to UP state in lim_process_mlm_reassoc_cnf in
   success cases similar to lim_handle_sme_join_result.

2. Handle LFR2 fail case in lim_process_mlm_reassoc_cnf
1)	Vdev start failure
2)	Reassoc timeout
3)	Reassoc reject

Change-Id: Id34715faa9428fc11f5330a353258542c8ce29e3
CRs-Fixed: 2442470
2019-04-29 01:44:26 -07:00
nshrivas
b52bb45fd4 Release 5.2.0.131S
Release 5.2.0.131S

Change-Id: Ia1375386ace285037a18d2678d91286752c86a14
CRs-Fixed: 774533
2019-04-28 18:46:28 -07:00
nshrivas
ab48754a2f Release 5.2.0.131R
Release 5.2.0.131R

Change-Id: I95a9d4512e19bf7634a28cf3f43476ff7096b646
CRs-Fixed: 774533
2019-04-27 01:01:42 -07:00
nshrivas
f01c9750e9 Release 5.2.0.131Q
Release 5.2.0.131Q

Change-Id: I17ed1b0c3dc898bf2842eef80531c0f0f8e4ce2d
CRs-Fixed: 774533
2019-04-26 15:30:53 -07:00
nshrivas
69f3785c64 Release 5.2.0.131P
Release 5.2.0.131P

Change-Id: If973a187155901b9fc169322a353b1835b405eda
CRs-Fixed: 774533
2019-04-26 13:43:06 -07:00
nshrivas
c85d254e10 Release 5.2.0.131O
Release 5.2.0.131O

Change-Id: If2696adb0aff601e9761c7f855d0aa22656a154a
CRs-Fixed: 774533
2019-04-26 01:50:29 -07:00
nshrivas
ec17be278d Release 5.2.0.131N
Release 5.2.0.131N

Change-Id: Ia973741152e1422359c37ffcd0758291297a1994
CRs-Fixed: 774533
2019-04-25 00:51:27 -07:00
nshrivas
8682d1c480 Release 5.2.0.131M
Release 5.2.0.131M

Change-Id: I38fcc8cc8afac2ffe01bf94ad9ce43c7bff37fc0
CRs-Fixed: 774533
2019-04-24 20:24:06 -07:00
Pragaspathi Thilagaraj
5f51077b39 qcacld-3.0: Derive PMK-R0 and PMK-R1NAME for FT-FILS
Generate PMK-R0 and PMK-R1NAME for FT-FILS connection and send it
over assoc request frame.

According to 802.11-2016 standard:
PMK-R0 is derived as:
R0-Key-Data = KDF-Hash-Length(XXKey, "FT-R0", SSIDlength ||
				SSID || MDID || R0KHlength ||
				R0KH-ID || S0KH-ID)
PMK-R0 = L(R0-Key-Data, 0, Q)
PMKR0Name = Truncate-128(SHA-256("FT-R0N" || PMK-R0Name-Salt))

PMK-R1 is derived as:
PMK-R1 = KDF-Hash-Length(PMK-R0, "FT-R1", R1KH-ID || S1KH-ID)

PMK-R1Name is derived as:
PMKR1Name = Truncate-128(SHA-256(“FT-R1N” || PMKR0Name ||
			R1KH-ID || S1KH-ID))

Call qdf_get_hash() function to generate a sha-256 or sha-384
hash. Use qdf_get_hash() with hmac(sha-256) or hmac(sha-384)
to generate hmac_hash.

Set PMKID count as 1 in RSN IE and copy the PMKR1-name
generated to the PMKID list. This PMKR1 should be the only
entry in PMKID list in assoc request frame sent by the driver
during FT-FILS initial mobility domain FILS connection.

Change-Id: Ic634aebbe42a58b92f871cf3258c62f7541d161a
CRs-Fixed: 2414719
2019-04-24 20:24:05 -07:00
Pragaspathi Thilagaraj
eb367282fd qcacld-3.0: Handle wmi_key_material_ext tlv of ROAM_SYNCH event
With current design, firmware sends the kck, kek and replay
counters as part of wmi_key_material tlv over the
WMI_ROAM_SYNCH_EVENTID event. But the maximum supported kck key
length in wmi_key_material was 16 bytes. But for FT Suite-B
(akm 00:0f:ac:13), the kck_bits is 24 bytes long and cannot be
sent over wmi_key_material. So firmware sends kck, kek and
replay counter values over the new tlv wmi_key_material_ext.

Host driver copies the kck key with fixed 16 byte length to the
upper layers. Introduce kck_length parameter in csr_roam_info
and roam_offload_synch_ind structures and copy kck based on this
length.

Also fix maximum number of AKM suites supported to 5, as some
certification test cases advertise 5 akms.

Change-Id: Iab050e3e3f7efead8070a02094998d15f7ffcbd0
CRs-Fixed: 2400770
2019-04-24 20:23:59 -07:00
nshrivas
beca3785a2 Release 5.2.0.131L
Release 5.2.0.131L

Change-Id: Ie55a37cb772d419a247de720bd88427d935c55fc
CRs-Fixed: 774533
2019-04-24 13:11:52 -07:00
nshrivas
17384edab1 Release 5.2.0.131K
Release 5.2.0.131K

Change-Id: Id9b21f072d044407e1d2c78629dbf848c3d3bc0a
CRs-Fixed: 774533
2019-04-24 11:38:31 -07:00
nshrivas
124a444ae3 Release 5.2.0.131J
Release 5.2.0.131J

Change-Id: Ic8884428a6d3e264fc8b9e0a47ed59373a2addce
CRs-Fixed: 774533
2019-04-24 09:29:53 -07:00
Abhishek Singh
173d469846 qcacld-3.0: Fix duplicate IE detection logic in missed API
In some parse APIs the duplicate IE detection logic is not present
and thus duplicate IE will be processed again.

Fix by adding logic in missed API to parse IEs.

Change-Id: I0ad5decf41e72783c211fca2ca56d796b08a1003
CRs-Fixed: 2441001
2019-04-24 09:29:53 -07:00
nshrivas
4b50cf5e6f Release 5.2.0.131I
Release 5.2.0.131I

Change-Id: I23ab6a1b762df029f82c7e2bb0e02a9694280bff
CRs-Fixed: 774533
2019-04-24 04:05:42 -07:00
Paul Zhang
a25f75a841 qcacld-3.0: Add INI to config tx retry threshold
Add gTxAggSwRetry for tx aggregation case, and
Add gTxNonAggSwRetry for non tx aggregation case.

Change-Id: I92265fb4e279eaf63c45f0134f997df02bca8737
CRs-Fixed: 2436305
2019-04-24 04:05:41 -07:00
nshrivas
560708b1bb Release 5.2.0.131H
Release 5.2.0.131H

Change-Id: I80aa96b418dc7b5ef11618da0c3f621c6137e538
CRs-Fixed: 774533
2019-04-24 02:28:27 -07:00
nshrivas
2e582d2cbc Release 5.2.0.131G
Release 5.2.0.131G

Change-Id: I48b044527b856d745f97a8f7db2c9db7a540a327
CRs-Fixed: 774533
2019-04-23 16:18:45 -07:00
Pragaspathi Thilagaraj
0bd369dce7 qcacld-3.0: Parse FTIE with MIC length 24 for SHA384 AKMs
For SHA384 based 11r AKMs below:
FT-FILS-SHA384, FT-SUITEB-SHA384, the FT MIC length is 24. But
the host driver has MIC length hardcoded as 16, so only first
16 bytes of MIC is copied into MIC field and the rest 8 bytes are
copied into R1KH-ID. This results in R1KH-ID and R0KH-ID parse
failure. Due to this, the host driver sends R0KH-ID as 0 to the
firmware in the R0KH-ID. So the next roaming fails in the
firmware.

For SHA384 based AKMs, add changes to reparse the association/
reassociation response FT element. Introduce new FTIE structure
with MIC defined as array of 24 bytes. With this, the R0KH-ID
and R1KH-ID will be populated correctly in to the assoc response
structure and ultimately RSO command will carry the right R0KH-ID
to firmware.

Change-Id: I5aa50145fcd3ba91b1c92d4817b7f0e4fc216e3f
CRs-Fixed: 2430828
2019-04-24 01:38:43 +05:30
nshrivas
d146bf6b30 Release 5.2.0.131F
Release 5.2.0.131F

Change-Id: I81b88004ed0a82e60eee0bfde5e960c2e425e3ee
CRs-Fixed: 774533
2019-04-23 08:18:39 -07:00
nshrivas
b78cde930a Release 5.2.0.131E
Release 5.2.0.131E

Change-Id: Ia6353f91bfddde9d70fa1687945e9307ee3de8b1
CRs-Fixed: 774533
2019-04-23 05:36:48 -07:00
nshrivas
03b57dc51a Release 5.2.0.131D
Release 5.2.0.131D

Change-Id: If30b8036b3d77e652238c7743af5821226c11ecc
CRs-Fixed: 774533
2019-04-23 01:19:13 -07:00
nshrivas
43175c49ac Release 5.2.0.131C
Release 5.2.0.131C

Change-Id: Iee817902c891e67ad2ea15bccf8a7c58f4868e5e
CRs-Fixed: 774533
2019-04-22 18:21:04 -07:00
nshrivas
bda12ce5c6 Release 5.2.0.131B
Release 5.2.0.131B

Change-Id: I26447713b3c7f6663e2222be2374792f9096bb9d
CRs-Fixed: 774533
2019-04-22 14:58:30 -07:00
nshrivas
9bfde90005 Release 5.2.0.131A
Release 5.2.0.131A

Change-Id: Iabb6136f6d67387b45097195bbe35f89c49fb570
CRs-Fixed: 774533
2019-04-21 18:11:07 -07:00
nshrivas
5316677e1e Release 5.2.0.131
Release 5.2.0.131

Change-Id: I5e2ce51428ade4268ed92f225192764649f6b4b7
CRs-Fixed: 774533
2019-04-21 06:17:30 -07:00
nshrivas
a994c9aadb Release 5.2.0.130Z
Release 5.2.0.130Z

Change-Id: I9d532259d57fbda056074f0ae0ab80c992fde44c
CRs-Fixed: 774533
2019-04-21 00:19:50 -07:00
nshrivas
d3d7ec4486 Release 5.2.0.130Y
Release 5.2.0.130Y

Change-Id: If5aa840ec1e1ee898f89b2ccc6c8d5766257635a
CRs-Fixed: 774533
2019-04-20 21:40:25 -07:00
nshrivas
0732d124ea Release 5.2.0.130X
Release 5.2.0.130X

Change-Id: Id6318f223533a479b19c6f438c3eeb1ed77821fe
CRs-Fixed: 774533
2019-04-19 09:25:46 -07:00
nshrivas
c06f367c74 Release 5.2.0.130W
Release 5.2.0.130W

Change-Id: I9b3efd465f28cb8d4d505ab0b0a3f1c02e14eca8
CRs-Fixed: 774533
2019-04-19 06:12:48 -07:00
Pragaspathi Thilagaraj
03839b9e2f qcacld-3.0: Pack FT-IE into association request for FT-FILS connection
With FT-FILS akm, initial mobility domain fils connection
requires FTIE in the assoc request frame. FTIE is copied from
auth response frame received from the AP and stored in fils_info.
Add frame parser changes to populate the FT-IE into the
association request frame.

Send this FTIE in the association request appended after MDIE.

Change-Id: I9087ff9f36b52f3ef08b03cba826bdc42834a9f8
CRs-Fixed: 2414678
2019-04-19 06:12:43 -07:00
Pragaspathi Thilagaraj
0bd15747c0 qcacld-3.0: Save FTIE from auth response in FT-FILS IM connection
FT-FILS initial mobility domain association requires FTIE in the
association request frame sent to the AP. FTIE has the R0-KH and
R1-KH ID that is needed to derive the FILS-FT key.

Host driver should save the FTIE received from the AP in the
authentication response frame and send it without any
modification to the AP in association request frame.

Change-ID: I047538e13b37e10c2cebad4959fc796af5d16df6
CRs-Fixed: 2414662
2019-04-19 06:12:38 -07:00
nshrivas
c16f627c56 Release 5.2.0.130V
Release 5.2.0.130V

Change-Id: I409ca3bd43adccb2d36e59ae3b3fcfc863db5675
CRs-Fixed: 774533
2019-04-19 04:08:38 -07:00
Rajeev Kumar Sirasanagandla
1a21bf6b53 qcacld-3.0: Fix behavior of SET_FCC_CHANNEL
Expectation of user is fcc constraint should be applied when user input
is zero and should be cleared when input is negative value. But current
driver behavior is out of sync.

To address this, invert the user-input before invoking regulatory
component api ucfg_reg_set_fcc_constraint(). Also ensure reduced
tx power is effective in calculating maximum tx power while connecting
to access-point.

Change-Id: I73485685b70b805107a52080c64efde30e807dc3
CRs-Fixed: 2429993
2019-04-19 04:08:37 -07:00
Pragaspathi Thilagaraj
2b8ea35e71 qcacld-3.0: Introduce new INI to configure roam trigger parameters
Add new ini to configure various roam trigger parameters:
1. "minimum_btm_candidate_score"
   Consider the AP as roam candidate only if its score is greater
   than minimum_btm_candidate_score. This value will be sent over
   the WMI_BTM_OFFLOAD_CONFIG command.

2. "roam_scan_inactivity_time"
   Device inactivity monitoring time in  milliseconds for which
   the device is considered to be inactive with data packets
   count is less than configured roam_inactive_count.

3. "roam_inactive_data_packet_count"
   Maximum allowed data packets count during
   roam_scan_inactivity_time.

4. "roam_scan_period_after_inactivity"
   Roam scan period in ms after device was in inactive state.

5. "btm_roam_score_delta"
   Roam scan delta value for btm triggered roam scan. This value
   will be sent to firmware over the WMI_ROAM_AP_PROFILE wmi
   command.

6. "idle_roam_score_delta"
   Roam scan delta value for Idle roam scan trigger reason. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_delta_param_list tlv.

7. "disconnect_roam_trigger_min_rssi"
   Candidate minimum rssi value for disconnect roam trigger. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_min_rssi_param_list tlv.

8. "beacon_miss_roam_min_rssi"
   Candidate minimum rssi value for BTM triggered roam. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_min_rssi_param_list tlv.

9. "bss_load_trigger_5g_rssi_threshold"
   If connected AP is in 5GHz band, then consider bss load roam
   triggered only if load % > bss_load_threshold && connected AP
   rssi is worse than bss_load_trigger_5g_rssi_threshold.

10. "bss_load_trigger_2g_rssi_threshold"
   If connected AP is in 2GHz band, then consider bss load roam
   triggered only if load % > bss_load_threshold && connected AP
   rssi is worse than bss_load_trigger_2g_rssi_threshold.

Change-Id: Ib026251a8ec403f4376a16a91ff1b5d969336816
CRs-Fixed: 2434922
2019-04-19 04:08:32 -07:00
nshrivas
ed23c6ff1e Release 5.2.0.130U
Release 5.2.0.130U

Change-Id: Ibbc49ff140d69f6968023f79e6ad7ca23a42d93b
CRs-Fixed: 774533
2019-04-19 01:56:40 -07:00