Commit Graph

6410 Commits

Author SHA1 Message Date
Abhinav Kumar
4d1f9f442d qcacld-3.0: Send connected AP beacon data to userspace
Once driver gets QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING vendor
command with an attribute for start, firmware sends all
beacons to host for the connected peer. Host extract required info
(SSID, BSSID, Channel number, Beacon Interval, Timestamp, System
timestamp) from incoming beacon for connected AP and sends it to
userspace. Userspace needs this data for WIPS.

Change-Id: I9d6dd068a076bda79881043946be3133ee87fe84
CRs-Fixed: 2431354
2019-05-10 19:07:01 -07:00
nshrivas
721b5f34b6 Release 5.2.0.132X
Release 5.2.0.132X

Change-Id: I0d47b2395cb342a365bd1d4dbc666523b426579e
CRs-Fixed: 774533
2019-05-10 16:28:33 -07:00
Abhishek Singh
06522c56cd qcacld-3.0: On CSA complete, check if all peer need to be disconnected
CSA on DFS channels requires CAC period after RESTART response, peers
can leave during CAC period due to HB failure. But peers remain
connected in SAP and are not deleted.
Now if vdev down is called during CAC wait period, the peer delete
all is not called, and vdev delete is sent without sending peer
delete to firmare leading to assert.

This change adds the logic to internally disconnect all peers before
channel switch if CAC is required on new channel, i.e new channel is
DFS and pre-CAC is not done and ignore cac is not set.

Change-Id: I923fd11d1b9d4a2c606b19ff94baaf44397d3e20
CRs-Fixed: 2449104
2019-05-10 16:28:32 -07:00
nshrivas
e937a1f560 Release 5.2.0.132W
Release 5.2.0.132W

Change-Id: Idd35ce40a01a0b88080025eb5cc41d5cc88cf86d
CRs-Fixed: 774533
2019-05-10 01:34:33 -07:00
nshrivas
9f3bd236ef Release 5.2.0.132V
Release 5.2.0.132V

Change-Id: I2e4ecbcd83b879a2e0dc1a6e292b87974d667ebb
CRs-Fixed: 774533
2019-05-09 04:59:02 -07:00
nshrivas
887e7aa8b6 Release 5.2.0.132U
Release 5.2.0.132U

Change-Id: I0fbf8cf0e4abd4bcf101b8e8d2a7de81121995e9
CRs-Fixed: 774533
2019-05-08 04:47:01 -07:00
gaurank kathpalia
efb20a8901 qcacld-3.0: Provide assoc req, rsp IE to kernel in assoc fail case
Currently the driver does not sends the assoc req and assoc
response frame exchanged with the AP if the connection attempt
fails with the peer.
The connection failure can be because of n number of reasons,
OCE assoc reject be one of them.
The supplicant requires these IEs to reject the connection
attempt with the AP with which the connect attempt failed
for t number of seconds, which is mentioned by the AP.

Fix is to send the assoc req, and assoc response IEs to
the driver.

Change-Id: I9c1f7063105912a8005f9e8399640d028b15eec7
CRs-Fixed: 2445709
2019-05-08 04:46:52 -07:00
nshrivas
9e4e9b8245 Release 5.2.0.132T
Release 5.2.0.132T

Change-Id: I8167ac28454bc809f1b2bd7d81b5ffd63423a34d
CRs-Fixed: 774533
2019-05-08 02:51:34 -07:00
nshrivas
eff6a69618 Release 5.2.0.132S
Release 5.2.0.132S

Change-Id: I5d0407b8ec38234cb1499db2db002aa8c2d671e0
CRs-Fixed: 774533
2019-05-06 21:25:32 -07:00
nshrivas
226c859bfa Release 5.2.0.132R
Release 5.2.0.132R

Change-Id: I515ece157e9d0b8b45bfa43f1f67795fa0646ca0
CRs-Fixed: 774533
2019-05-06 17:04:13 -07:00
Kiran Kumar Lokere
412686bc01 qcacld-3.0: Fix HE capable setting in TDLS setup
Currently HE capable for TDLS peer is set from STA connection
session which sets the TDLS peer HE capability incorrectly.
Set the HE capable setting for TDLS peer from the peer STA
context that has correct value.

Change-Id: I232d32fb45ea5bbe7c2925922de3804e28f888cc
CRs-Fixed: 2441422
2019-05-06 17:04:12 -07:00
nshrivas
eded83990b Release 5.2.0.132Q
Release 5.2.0.132Q

Change-Id: Ic08c6e171dd680ecd589ab6b97b2058478c8e9ab
CRs-Fixed: 774533
2019-05-06 14:58:19 -07:00
nshrivas
993c892fd2 Release 5.2.0.132P
Release 5.2.0.132P

Change-Id: I7ff3ac0295e068e05180224beca440aa9e207367
CRs-Fixed: 774533
2019-05-06 07:27:25 -07:00
Lin Bai
7bae103faa qcacld-3.0: Fix mismatch EPPING deinit
EPPING module only need to be deinited when current mode is EPPING.

Change-Id: Ia295af3f5ea2cffd394de7174be933d7fde6798d
CRs-Fixed: 2437683
2019-05-06 07:27:24 -07:00
nshrivas
7ebb54c2bb Release 5.2.0.132O
Release 5.2.0.132O

Change-Id: Id6d1d72bc06eee33a5ea6ba847ebbc76cf52d516
CRs-Fixed: 774533
2019-05-04 14:42:10 -07:00
nshrivas
1e124f7f83 Release 5.2.0.132N
Release 5.2.0.132N

Change-Id: I7283d5c0ae6aee247539caab6ad5df99211953a2
CRs-Fixed: 774533
2019-05-03 21:32:36 -07:00
nshrivas
0bb331f0b4 Release 5.2.0.132M
Release 5.2.0.132M

Change-Id: I3cad8bfbde6d8f3a8642bb1f57f1d38816bbfb24
CRs-Fixed: 774533
2019-05-03 09:23:47 -07:00
nshrivas
497e91c8c3 Release 5.2.0.132L
Release 5.2.0.132L

Change-Id: I405d7b6cdf0aba11f725ad5562aa1de861f67f38
CRs-Fixed: 774533
2019-05-03 07:31:38 -07:00
nshrivas
23250b9527 Release 5.2.0.132K
Release 5.2.0.132K

Change-Id: I4d260b4714851da053f5817422a5d404f7698b22
CRs-Fixed: 774533
2019-05-03 05:45:19 -07:00
nshrivas
26d927d21e Release 5.2.0.132J
Release 5.2.0.132J

Change-Id: I8af2f2b91aa48f2130f01eafd8e036817e73b2c6
CRs-Fixed: 774533
2019-05-02 23:39:31 -07:00
nshrivas
514424f31b Release 5.2.0.132I
Release 5.2.0.132I

Change-Id: Ib733c13722737e5b1f80671fab4645444e3925de
CRs-Fixed: 774533
2019-05-02 21:37:18 -07:00
Pragaspathi Thilagaraj
d68c61f8d3 qcacld-3.0: Fix FTIE sha384 akm parse failure
The FTIE subelem lengths are validated before copying
the R0-KH and R1-KH subelement. So remove the sub-element
length sanity check, which is causing parse failure.

Change-Id: I2fd2423e3d33e557e93a82ca250cb8bee1013c1a
CRs-Fixed: 2445863
2019-05-02 21:37:17 -07:00
nakul kachhwaha
088df27098 qcacld-3.0: Avoid NULL pointer dereference in lim_send_auth_mgmt_frame
pLimJoinReq will be NULL for the pe session, created when
STA does a successful FT-Preauth with target AP, using LFR
2.0 based roaming.
Any subsequent roaming using this new pe session will cause NULL
pointer dereference.
Hence checking validity of session->pLimJoinReq before accessing.

Change-Id: I47480a4d22c02ce1cc804430f60e8adf7959164e
CRs-Fixed: 2433647
2019-05-02 21:37:12 -07:00
nshrivas
9f5222d8cb Release 5.2.0.132H
Release 5.2.0.132H

Change-Id: I5bccbabd0e156e8e9dc90787085a7cdb3364d294
CRs-Fixed: 774533
2019-05-02 08:15:55 -07:00
Pragaspathi Thilagaraj
54018e049a qcacld-3.0: Add adaptive 11r VSIE changes and akm filter changes
Adaptive 11r feature that enables the AP to support FT-AKM
without configuring the FT-AKM in the network. The AP will
advertise non-FT akm with a vendor specific IE having Adaptive
11r bit set to 1 in the IE data. The AP also advertises the
MDE in beacon/probe response.

The STA should check the adaptive 11r capability if the AP
advertises MDE in beacon/probe and adaptive 11r capability in
vendor specific IE.  If adaptive 11r capability is found,
STA can advertise the FT equivalent of the non-FT AKM and
connect with 11r protocol.

Before sending probe request to the AP, the host driver
intersects the csr_roam_profile akm with the akms advertised
by the AP in the function csr_construct_rsn_ie(). Based on
the intersection, RSN IE is constructed and this RSN IE will
be sent over the association request frame. Add changes to
fill FT-PSK akm selector if AP advertises PSK akm(00:0f:ac,4).
If the AP advertises 802.1X akm, fill FT-802.1x akm(00:0f:ac,3).

If the session is adaptive 11r connection, then copy the
adaptive_11r flag to pe_session while sending join request.

Populate the adaptive 11r vendor specific IE into association
request frame.

Change-Id: Iae6ea37787e96fd7cffca32fc4d9a33eb5772f26
CRs-Fixed: 2441337
2019-05-02 08:15:54 -07:00
Pragaspathi Thilagaraj
1f3f99fd1f qcacld-3.0: Add support for adaptive 11r
Adaptive 11r feature that enables the AP to support FT-AKM
without configuring the FT-AKM in the network. The AP will
advertise non-FT akm with a vendor specific IE having Adaptive
11r bit set to 1 in the IE data. The AP also advertises the
MDE in beacon/probe response.

The STA should check the adaptive 11r capability if the AP
advertises MDE in beacon/probe and adaptive 11r capability in
vendor specific IE.  If adaptive 11r capability is found,
STA should advertise the FT equivalent of the non-FT AKM.

Introdue a compile time flag WLAN_ADAPTIVE_11R_ENABLED to
enable/disable adaptive 11r support.

If the AP is adaptive 11r capable, set the is_adaptive_11r_ap
flag in bss descrtiptor. This flag will be sent in join request
and populated to pe_session. Also mark the CSR session as
adaptive 11r session based on this flag.

Add changes to check for the adaptive 11r service capability
advertised by firmware. If the host driver connects to adaptive
11r AP, enable RSO only if the firmware advertises adaptive
11r capability, else RSO should be disabled.

If the connection is adaptive 11r connection and if the adaptive
11r ini is enabled, set the adaptive_11r flag in
wmi_roam_11r_offload_tlv_param sent over the wmi command
WMI_ROAM_SCAN_MODE to the firmware. This will enable firmware to
filter the adaptive 11r AP from roam scan results.

Change-Id: If27a2393e3f4bb68942f5ebcec0135f57627f16b
CRs-Fixed: 2437988
2019-05-02 08:15:49 -07:00
nshrivas
57808d9d69 Release 5.2.0.132G
Release 5.2.0.132G

Change-Id: I72bb2ae6686637da8d1573d3fe67ddb69bd0eaf7
CRs-Fixed: 774533
2019-05-02 03:09:05 -07:00
nshrivas
58f582d498 Release 5.2.0.132F
Release 5.2.0.132F

Change-Id: I1bd9d2da2eb3e35c5c0df53396863ab09020aac0
CRs-Fixed: 774533
2019-05-02 01:24:51 -07:00
Pragaspathi Thilagaraj
c248c9e3ae qcacld-3.0: Cleanup legacy ini x-macro and parsing infra in HDD
Before CFG/INI convergence to the new cfg module, hdd maintained
the infrastructure to parse ini items from WCNSS_qcom_cfg.ini and
push the value to hdd_config members. With all the cfg/ini moved
to the new converged CFG component, this infra is not required.

So cleanup the legacy ini infrastructure in HDD.

Change-Id: Ia028edd10682a0ac8ed6a663c20ba5f67b962f1d
CRs-Fixed: 2445314
2019-05-02 01:24:50 -07:00
nshrivas
4e17ae7520 Release 5.2.0.132E
Release 5.2.0.132E

Change-Id: I44aa0ccfb2a155bbe741e02143eb16ce0c0845d9
CRs-Fixed: 774533
2019-05-01 23:41:48 -07:00
nshrivas
2a66145b9b Release 5.2.0.132D
Release 5.2.0.132D

Change-Id: I1d9087f235d4155b763b68bb3b9d45e1de3e364a
CRs-Fixed: 774533
2019-05-01 21:58:41 -07:00
nshrivas
dc4f8f1583 Release 5.2.0.132C
Release 5.2.0.132C

Change-Id: I42f1fef33c9cfd41d37ceb98073db0cc63f93691
CRs-Fixed: 774533
2019-05-01 16:21:03 -07:00
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