Commit Graph

24004 Commits

Author SHA1 Message Date
Yu Wang
d3a8dfe1b6 qcacld-3.0: update rates set on connect success
Update operational rates set, extended operational rates set
and MCS based rates set in VDEV MLME legacy priv object on
connect success.
Refine the APIs for fetching these rates.

Change-Id: I7697b3d2e26e2fc565a2e672afe19f255af89d7e
CRs-Fixed: 3044036
2021-09-28 21:11:56 -07:00
Pragaspathi Thilagaraj
7e90b8b5f5 qcacld-3.0: Fix missing attributes in connectivity logging events
Fix few missing attribute in below connectivity events:
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP

Also send the roam candidate info properly to userspace.

Change-Id: Ia9c4f095316adf8f40294f1e119cad648749bb72
CRs-Fixed: 3037650
2021-09-28 21:11:51 -07:00
Madan Koyyalamudi
2dc924ee27 Release 5.2.0.249S
Release 5.2.0.249S

Change-Id: Iaf98f6754151b9ba29ac33a37453e6c0af1a9698
CRs-Fixed: 774533
2021-09-28 17:04:35 -07:00
Bapiraju Alla
49d83e4831 qcacld-3.0: Fix undefined symbols for ifmgr APIs
Fix undefined symbols for ifmgr APIs while compilation

Change-Id: I3563b04f9995e5c91f351f997b391fc22eb9c1b2
CRs-Fixed: 3046487
2021-09-28 17:04:35 -07:00
Madan Koyyalamudi
28e1882b2d Release 5.2.0.249R
Release 5.2.0.249R

Change-Id: I13e933562db8724a618a5e28f58b14554d978f9d
CRs-Fixed: 774533
2021-09-28 13:59:54 -07:00
Alan Chen
be6943d526 qcacld-3.0: Add error log if qmi sync resume fails
During periodic stats poll for ll_stats and get_station_stats,
if qmi sync resume fails, add an error log.

Change-Id: Iad8d6959d39a6caaa67a24671c833d5e64e47d26
CRs-Fixed: 3045876
2021-09-28 13:59:54 -07:00
Madan Koyyalamudi
1bad9e0350 Release 5.2.0.249Q
Release 5.2.0.249Q

Change-Id: I735243c959479586608abb15e41e35e6db5585b6
CRs-Fixed: 774533
2021-09-28 11:53:43 -07:00
Deeksha Gupta
6c451072ad qcacld-3.0: Fix possible OOB in extract_peer_stats_count_tlv
Currently in function extract_peer_stats_count_tlv,
num_peers is copied directly to wmi_host_stats_event
structure without any validation which may cause
out of bound issue if num_peers provided in fixed
param becomes greater than actual number of peer
stats info.

Fix is to validate num_peer_stats_info before populating
stats_param->num_peer_stats_info_ext.

Change-Id: Icfb1c4fd34d3ec9120064e14bb65e35f8539f7fd
CRs-Fixed: 3032139
2021-09-28 11:53:43 -07:00
Guisen Yang
c99958a9f2 qcacld-3.0: Fix the usage of 'filter' key word
Remove the comma between the text of filter key word. So
the macro CONFIG_MOBILE_ROUTER will be enabled.

Change-Id: Ie69aae479470017eee7a266abf3b7456ac38ef26
CRs-Fixed: 3038353
2021-09-28 11:53:38 -07:00
Ashish Kumar Dhanotiya
4cbab28a38 qcacld-3.0: Reject big data stats command in case of connected sta
Currently for station case if driver receives big data stats
command when station is connected it does not reject the command
and returns the big data stats. Since this command is not
supposed to come in connected case, for some of the stats,
driver returns incorrect values for some of the stats.

With this change reject the big data stats command for connected
station case as this command is for disconnected station.

Change-Id: I543b38f448eb3a8b2d97bd09c888957450116124
CRs-Fixed: 3043000
2021-09-28 11:53:32 -07:00
Madan Koyyalamudi
97308f00f0 Release 5.2.0.249P
Release 5.2.0.249P

Change-Id: Iffd0bfdf93a883cad09239406fb5e160abe00ec5
CRs-Fixed: 774533
2021-09-28 08:04:43 -07:00
Bing Sun
6c1bb1c763 qcacld-3.0: Remove unused allocation of mlo ie struct
Remove unused allocation of mlo ie struct in
sir_convert_mlo_probe_rsp_frame2_struct.

Change-Id: I42e71f7d09304eb91629bed036f40980bf34792a
CRs-Fixed: 3045161
2021-09-28 08:04:43 -07:00
Madan Koyyalamudi
87e6498309 Release 5.2.0.249O
Release 5.2.0.249O

Change-Id: I3601e2c0d0164724852e3c374fce795577d23de1
CRs-Fixed: 774533
2021-09-28 03:43:05 -07:00
Bapiraju Alla
b4cc340c47 qcacld-3.0: Update call to get ml partner info as per new api change
As per new API changes, util_scan_get_ml_partner_info is modified to
pass the output pointer to ml partner info structure. Update caller
accordingly

Change-Id: I4da4a52a857eb147fe74f783136da71252e04444
CRs-Fixed: 3043820
2021-09-28 03:43:05 -07:00
Madan Koyyalamudi
7a3ff80948 Release 5.2.0.249N
Release 5.2.0.249N

Change-Id: I307570cd6853d0d65657f635eec994a7b84c05a9
CRs-Fixed: 774533
2021-09-28 00:30:26 -07:00
abhinav kumar
cba3794625 qcacld-3.0: Process ADDTS RSP with medium time as 0
Currently, if AP sends ADDTS response for an AC with
medium time as 0 host treats it as ADD TS failure.

For the UAPSD scenario, no need to check Tspec medium
time if ACM is not enabled in AP.

Change-Id: I9a769e7fc2f675c07f91d934014338a6d311c791
CRs-Fixed: 3039433
2021-09-28 00:30:25 -07:00
Madan Koyyalamudi
a7cc0c2e6f Release 5.2.0.249M
Release 5.2.0.249M

Change-Id: Ifb15edd5762c020963f21bd70a7ba9a668e3f15f
CRs-Fixed: 774533
2021-09-27 22:22:13 -07:00
Gururaj Pandurangi
8a75333def qcacld-3.0: Rename WMI_HOST_REGDMN_MODE to HOST_REGDMN_MODE
Rename WMI_HOST_REGDMN_MODE_11AC_VHT20_2G to
HOST_REGDMN_MODE_11AC_VHT20_2G to avoid duplicate
definitions and to be in line with the common repo.

Change-Id: I7ecd409641cd998b01165863758f56459282fa7b
CRs-Fixed: 3044438
2021-09-27 22:22:13 -07:00
Madan Koyyalamudi
a913cee728 Release 5.2.0.249L
Release 5.2.0.249L

Change-Id: Id9f3ce2855ca7ca25951cc1eaa5cad377bab13c0
CRs-Fixed: 774533
2021-09-27 20:09:55 -07:00
Liangwei Dong
caf0da1d32 qcacld-3.0: Update ch freq/bw to wma in Roam sync
When ROAM_TARGET_IF_CONVERGENCE feature enabled, the new
channel freq and BW from roam sync are not updated to wma
interface struct.
Fix by update ch_freq & BW to wma in wma_roam_update_vdev.

Change-Id: Ia41c51feca855cab54e908438c51a8d12075f864
CRs-Fixed: 3045108
2021-09-27 20:09:55 -07:00
Utkarsh Bhatnagar
b133ed84cb qcacld-3.0: Fill Current MAC Frequency Range
During wma_pdev_hw_mode_transition_evt_handler()
get the freq range from mac_freq_mapping[] present in
 wmi_pdev_hw_mode_transition_event_fixed_param and  pass
till policy_mgr_hw_mode_transition_cb() and update
cur_mac_freq_range[MAX_MAC] from it. if no freq range
provided (legacy chipsets) then use
freq_range_caps[MODE_HW_MAX][MAX_MAC] to fill the
range depending on the new HW mode.

Change-Id: I145d48052ce37724b0f697c19a1041f5a908cb54
CRs-Fixed: 3044976
2021-09-27 20:09:50 -07:00
Utkarsh Bhatnagar
21ea2c1156 qcacld-3.0: Create function to dump freq range
Create function to dump frequency range per
HW Mode.

Change-Id: I3b5033ba6c572e4fe7ca738224f51e5e22cd93b4
CRs-Fixed: 3044966
2021-09-27 20:09:45 -07:00
Madan Koyyalamudi
016d7273c4 Release 5.2.0.249K
Release 5.2.0.249K

Change-Id: Ia20146dd994824270f931c09a5f1ba7e5bbeb6e6
CRs-Fixed: 774533
2021-09-27 17:57:43 -07:00
Dundi Raviteja
d0babd7fd8 qcacld-3.0: Don't delete monitor interface when STA interface is down
Don't delete monitor interface while STA interface is getting down,
instead de-register packet capture callbacks and register back
when STA interface is UP again.

Change-Id: I42ea39ec619c08d99fa5ba287be20249e2b2582f
CRs-Fixed: 3013758
2021-09-27 17:57:43 -07:00
Liangwei Dong
251f655d28 qcacld-3.0: Move SAP for DBS when STA on 6Ghz unsafe channel
With g_sta_sap_scc_on_lte_coex_chan=0, when SAP working on 6Ghz,
STA connects to another 6Ghz unsafe channel, move SAP to 2G safe
channel for DBS. Add unsafe channel check in
policy_mgr_check_6ghz_sap_conc for such condition and select
alternate 2G channel.

Change-Id: If9d7be045835b4faa36b5d123f820032dabc2b64
CRs-Fixed: 3039791
2021-09-27 17:57:38 -07:00
Madan Koyyalamudi
04ba9d5ee3 Release 5.2.0.249J
Release 5.2.0.249J

Change-Id: I6236386f75dde434cf8585fc21e97d55547d0b5d
CRs-Fixed: 774533
2021-09-26 13:56:37 -07:00
Amruta Kulkarni
9285ff8c5d qcacld-3.0: Send RSO stop in STA + STA roaming
In STA+STA roaming case, when primary interface is changed
and roaming is enabled on other interface rso stop will be sent.
But the roam scan mode is not set to 0.
So add check for primary interface change to reset roam scan mode
before sending RSO stop to FW.

Change-Id: Ia880b58a57b3d9b74f3c4e100d4724aac46b67cd
CRs-Fixed: 3042416
2021-09-26 13:56:37 -07:00
Madan Koyyalamudi
31ed06e99e Release 5.2.0.249I
Release 5.2.0.249I

Change-Id: I1d538a8b0a8baa264f58f635509d1d1d563ff6e2
CRs-Fixed: 774533
2021-09-26 07:39:14 -07:00
Amruta Kulkarni
806fba5a8c qcacld-3.0: Fix compilation issue for MLO
Remove unused variables to fix compilation issue.

Change-Id: I069fa617375bd9cd77d724dd7340dbf5c719aaee
CRs-Fixed: 3043229
2021-09-26 07:39:14 -07:00
Madan Koyyalamudi
0a9f366016 Release 5.2.0.249H
Release 5.2.0.249H

Change-Id: Ie0e68e9d3f326384b3004eeca012bb6510cc6952
CRs-Fixed: 774533
2021-09-26 04:49:55 -07:00
Pragaspathi Thilagaraj
bb16d8f7de qcacld-3.0: Add new logging dispatch table entries
Add new logging dispatch table entries to support below
event types:
QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_ASSOC_REQ
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE

Change-Id: I3bcdbf40e95ecfbcea67d42315d888f831234e05
CRs-Fixed: 3030111
2021-09-26 04:49:55 -07:00
Pragaspathi Thilagaraj
9081371b4b qcacld-3.0: Add changes to send connectivity log events to userspace
Fill the QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA event data and
send the event to userspace.
Add dispatch table for the connectivity events to lookup
attribute type, id and length.

Change-Id: I1fc8467409852a430874ac1d926b06ec8dafb736
CRs-Fixed: 3030085
2021-09-26 04:49:49 -07:00
Pragaspathi Thilagaraj
5e4b2f49ad qcacld-3.0: Fill and send connectivity logging management frame events
Fill the management frame data and enqueue the filled record to the logging
queue.
Frame sequence number, peer rssi, tx_status, authentiation algo,
authentication frame transaction sequence number will be filled to the
log record.

Change-Id: I069b7816fdc52eeed964d6586c52b58d1a5d5cd4
CRs-Fixed: 3030075
2021-09-26 04:49:44 -07:00
Madan Koyyalamudi
887c66c1c0 Release 5.2.0.249G
Release 5.2.0.249G

Change-Id: I96e84f5425bbb4c58392a2be0059997278aede80
CRs-Fixed: 774533
2021-09-25 22:56:40 -07:00
chunquan
ddee734acb qcacld-3.0: Fix tcp drop for out of order
When NAPI enabled for Non-SMP platform, the 32th pkt is
send to tcp stack by netif_receive_skb, the first 31 pkts
are still in backlog queue, out of order issue will happen

Change-Id: Ieef5250fef9fcabb86e0e65673529c7db89a96c1
CRs-Fixed: 2997452
2021-09-25 22:56:40 -07:00
Madan Koyyalamudi
941a26facc Release 5.2.0.249F
Release 5.2.0.249F

Change-Id: Id76f82833524a3d347d4d7fcfb93171de7180b54
CRs-Fixed: 774533
2021-09-24 22:58:44 -07:00
Yu Ouyang
ee65b8465e qcacld-3.0: Get time slice duty cycle from FW
Get time slice duty cycle percentage from firmware.

Change-Id: I6f34948adfb853f61b0498ec68332e39a1b10122
CRs-Fixed: 3021684
2021-09-24 22:58:44 -07:00
Madan Koyyalamudi
adcde748e6 Release 5.2.0.249E
Release 5.2.0.249E

Change-Id: I34501bb29614d0705c0790277fdb13538909c8a0
CRs-Fixed: 774533
2021-09-24 20:44:45 -07:00
Lincoln Tran
cae4c6106a qcacld-3.0: Enable legacy connection with 11be enabled
Don't populate the MLO IE in the assoc req in legacy connections.
Don't create the MLO partner peer in legacy connections.

Change-Id: Id34662608a65ba9b85871d328099849c578f1585
CRs-fixed: 3038615
2021-09-24 20:44:44 -07:00
Bing Sun
0855f4f6ae qcacld-3.0: Start 11be AP without mlo IE with WLAN_FEATURE_11BE_MLO
When WLAN_FEATURE_11BE_MLO is enabled, 11be AP without mlo IE fails
to start because of number of links being 0.

11be AP without mlo IE is a valid case. It should be supported.

Change-Id: I66fce67e7235cd75db4599f7f06d239f7e1d965a
CRs-Fixed: 3042868
2021-09-24 20:44:40 -07:00
Madan Koyyalamudi
2cc48336a8 Release 5.2.0.249D
Release 5.2.0.249D

Change-Id: I1aef4a99945235130b314bf91609bafa7452b8f2
CRs-Fixed: 774533
2021-09-24 18:27:37 -07:00
VIJAY RAJ
7862b826b2 qcacld-3.0: Invalid rem_len computation in roam stats evt handler
rem_len is calculated based on MAX size of the WMI message
(WMI_SVC_MSG_MAX_SIZE) while extracting data from
WMI_ROAM_STATS_EVENTID event data.

Correct this by considering the actual message length
received in the event.

Change-Id: If24f732a8fdc0ad403e9b8a936ff8cfa0b7f7737
CRs-Fixed: 3035196
2021-09-24 18:27:37 -07:00
Madan Koyyalamudi
9f4d7dddec Release 5.2.0.249C
Release 5.2.0.249C

Change-Id: I18eb0552c6ba4a67d8194576b47ff0ee9556ed49
CRs-Fixed: 774533
2021-09-24 02:14:20 -07:00
Lincoln Tran
af893f201c qcacld-3.0: Update SET_FCC_CHANNEL command
If driver receives the command with parameter -1, the driver is enabling
all bands. Add check to see if the device supports 6G first, otherwise
don't change the band settings.

Change-Id: I2e0980015d8e8bad10fbdcd6f397ac1ca383a5bb
CRs-fixed: 3038801
2021-09-24 02:14:20 -07:00
sheenam monga
cdb30cbe71 qcacld-3.0: Send probe response only on probe request channel
Currently lim_process_probe_req_frame_multiple_bss sends probe
response for all AP sessions. If probe request is received on 2g
and 2 AP sessions are present then probe response will be sent
for both AP's operating frequencies which is not desired and
can cause delay to send probe response on required frequency.

Fix is to check probe request frequency and vdev operating freq
if both frequencies are same then only send probe response.

Change-Id: I8df0b0e78a5f9a586567dbe4b1d496f6cee04ff8
CRs-Fixed: 3042791
2021-09-24 02:14:15 -07:00
Surya Prakash Sivaraj
75277ed0ab qcacld-3.0: Send SSID in join req for OWE transition mode
STA connection with OWE transition mode SSID fails due to join
failure timeout. Since, it is OWE transition mode, STA needs probe
response for join success.

The scan table entry of the candidate BSSID is sent in the join request.
This entry is used to create session and to send probe request to AP.
In case of OWE transition mode, the beacon carries wildcard SSID.
Therefore, the scan table entry also has wildcard ssid. Also,
during the candidate selection, scm_ignore_ssid_check_for_owe check
allows even entries with wildcard SSIDs to be selected as candiates
for OWE transition mode.

The join request with Wildcard SSID in the scan entry is used by LIM
to create session, as well as to send probe request.Therefore,
the AP doesn't respond to the probe request with wildcard ssid
leading to join failure timeout.

This change adds ssid from connect request to the cm_vdev_join_req,
which can be used by LIM to create session and to send probe request
whenever the SSID in scan entry is wildcard.

Change-Id: I02e19e16f2620b5568fbff82ff29d394ab9ee00d
CRs-Fixed: 3041073
2021-09-24 02:14:10 -07:00
Madan Koyyalamudi
a71d33d0fc Release 5.2.0.249B
Release 5.2.0.249B

Change-Id: I44f032318802b7a58da41d8dc1a1390da651541f
CRs-Fixed: 774533
2021-09-24 00:01:26 -07:00
Alan Chen
b7ce8eba14 qcacld-3.0: Add an error log before forcing fw crash
Add an error log in cds_trigger_recovery_handler() before forcing a fw
crash to help with debugging stability issues revolving around it.

Change-Id: Ifc5faa14e1812d145abc7aecd12f66db51eef3b4
CRs-Fixed: 3043316
2021-09-24 00:01:26 -07:00
Amruta Kulkarni
1e0e7a7328 qcacld-3.0: Add SCC concurrency check for STA+STA roaming
In case of STA+STA roaming, to enable roaming on primary vdev
check is added to handle SCC concurrency case.

Change-Id: Id43856b344ce016a17e5bf921c629f3dcc2be138
CRs-Fixed: 3041409
2021-09-24 00:01:21 -07:00
Madan Koyyalamudi
ec75534bae Release 5.2.0.249A
Release 5.2.0.249A

Change-Id: I2331246766cdfb4180426302277611d8567779cc
CRs-Fixed: 774533
2021-09-23 21:35:05 -07:00