Commit Graph

20355 Commits

Author SHA1 Message Date
snandini
b71c7963a8 Release 5.2.0.197Q
Release 5.2.0.197Q

Change-Id: I948cbad569cfcaab60029a30b4bccbe5cb4aff7c
CRs-Fixed: 774533
2020-08-10 22:30:40 -07:00
wadesong
a9db8c7b0c qcacld-3.0: Fix compilation error for LFR2+BLM
With the newly introduced BLM enhancement, APs may get enlisted
and sent to FW for (re)assoc restraint. However, the FW side
AP restraint is only required when LFR3 is enabled.

With LFR2, no FW side AP (re)assoc restraint is required and all
actions will be done within driver code.

Use LFR3 specific conditional macro to enclose all the code
needed for sending reject AP list to FW.

Change-Id: I9a8bc0e25bc4b319bf1841324ef1b711f0659093
CRs-Fixed: 2751791
2020-08-10 22:30:40 -07:00
snandini
4cb64414e3 Release 5.2.0.197P
Release 5.2.0.197P

Change-Id: I2989c57d2e03b2d697b544113afc5285423e81ca
CRs-Fixed: 774533
2020-08-10 20:29:39 -07:00
Manjunathappa Prakash
dfed37f892 qcacld-3.0: Add config flag to deliver defrag frames
Add config flag to deliver defrag frames without REO reinjection.

Change-Id: If18adecc5b1f48c42ac116bc66dfa26eb73122ac
CRs-Fixed: 2745406
2020-08-10 20:29:39 -07:00
snandini
7f70008786 Release 5.2.0.197O
Release 5.2.0.197O

Change-Id: Iaa978afc9559d0d58d4a09148434b5676d53e52e
CRs-Fixed: 774533
2020-08-10 06:00:35 -07:00
Will Huang
73574ad2d8 qcacld-3.0: Define max number of keep alive pattern at one place
Currently there are 2 places where max number of keep live pattern
are defined:
1.  #define WMA_MAXNUM_PERIODIC_TX_PTRNS 6
And it can be configured by CONFIG_CFG_MAX_PERIODIC_TX_PTRNS.
2. #define MAXNUM_PERIODIC_TX_PTRNS 6
And it is hard coded value.

It is possible to have different values defined on some platform,
so we might give tgt_cfg->num_keep_alive_pattern value as 2,
but still allow more than 2 keep alive patterns adding to target,
where assert might happen.

Fix it by defining max number of keep alive pattern at one place.

Change-Id: I70ec3fa2e56a39cf8086750d966d95e41b2b75a7
CRs-Fixed: 2745443
2020-08-10 06:00:35 -07:00
snandini
0366e32999 Release 5.2.0.197N
Release 5.2.0.197N

Change-Id: Ie91974ec14ccaf8bf2e801df725cd2ba8317a3d4
CRs-Fixed: 774533
2020-08-10 00:03:00 -07:00
Liangwei Dong
e6a2f020ca qcacld-3.0: Fix P2P Client startup failure in STA+SAP
Update the STA+CLI+SAP cocurrency in 2x2 PCL tables according
to STA+GO+SAP concurrency PCL.

Change-Id: I292881f463613b5b38ccfff42bf1509396bdb472
CRs-Fixed: 2749425
2020-08-10 00:03:00 -07:00
snandini
1fa16507ed Release 5.2.0.197M
Release 5.2.0.197M

Change-Id: I3c21bd4d1e2756e180927fde662727c7f762ae8c
CRs-Fixed: 774533
2020-08-09 22:01:13 -07:00
Jingxiang Ge
c1ee492b7b qcacld-3.0: Trigger runtime resume before disconnection
In Case device is in suspending, if there is a disconnection,
disconneciton may fail as wmi cmd is not able to send to fw.

Add synchronization resume before disconnection as a protection.

Change-Id: I250d3a86183a61629e9369f49209c5a058a9a9a1
CRs-Fixed: 2746816
2020-08-09 22:01:13 -07:00
snandini
14c83ba01c Release 5.2.0.197L
Release 5.2.0.197L

Change-Id: I48142eae48ee109ef3ee1f872159b2d731d88d64
CRs-Fixed: 774533
2020-08-08 18:59:28 -07:00
Gururaj Pandurangi
33b02c097e qcacld-3.0: Support 5.9 ghz channels for US
Add support for new 5.9 ghz channels 169, 173
and 177 in hdd and sap modules

Change-Id: I630df032d93624db20aed9891ec53256fcfd55ab
CRs-Fixed: 2751051
2020-08-08 18:59:27 -07:00
snandini
169dbcedb5 Release 5.2.0.197K
Release 5.2.0.197K

Change-Id: I832312b1d8d91a5db82e1a61fe41287c18fe9fb3
CRs-Fixed: 774533
2020-08-07 15:01:57 -07:00
Pankaj Singh
db85c00306 qcacld-3.0: Extend Tdls external mode config support
Current implementation of external mode requires supplicant to
send tdls peer mac address. On matching of stats tdls implict
link procedure is triggered for configured peer.

Fix, to allow both configured peer and other peer that supports
tdls to establish the tdls link.

Change-Id: If7cb10986126db28979293653b1bc2a92c3f72eb
CRs-Fixed: 2750191
2020-08-07 15:01:57 -07:00
Abhishek Singh
99f45408a0 qcacld-3.0: Fill proper AKM for WAPI
In WAPI conenction the check for WAPI authmode is missing.
And thus AKM filles in open mode leading to not seinding the WAPI
IE in assoc req and thus Assoc reject.

Fix by properly handling the WAPI case.

Change-Id: Ic7b7b7e5ffce46e30ade20395406287e1b5a5fce
CRs-Fixed: 2744415
2020-08-07 15:01:53 -07:00
snandini
1963965efd Release 5.2.0.197J
Release 5.2.0.197J

Change-Id: I1f3d7c8477d2d6b59b9d947a5c287658e449b412
CRs-Fixed: 774533
2020-08-07 12:57:32 -07:00
Min Liu
ed37571ba9 qcacld-3.0: Remove unnecessary NULL pointer check
Remove unnecessary NULL pointer check which is already done
in the caller.

Change-Id: I1facd599b78c3f5d4c2c1ed6f6591a12560d4508
CRs-Fixed: 2749441
2020-08-07 12:57:32 -07:00
jianmin
f5951e0c42 qcacld-3.0: Avoid use after free in csr_post_rso_stop
Req has been freed in csr_roam_send_rso_cmd when post msg failed.
Avoid use after free and double free in csr_post_rso_stop.

Change-Id: I86e6360eed1a57d0bac218f799393fff0e2a4a58
CRs-Fixed: 2748399
2020-08-07 12:57:28 -07:00
snandini
b884527670 Release 5.2.0.197I
Release 5.2.0.197I

Change-Id: Id03ebc2d86c7fa153e1d5bbb0261a7cc23e254fb
CRs-Fixed: 774533
2020-08-07 02:53:17 -07:00
Wu Gao
a0a03562ea qcacld-3.0: Check the state before starting tdls timer
Since tdls_implicit_enable will be called in different scenarios, and
there is error level output if repeated start same timer. So check
the state before starting tdls timer.

Change-Id: Id023affa016f337286dad539298a9bbc15381091
CRs-Fixed: 2747370
2020-08-07 02:53:16 -07:00
Abhishek Ambure
ab079ed334 qcacld-3.0: Add ini to enable/disable WLS 6ghz support
Host sends the WLAN_MSG_WLAN_STATUS_IND to WiFi Location Service(WLS) via
cnss daemon which includes supported channels. WLS service is yet not 6GHz
capable. Hence to limit the 2.4GHz/5GHz channels only in
WLAN_MSG_WLAN_STATUS_IND introduce new INI "wls_6ghz_capable".

Change-Id: I77b284d2025601fec72aa35d430f18865f15f247
CRs-Fixed: 2748489
2020-08-07 02:53:12 -07:00
Gururaj Pandurangi
4e68c1c28d qcacld-3.0: Add sanity checks in csr macro
Add sanity checks in csr macro CSR_IS_SESSION_VALID
before dereferencing roam session id

Change-Id: Ia17b515c95ba72d03d075fbf881698a82d7eec47
CRs-Fixed: 2747938
2020-08-07 02:53:08 -07:00
snandini
87194f84e6 Release 5.2.0.197H
Release 5.2.0.197H

Change-Id: Idaae10edf43b2a7e69e987052b480c65ef8ad154
CRs-Fixed: 774533
2020-08-07 00:53:35 -07:00
Vulupala Shashank Reddy
0ceff50660 qcacld-3.0: Do not send HT, VHT and HE ie's to FW in all the modes
Send HT ie's to FW in AUTO, 11N, 11AC and 11AX modes.

Send VHT ie's to FW in AUTO, 11C, and 11AX modes.

Send HE ie's to FW in AUTO and 11AX modes.

Change-Id: I0ed7b0108593ee20540d4e5da2c1461a4a15e8fc
CRs-Fixed: 2748761
2020-08-07 00:53:34 -07:00
snandini
63ba2ed8ad Release 5.2.0.197G
Release 5.2.0.197G

Change-Id: Ib2fa1f74370aabab4e01f1a305c85563e4e13ded
CRs-Fixed: 774533
2020-08-06 22:52:02 -07:00
Yu Wang
e716703408 qcacld-3.0: refine the code for packetdump_timer
Enable packetdump_timer related operations only when
following conditions are met:
1. WLAN_LOGGING_SOCK_SVC_ENABLE is defined.
2. FEATURE_PKTLOG is defined.
3. REMOVE_PKT_LOG is not defined.

CRs-Fixed: 2747430
Change-Id: I47575ff184345884c47fe91922236bb4a3db420b
2020-08-06 22:52:02 -07:00
snandini
5449f2e987 Release 5.2.0.197F
Release 5.2.0.197F

Change-Id: Ibb019f0dd0920120c76b9e852a9d0c474d0ad955
CRs-Fixed: 774533
2020-08-06 20:40:26 -07:00
Min Liu
7fa0f52e75 qcacld-3.0: Fix static code analysis warning
Initialize chan_id with 0 in struct wifi_pos_ch_info since it
is obsoleted by channel frequency.

Change-Id: I8228ffc0cce33dcaaa73c29cca5760ff2dbfd8fd
CRs-Fixed: 2749395
2020-08-06 20:40:26 -07:00
snandini
ae9c5c8b26 Release 5.2.0.197E
Release 5.2.0.197E

Change-Id: I4ee220b45450f06fed68f7074012a64590b9cf8d
CRs-Fixed: 774533
2020-08-06 18:40:53 -07:00
Pankaj Singh
bc917e55af qcacld-3.0: Invalid offchannel freq sent in tdls offchannel command
In WMI_TDLS_SET_OFFCHAN_MODE_CMDID the offchannel freq is set to invalid
value due to uninitialized local tdls_channel_switch_params type variable
resulting in fw reading incorrect non zero offchanel freq.

Fix, to zero initialize the local tdls_channel_switch_params variable.

Change-Id: Ia7d6daac098a179a22676620875a2b0d6488a8ad
CRs-Fixed: 2739267
2020-08-06 18:40:53 -07:00
snandini
04e2db33c8 Release 5.2.0.197D
Release 5.2.0.197D

Change-Id: I1be9df80c2e21c50da80997cf122f42a3e8cce8c
CRs-Fixed: 774533
2020-08-06 16:39:57 -07:00
hqu
e6dec862e4 qcacld-3.0: Move rso related process to connection manager [PART 5]
Add new code to implement below functions for connection manager
roam part:
Filling below WMI cmd parameters related process:
WMI_11K_OFFLOAD_REPORT_CMDID
WMI_ROAM_DEAUTH_CONFIG_CMDID
WMI_ROAM_IDLE_CONFIG_CMDID

Change-Id: I346b921a6f378e7c4d8860acd7c3bec45a0b9d3a
CRs-Fixed: 2749430
2020-08-06 16:39:57 -07:00
snandini
303e8b39b5 Release 5.2.0.197C
Release 5.2.0.197C

Change-Id: Ia7db03da90247e80f3365c633d69df6348db13cf
CRs-Fixed: 774533
2020-08-06 08:43:02 -07:00
jianmin
d85ce3cf2b qcacld-3.0: Avoid use after free in wma_delete_sta
If wma_send_msg_high_priority failed to send msg, msg body is freed,
can't access later.
Move wma_delete_sta_req_sta_mode and log to avoid use after free.
Duplicate MLME_IS_ROAM_SYNCH_IN_PROGRESS is called in 3 functions in
same stack, clean up it.

Change-Id: I28b7cc9f12902aefa37bf1345c94ec6f0b581297
CRs-Fixed: 2748407
2020-08-06 08:43:02 -07:00
snandini
c006d92d67 Release 5.2.0.197B
Release 5.2.0.197B

Change-Id: Ieda061b244312e54e9fd6acde9088baeb14c0005
CRs-Fixed: 774533
2020-08-06 06:34:40 -07:00
Abhinav Kumar
247596b04b qcacld-3.0: Send value of INI "roam_score_delta" to FW
As per requirement, send a value of an INI "roam_score_delta" to FW
through WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID.

Change-Id: I9a2087f83c2eb95338d440dc901bd8aa246f7e5f
CRs-Fixed: 2740552
2020-08-06 06:34:40 -07:00
Yu Wang
4923595552 qcacld-3.0: check the state before starting auto ps timer
Since sme_ps_enable_auto_ps_timer will be called in
different scenarios, and there is error level output
if trying to start it when it's already started.
To avoid the useless error log, check the state
before starting this timer.

CRs-Fixed: 2747427
Change-Id: If119da266a991b6b5990ad3077e41c2bba11a798
2020-08-06 06:34:37 -07:00
snandini
b57592c7df Release 5.2.0.197A
Release 5.2.0.197A

Change-Id: I436994f8eac0e2e2a2f674adc83ec57b120b0679
CRs-Fixed: 774533
2020-08-06 04:24:45 -07:00
Yu Tian
636f42c23a qcacld-3.0: Allow drop pkts when pending is large
On some cases, dp_rx_thread can not handle nbufs in time,
then a large number of packets are pending in
rx_thread->nbuf_queue, which run out of system memory at
last and failed to malloc new buffers for refill buffer ring,
fw crash is encountered. To avoid this, drop RX packets when
the pending number becomes large.

Change-Id: Ie4e001dc584821cf68253aa3a15a5fd72394c736
CRs-Fixed: 2737181
2020-08-06 04:24:45 -07:00
snandini
7bd169ccc8 Release 5.2.0.197
Release 5.2.0.197

Change-Id: I5eab8e775373e8671bb5a7b97e634b88d7381836
CRs-Fixed: 774533
2020-08-05 17:35:05 -07:00
Rajeev Kumar
e12051de39 qcacld-3.0: Disable periodic time sync feature
CLD driver specific time sync feature is no longer used since
core BSP provides more accurate time sync over QMI and hence
disable CLD driver specific time sync feature to avoid periodic
wake ups.

Change-Id: Ic2790e7cdb6cf56f874fb56cda246777bc34d2e3
CRs-Fixed: 2715021
2020-08-05 17:35:05 -07:00
snandini
fa69d4b681 Release 5.2.0.196Z
Release 5.2.0.196Z

Change-Id: Ibd79404addb765ee6b2ff467cef7cfcedfb9a0c8
CRs-Fixed: 774533
2020-08-05 13:25:21 -07:00
Min Liu
f7f01747fb qcacld-3.0: Enable NS offload only when IPv6 address is added
Enable NS offload only when IPv6 address is added. No need to
call it when deleting IPv6 address and ifdown.

Change-Id: I5eb282d1deb1bc101871fa0952ac37796eb16db0
CRs-Fixed: 2747574
2020-08-05 13:25:21 -07:00
snandini
946a1ba37b Release 5.2.0.196Y
Release 5.2.0.196Y

Change-Id: Ie3e40aa2e2e65fd6526139221bf9ead878a921d2
CRs-Fixed: 774533
2020-08-05 11:18:39 -07:00
Abhinav Kumar
731ad8d610 qcacld-3.0: Print roam_trigger_reason and roam_ap_info params
Print BTM BSS termination timeout value and BTM MBO assoc
retry timeout value coming from FW through
wmi_roam_trigger_reason_tlv_param tlv.

Print Blacklist reason, Source of adding AP to BL, timestamp
which indicates the time when AP added to blacklist and
Original timeout value in milliseconds when AP added to BL
coming from FW through wmi_roam_ap_info_tlv_param.

Change-Id: Iea5b8c136f83841d679b9ad06721bb0c9349b46a
CRs-Fixed: 2744250
2020-08-05 11:18:39 -07:00
snandini
8d2fc47315 Release 5.2.0.196X
Release 5.2.0.196X

Change-Id: Ie02b626be3d05bf4ba8ef2c4c082c5a7602c3cad
CRs-Fixed: 774533
2020-08-05 09:04:01 -07:00
Ashish Kumar Dhanotiya
e20db7ae44 qcacld-3.0: Add ini to retain the NOL across reg domain change
Currently driver sets the NOL state of the channels to false
on every regulatory updated, which indicates the channel is
not in NOL. Which may lead to some issues where the channel
is actually in NOL but host treats it as non-NOL channel.

Ideally NOL list should be maintained throughout the driver
lifetime and across the regulatory changes.

To address this issue add a logic to not update the NOL state
of the channels whenever the regulatory update is received.

CRs-Fixed: 2744916
Change-Id: If96b22ab29a60a2aa752bbf01aaae46fc37362eb
2020-08-05 09:04:01 -07:00
snandini
9ea15e9db6 Release 5.2.0.196W
Release 5.2.0.196W

Change-Id: Ib6504f178d06f8fa89b4341bf23b75ec04e45d72
CRs-Fixed: 774533
2020-08-05 06:33:09 -07:00
Ashish Kumar Dhanotiya
bcdfd80f6b qcacld-3.0: Add connect-disconnect infra for connection manager
Add connect, disconnect and roam files for connection
manager infrastructure

Change-Id: Ia0f624db11d4ba52a4d7f79c19c3be8c37121f88
CRs-Fixed: 2739397
2020-08-05 06:33:09 -07:00
Lin Bai
087abae550 qcacld-3.0: Return proper error code when handling PMKSA
Currently only STA and SAP support PMKSA cache, and return
EOPNOTSUPP for other modes.

Change-Id: Ic8969ffd58815c4f3e2e5e286521421c38eb7f56
CRs-Fixed: 2747485
2020-08-05 06:33:05 -07:00