Commit Graph

18218 Commits

Author SHA1 Message Date
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
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
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
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
jianmin
1ec4f1c8f9 qcacld-3.0: Disconnect after LFR3 roaming to different channel
vdev mlme chan info isn't updated after LFR3 roaming, so
wlan_hdd_cfg80211_get_channel get old center_freq1 from vdev mlme,
center_freq1 isn't same as center_freq for 20M channel,
cfg80211_chandef_valid return false.

Change-Id: I4037f80627d207bdf9ba60cd9c3b7be82bad81e8
CRs-Fixed: 2746246
2020-08-05 06:33:01 -07:00
snandini
9217a48f6a Release 5.2.0.196V
Release 5.2.0.196V

Change-Id: Ifcb2c1e3fbe5d228e2aebbafd15a6c0676171b6d
CRs-Fixed: 774533
2020-08-05 04:24:04 -07:00
hqu
ed6c27c858 qcacld-3.0: Move rso related process to connection manager [PART 4]
Add new code to implement below functions for connection manager
roam part:

Filling below WMI cmd parameters related process:
WMI_ROAM_BTM_CONFIG_CMDID
WMI_ROAM_SCAN_STOP_CMD
WMI_ROAM_PER_CONFIG_CMDID

And RSO command:
ROAM_SCAN_OFFLOAD_RESTART

Change-Id: I18480941980a55957abd48e0329fe4ef213a1243
CRs-Fixed: 2747578
2020-08-05 04:24:03 -07:00
Saket Jha
c2c66700ac qcacld-3.0: Add PM QoS CPU affinity support on 5.x kernel
Enable PM QoS support for 5.x kernel by adopting dev PM QoS APIs to
request device structures for CPUs and then requesting QoS on those CPU
devices.

Change-Id: I9c7565b44a72145e11178fe360f413ff578142cf
CRs-Fixed: 2734025
2020-08-05 04:23:58 -07:00
snandini
86fb15e555 Release 5.2.0.196U
Release 5.2.0.196U

Change-Id: I9b534ea77dd129609879502834cc3417c2f29e74
CRs-Fixed: 774533
2020-08-05 02:16:56 -07:00
Amruta Kulkarni
5b4a05fee3 qcacld-3.0: Move the rmf enabled check to lim_is_6g_allowed_sec()
For 6ghz AP with open security,the STA join req was not going through
 due to security check added from CR2715086.
 Fix is to move the rmf enabled check inside lim_is_6g_allowed_sec().

Change-Id: I32fb0de34fdf05063dee5f28aac164b1dfcaea5e
CRs-Fixed: 2746745
2020-08-05 02:16:56 -07:00
Ashish Kumar Dhanotiya
1a9d2b09fb qcacld-3.0: Pass correct argument to mac trace
Currently mac trace msg rx function is passing module
id as a second argument to mac trace function instead of
message id.

As mac trace expects message id as an argument, pass message
id to the mac trace function as message id.

CRs-Fixed: 2719737
Change-Id: I9fa1611d6095975241a01325b798c24ea654df3e
2020-08-05 02:16:51 -07:00
Abhishek Ambure
687d129962 qcacld-3.0: Change HW mode after SAP channel change
After SAP switches the channel, policy manager needs to check if
the host needs to change HW mode. SAP state machine updates channel
change event to hdd to indicate SAP channel switch. Hence move logic
to change HW mode from start bss success event to channel change
event case in sap event callback.
Problem scenario:
1. DUT is in Single MAC mode by default.
2. SAP is up on Channel-1. So SAP is on MAC-0.
3. Host sets Policy Mgr Hw mode = DBS.
4. STA comes up on Channel-36. As host is in DBS mode, STA came up
   on MAC-1.
5. SAP does CSA to Channel-36 (STA’s channel). So SAP moves from
   MAC-1 to MAC-0.
6. Host sets Policy Mgr HW mode = Single MAC (As both VDEVs are on
   same band).
7. Now, SAP does CSA to Channel-11. As Policy Manager Hw mode is still
   Single MAC, SAP is still on MAC-0. So now STA (Channel-36) & SAP
   (Channel-1) are in MAC-0 doing MCC.
Fix:
After SAP switches channel, policy manager checks and changes HW mode
change in hdd sap event callback.

Change-Id: If7964057592d85a11dd77197c889a4ed77ed039a
CRs-Fixed: 2719810
2020-08-05 02:16:46 -07:00
snandini
7aa2874930 Release 5.2.0.196T
Release 5.2.0.196T

Change-Id: I202484afe2ea818f4076178ae648823d678dc35a
CRs-Fixed: 774533
2020-08-05 00:03:48 -07:00
snandini
0d0284820e Release 5.2.0.196S
Release 5.2.0.196S

Change-Id: I99ebe29bd0c4fae35c2d40fe5ce2601da1055230
CRs-Fixed: 774533
2020-08-04 06:02:07 -07:00
Abhishek Singh
c4a61676cb qcacld-3.0: Update RSN caps on roaming
After roaming, FW updates host by roam sync indication. Host parses
the reassoc request in roam sync indication to update RSN params of
vdev crypto.

Change-Id: I9638a77150e81ea911e95d294c58d605871630a0
CRs-Fixed: 2746470
2020-08-04 06:02:07 -07:00
snandini
433ee5f7a1 Release 5.2.0.196R
Release 5.2.0.196R

Change-Id: I9df80fa3297d0da7bfd6c367d37e5ea5e276b49d
CRs-Fixed: 774533
2020-08-04 03:54:26 -07:00
Lincoln Tran
ac71ef1d26 qcacld-3.0: Update parameter of stop_roaming_callback
The last parameter of stop_roaming_callback is currently an
unsigned int, which does not match the function that is assigned
to this pointer, which has enum wlan_cm_rso_control_requestor.
Update the function pointer to have the correct parameter.

Change-Id: I2761293e6d87e9fcf9586d198a6e60f25ca2b51e
CRs-fixed: 2745188
2020-08-04 03:54:26 -07:00
snandini
8d1e83ae39 Release 5.2.0.196Q
Release 5.2.0.196Q

Change-Id: Ibb2e47436ab7982b66058dcd80a49e50e0cca2bf
CRs-Fixed: 774533
2020-08-04 01:51:53 -07:00
snandini
cc502805f0 Release 5.2.0.196P
Release 5.2.0.196P

Change-Id: I26e272c0392054306d02c27fa4b69c7c5c3e7e3d
CRs-Fixed: 774533
2020-08-03 22:51:24 -07:00
snandini
067d48dcb0 Release 5.2.0.196O
Release 5.2.0.196O

Change-Id: If2984ceb17b193a14f75e5324e91aa67a60005e3
CRs-Fixed: 774533
2020-08-03 17:07:43 -07:00
Abhishek Singh
dcce06ac56 qcacld-3.0: Fix RSN cap sent to firmware
Send RSN caps value as in supplicant to firmware instead of
intersection value.

Change-Id: If300836a89329325d906c88dcf06835ad767aa85
CRs-Fixed: 2746357
2020-08-03 17:07:43 -07:00
snandini
e11176b5d5 Release 5.2.0.196N
Release 5.2.0.196N

Change-Id: Iaadc89a4e17fc6a364b9b85f0b6e0bab6a3467f0
CRs-Fixed: 774533
2020-08-03 13:28:26 -07:00
Alok Kumar
bdad41a539 qcacld-3.0: Register hif shutdown notifier for qca6750
For qca6750, register hif shutdown notifier to update the
firmware recovery state in case of SSR

Change-Id: Ie6d6e9c909df292c62f89612c08b583321703cfc
CRs-Fixed: 2688921
2020-08-03 13:28:26 -07:00
snandini
e3cc22f704 Release 5.2.0.196M
Release 5.2.0.196M

Change-Id: Ib8fb527c46ad2d6649664440fb4cdd89223af0f8
CRs-Fixed: 774533
2020-08-02 19:47:45 -07:00
Kiran Kumar Lokere
39f91926a7 qcacld-3.0: Set global operating class for 6GHz band
Use global operating class for 6GHz to validate the
channels.

Change-Id: I8a3d8d35a4f7d232b70f2e6c51f145c6410a0ff8
CRs-Fixed: 2714941
2020-08-02 19:47:40 -07:00
snandini
afb293bc6d Release 5.2.0.196L
Release 5.2.0.196L

Change-Id: Ib2bf4255ff0c639e32181f504304f9edf8ae80b2
CRs-Fixed: 774533
2020-08-02 02:00:55 -07:00
Karthik Kantamneni
054e0b9b4f qcacld-3.0: Check refill debt count during rx data stall
When rx data stall happens due to ring refill failure
check for refill debt count.

CRS-Fixed: 2740233
Change-Id: Ib88074f0e7ed9a64b522a64ff669af87626ce1da
2020-08-02 02:00:55 -07:00
snandini
2f211b4a78 Release 5.2.0.196K
Release 5.2.0.196K

Change-Id: Ib964e861d68cc0c4e05dec6cfcbc9a4d0e050dba
CRs-Fixed: 774533
2020-08-02 00:02:47 -07:00
Karthik Kantamneni
4a7bc29161 qcacld-3.0: Enhance logging in RX path to check refill failures
Enable logging feature which helps to check rx ring refill failure.

Currently rx ring refill count is updated same time from multiple
places without protection, so use atomic variable for refill count.

CRS-Fixed: 2740225
Change-Id: Icd88d351cb15d0f18edf0b986e4de95dbe4e6989
2020-08-02 00:02:47 -07:00
snandini
c51a0329a6 Release 5.2.0.196J
Release 5.2.0.196J

Change-Id: If8755653585731d11c35025b87e52dec6db66360
CRs-Fixed: 774533
2020-08-01 21:08:44 -07:00
Pragaspathi Thilagaraj
68d572daa3 qcacld-3.0: Add connection manager RSO init/deinit support
Add connection manager changes to send roam scan offload init
deinit. Add new enum roam_offload_init_flags to fill the roam
init/deinit flags, 4-way handshake offload, bmiss skip full scan
flags at connection manager instead of getting the ini and filling
at target if.

Change-Id: I558e868efd341b508d3df76c8d6ab90eac512432
CRs-Fixed: 2745585
2020-08-01 21:08:44 -07:00
snandini
72e1e5ed99 Release 5.2.0.196I
Release 5.2.0.196I

Change-Id: I4444b7d882d753ad9840c55cbe5cc39c73e1a2d0
CRs-Fixed: 774533
2020-08-01 13:13:20 -07:00
hqu
bedc2973c8 qcacld-3.0: Reset im stats and freq ctrl params when stop ap
When dcs happened for three times in five minutes, then do
restart(start/stop) SAP operation, when SAP is started again,
dcs may happen again quickly, if total four times dcs happened
in five minutes, dcs_disable_timer will be started due to dcs
happened frequency control policy, it will disable wlan
interference detection for 30 minutes and dcs interference
detection won't work for 30 minutes, it's unreasonable. After
SAP restart, dcs happened times should be calculated from zero.

Fix is to reset im stats and freq ctrl params when stop ap.

Change-Id: I0322a268a031b677a4e263cd6c5c6c0627315719
CRs-Fixed: 2738099
2020-08-01 13:13:20 -07:00
snandini
d77d5c7958 Release 5.2.0.196H
Release 5.2.0.196H

Change-Id: Ie89c3c1c4783ff766aaf6ec4a4764091379c496b
CRs-Fixed: 774533
2020-08-01 11:02:13 -07:00
hqu
bc1e6476b7 qcacld-3.0: Move rso related process to connection manager [PART 3]
Add new code to implement below functions for connection manager
roam part:

Propagate 'Change-Id: I49d64671f74b86c516d286c4b2aad69eda744b52'
Filling below WMI cmd parameters related process:
WMI_ROAM_AP_PROFILE
WMI_ROAM_FILTER_CMDID

Change-Id: I4870c69a0e0ca1e8cad734a591f09e402b7a32fa
CRs-Fixed: 2745468
2020-08-01 11:02:13 -07:00
Bapiraju Alla
5d92f4ed4d qcacld-3.0: Update channel info from object manager
Current implementation uses wlan_reg_set_channel_params_for_freq API to
get operating channel information. But this API provides maximum possible
bw for an existing channel, which is not connected.From get_channel
callback, kernel expects information of the connected channel. This is
causing kernel to trigger disconnect STA after 1 minute.

To resolve this, update channel information from the object manger
which will contain connected channel information.

Change-Id: Ibd718003b4defc0e607b5b06abf86479913db538
CRs-Fixed: 2719246
2020-08-01 11:02:07 -07:00
Bapiraju Alla
f9b7e0875c qcacld-3.0: Update log to console INI to support per log level
Currently, the INI param wlanLoggingToConsole is used to enable
or disable WLAN logging to console. It will enable/disable console
logs for all log levels i.e. FATAL/ERROR/WARN/INFO. There is no
provision to enable/disable console logs for specific log level.

To address this, change wlanLoggingToConsole INI as bitmap with each
bit representing a log level. Enable/disable console logs based on
this bitmap.

Change-Id: I139ed15e37eb27fcfedcae70d78344e9f978f837
CRs-Fixed: 2734699
2020-08-01 11:02:03 -07:00
snandini
cb8cd2be3f Release 5.2.0.196G
Release 5.2.0.196G

Change-Id: I2618648b61e5e75e1890d62d76817f2d7e1a9a83
CRs-Fixed: 774533
2020-08-01 09:00:53 -07:00
snandini
59442784a8 Release 5.2.0.196F
Release 5.2.0.196F

Change-Id: Id41ee0ede537212a56fe13e14728dc1ab81f1d0c
CRs-Fixed: 774533
2020-07-31 16:26:26 -07:00
gaurank kathpalia
324fc0b0c3 qcacld-3.0: Enhance BLM infra
Enhance BLM infra to include source,
reason for blacklist, original timeout,
received time for better debug.

Change-Id: Ia705a967a08412824063275f5073c338dabde539
CRs-Fixed: 2744402
2020-07-31 16:26:25 -07:00
snandini
6aacaf452d Release 5.2.0.196E
Release 5.2.0.196E

Change-Id: Id766d8174745d993b62c4d3bd8e893585d735e5e
CRs-Fixed: 774533
2020-07-31 14:13:00 -07:00
Jia Ding
bfbec06c8a qcacld-3.0: Properly set htCapable and vhtCapable
In an IOT scenario, client is VHT capable and is carrying
VHT IE in assoc-req frame while our SAP is configured as
HT only.

Key points here are the phymode and vht_flag populated in
WMI_PEER_ASSOC_CMDID.

phymode is set with SAP's own capability taken into considertion
while vht_flag is not. This leads to FW TX data using VHT data
rates.

Fix is to properly set htCapable and vhtCapable with SAP's own
capability taken into considertion.

Change-Id: I7493e90aa744665569093d3a67714c1224d010a0
CRs-Fixed: 2740102
2020-07-31 14:13:00 -07:00
wadesong
0237690ac4 qcacld-3.0: Enable HE phy cap indication
Function hdd_update_wiphy_he_cap() was added to populate 11ax
related HE phy capabilities into the wiphy structure, but it
was wrongly enclosed by the 6GHz related conditional macros.

Enable the above function for compilation when 11ax is
supported or when kernel 4.19 or later is used.

NOTE: The kernel side support for HE phy capability was
      introduced by:

      commit <c4cbaf7973a794839af080f13748335976cf3f3f>
      cfg80211: Add support for HE

      in kernel 4.19, and should be back-ported if any
      older kernel intends to support 11ax.

Change-Id: I6fe303ce381528be4246bf4761f6483a2f82995f
CRs-Fixed: 2731627
2020-07-31 14:12:56 -07:00
bings
1939a20df7 qcacld-3.0: Split wlan.ko into wlan_resident.ko and wlan.ko
Module is saved in specified memory location when loading. In some
third platform, after rmmod/insmod wlan.ko for a while, wlan.ko may
fail to load due to memory fragmentation.

Split wlan.ko into wlan_resident.ko and wlan.ko. Keep wlan_resident.ko
in kernel all the while and trigger insmod/rmmod only on wlan.ko.

wlan_resident.ko contains all the module realization while wlan.ko
only contains module init/exit.

Change-Id: Iaeb6d810293cc000de8d6ec1df5cd985cef0c317
CRs-Fixed: 2727941
2020-07-31 14:12:51 -07:00
snandini
1152746929 Release 5.2.0.196D
Release 5.2.0.196D

Change-Id: I8fe2fcb56d89763e5fdd3499b2f2b8e885c2d594
CRs-Fixed: 774533
2020-07-31 12:02:25 -07:00
Abhinav Kumar
631f7d15a1 qcacld-3.0: Print info related to WTC BTM roaming
Print info related to WTC BTM roaming coming via
wmi_roam_trigger_reason_tlv_param.

Print timestamp, which indicates the time when btm response is sent
to AP, coming via wmi_roam_btm_response_info_tlv_param to HOST.

Change-Id: I2c408527739e1e2831015dd7b959ab17299abf6b
CRs-Fixed: 2740597
2020-07-31 12:02:25 -07:00
snandini
5b0316a000 Release 5.2.0.196C
Release 5.2.0.196C

Change-Id: I58d5bc426a1b932aadd9e3e596d4b40334268391
CRs-Fixed: 774533
2020-07-31 09:53:45 -07:00
Rakesh Pillai
d80422e788 qcacld-3.0: Featurize dynamic rx agggregation feature
Dynamic rx aggregation feature depends on the context
id which is obtained from the packet context block.
This context id is invalid when this feature is not
enabled, and hence can lead to out of array access/write
leading to memory corruption.

Fix this issue by not using the context id when the dynamic
rx aggregation feature is not enabled.

Change-Id: Ie551217409b0f5aa2f704f9c617949e0d42a74d0
CRs-Fixed: 2742653
2020-07-31 09:53:45 -07:00
snandini
5beb694c69 Release 5.2.0.196B
Release 5.2.0.196B

Change-Id: I5ff2ebb57091c4adbd69ceb6abd0d2e71aec2b7c
CRs-Fixed: 774533
2020-07-31 07:43:28 -07:00
nakul kachhwaha
dcd3e2a624 qcacld-3.0: Add weightage to valid non-pcl channels
In scenarios where p2p is going to be the first connection,
while performing group negotiation, pass up the allowed non-pcl
channels with valid weight so that supplicant can include these
channels as well during negotiation.
Passing interface mode to policy_mgr_get_valid_chan_weights and
populating the channel list based on policy_mgr_is_concurrency_allowed
api for the given mode and assign WEIGHT_OF_NON_PCL_CHANNELS for all
allowed channels.

Change-Id: I8ff08163e6490642f9c2ebd9ca08f1275a2bb1b8
CRs-Fixed: 2734756
2020-07-31 07:43:28 -07:00
snandini
9a3c6c6682 Release 5.2.0.196A
Release 5.2.0.196A

Change-Id: I0f56c163bde5a825f9c344e4ab56cdfcc46ab278
CRs-Fixed: 774533
2020-07-31 03:44:45 -07:00
Arun Kumar Khandavalli
c4ead2606e qcacld-3.0: check for firmware state during the init sequence
During the init sequnce host and firmware exchange the capability
messages, if there is any timeout driver currently induces the fatal
to debug the issues.

If the reason for the timeout is beacaue is because of firmware is
already recovering gracefully return resulting in probe failure.

Change-Id: I487aeae23db37a0ad2d991bae113b221e19a439a
CRs-Fixed: 2742638
2020-07-30 22:15:49 +05:30
snandini
94e093ac4d Release 5.2.0.196
Release 5.2.0.196

Change-Id: Ieb9896324fdeb4502963010a1826a4b4d4763821
CRs-Fixed: 774533
2020-07-30 02:05:43 -07:00
Will Huang
2b266c257a qcacld-3.0: Add roam scan stop reason check to support LFR2.0 BTM
If it is LFR2.0 roaming and BTM trigger, original procedure is always
stopping roaming scan with reason REASON_OS_REQUESTED_ROAMING_NOW,
After roaming stop configured, it will check the stop reason and post
eWNI_SME_ROAM_SCAN_OFFLOAD_RSP to invoke host handover to new AP.

Currently the roaming scan logic is changed, if roaming scan not in
enabled state, it will not invoke roaming scan stop, so host handover
cannot invoke when BTM.
And even roaming scan was enabled, the stop reason was override to
REASON_SME_ISSUED in csr_post_rso_stop(), also cannot invoke handover.

Fix it by check the stop reason against REASON_OS_REQUESTED_ROAMING_NOW,
which indicate it is LFR2.0 reassociation invoked by supplicant.

Change-Id: I39a84d06b9c696179da1b854985a23b874a399c5
CRs-Fixed: 2737888
2020-07-30 02:05:43 -07:00
snandini
a4e3dccdef Release 5.2.0.195Z
Release 5.2.0.195Z

Change-Id: Ia6486ff5bd927a045ff0eacacd3a7748b12dfb27
CRs-Fixed: 774533
2020-07-29 15:42:52 -07:00
Kiran Kumar Lokere
61be3ced4f qcacld-3.0: Fix the user power save config settings
Set the user power save configuration setting in NL power save
command handler.

Change-Id: I8f4d1955071af08a5c0511a4c01c46d79e70e1b0
CRs-Fixed: 2743237
2020-07-29 15:42:52 -07:00
snandini
97dfd6654d Release 5.2.0.195Y
Release 5.2.0.195Y

Change-Id: If327b0967c53ea75a3f3b56e8f9128520c81e5b2
CRs-Fixed: 774533
2020-07-29 13:41:14 -07:00
Alan Chen
20dc484032 qcacld-3.0: Add changes to trigger PCIe gen speed change
Add changes to trigger PCIe gen speed change during wifi on.

Change-Id: I0de3b8e73daafafc832968400fd48ee3f9c3b51d
CRs-Fixed: 2742863
2020-07-29 13:41:14 -07:00
snandini
a8def84378 Release 5.2.0.195X
Release 5.2.0.195X

Change-Id: I9d74596a145125efc75406d5925ddba50b14b2b5
CRs-Fixed: 774533
2020-07-29 00:23:16 -07:00
snandini
14641e691c Release 5.2.0.195W
Release 5.2.0.195W

Change-Id: Idc604a33083f26ba50d3e0b1bb998503c01a7abf
CRs-Fixed: 774533
2020-07-28 22:20:07 -07:00
Liangwei Dong
198eb3bdea qcacld-3.0: Fix AP state mismatch between hostapd and driver
AGO/AP is started and beaconing, but the hostapd_cli status cmd still
show "dfs". This will happen when the STA connected on DFS
channel and AGO/AP is starting on same DFS channel.
By design the AGO/AP CAC is skipped due to STA+SAP DFS concurrency.
If we skip CAC timer, we will need to indicate the CAC event
even though driver doesn't perform CAC, otherwise hostapd will
stuck in "DFS" state.

Change-Id: I7961d0b976fd84fc1f29449d98eb150d1463a92f
CRs-Fixed: 2733624
2020-07-28 22:20:06 -07:00
snandini
90bf2af3f6 Release 5.2.0.195V
Release 5.2.0.195V

Change-Id: Ic0cb871235b0dc1b9e6f8fdbaf86f8ee5d952e35
CRs-Fixed: 774533
2020-07-28 15:41:09 -07:00
Kiran Kumar Lokere
222d174cdd qcacld-3.0: Add support to inject disassoc frames
Add support to inject disassoc frames with user configured pmf
options.

Change-Id: I40df805f8d6ef62dab48477c26cb9b0fc6b17929
CRs-Fixed: 2665042
2020-07-28 15:41:05 -07:00
Alan Chen
1b4b46f32f qcacld-3.0: Add a driver module parameter for PCIe gen speed
Add a driver module parameter to configure PCIe gen speed.

Change-Id: Ieab47ec3c2450f503c3c5eda6f5dee4ee70b33e4
CRs-Fixed: 2732188
2020-07-28 15:41:01 -07:00
snandini
675c584a4f Release 5.2.0.195U
Release 5.2.0.195U

Change-Id: I52eb4195e8b8244f16745e7667f78c0de4ca870c
CRs-Fixed: 774533
2020-07-28 13:41:31 -07:00
Subrat Dash
d17ad81d80 qcacld-3.0: Featurize qtimer sync based tsf capture
It will enable periodic capture of tsf and qtime pair.
The qtime will be used as reference for determining
instantaneous tsf.

The 'cat tsf’ command to fetch tsf will print the tsf
at that instant as well along with qtime and host time.

CRs-Fixed: 2736030
Change-Id: I11eb70d4ae710ef2bf50ebee708801fa67d0396c
2020-07-28 13:41:31 -07:00
snandini
8c3223abff Release 5.2.0.195T
Release 5.2.0.195T

Change-Id: I8cec1236f8932fde3884a81c0fcdad8e7b499caa
CRs-Fixed: 774533
2020-07-28 06:29:58 -07:00
sheenam monga
b13ca20247 qcacld-3.0: Add support for missing akm suites
Issue: Currently host supports WLAN_AKM_SUITE_FT_8021X_SHA384,
RSN_AUTH_KEY_MGMT_CCKM and RSN_AUTH_KEY_MGMT_OSEN AKM
in sta mode but doesn't advertise these akm suites which
may cause issue for FT_8021X_SHA384, RSN_AUTH_KEY_MGMT_CCKM
and RSN_AUTH_KEY_MGMT_OSEN supported connection.

Fix: update wiphy->iftype_akm_suites and advertise missing akm
suites.

Change-Id: I43762c38e15746f50f897a6026b1b96fd571ec4d
CRs-Fixed: 2713183
2020-07-28 06:29:58 -07:00
snandini
5545c89c98 Release 5.2.0.195S
Release 5.2.0.195S

Change-Id: I1f73fd586fc3f672c87c969902cbcd98e7f03315
CRs-Fixed: 774533
2020-07-28 00:02:19 -07:00
Kiran Kumar Lokere
14807ac807 qcacld-3.0: Clear roam invoke progress in connect/disconnect
Clear roam invoke in progress flag in connect start and disconnect
events.

Change-Id: I49d64671f74b86c516d286c4b2aad69eda744b52
CRs-Fixed: 2715093
2020-07-28 00:02:19 -07:00
snandini
c2a5f490f9 Release 5.2.0.195R
Release 5.2.0.195R

Change-Id: I558caed1cbeff987943592b036cd9b0e91795a0e
CRs-Fixed: 774533
2020-07-27 22:00:27 -07:00
gaurank kathpalia
b6dc56c8cc qcacld-3.0: Limit the BTM timeout duration for next connection
- Limit the timeout value of the BLM entry if it has big comeback
 value and allow connection to that BSSID.
- Fix the BLM entry time stamp boundary checks.

Change-Id: I07bf7b1fce1c1e8d349c4fc0a9b0fed07f237197
CRs-Fixed: 2741689
2020-07-27 22:00:27 -07:00
snandini
70cd9f5cde Release 5.2.0.195Q
Release 5.2.0.195Q

Change-Id: I541dc75582f5e6bc81e83f93dc5f571da369a265
CRs-Fixed: 774533
2020-07-27 20:00:43 -07:00
Abhinav Kumar
352a22a199 qcacld-3.0: Fix use of Uninitialized Variable
Possible use of uninitialized Variable "report" in
rrm_process_beacon_req.

Fix is to initialize "report" pointer to NULL,
before use.

Change-Id: I1dcbec60b0028d52046ce28836df83a04e2ed830
CRs-Fixed: 2734078
2020-07-27 20:00:43 -07:00
snandini
3685bc1280 Release 5.2.0.195P
Release 5.2.0.195P

Change-Id: I06f4984abed66a54cff40f3be1c426fd4ef8d435
CRs-Fixed: 774533
2020-07-27 18:02:19 -07:00
Sachin Ahuja
e03b460045 qcacld-3.0: Flush the recovery work as a part of idle shutdown
During idle shutdown(T1 Thread), Driver sends the PDEV
suspend command to FW. If ACK is not received, driver initiates
the work for self recovery. As a part of self recovery(T2 thread)
driver allocates  the memory and sends the force fw hang cmd and
wait for the event.
T1 thread continues and stop all the modules and check for mem leaks.
Since t2 thread is not completed and free the memory, the crash
happens as a part of mem leak check.

Fix this race condition by cancelling and flushing the recovery work
in cds close.

CRs-Fixed: 2730021
Change-Id: Ieffff621e0838b341531c5b7feda1277ee4f70fd
2020-07-27 18:02:19 -07:00
snandini
268932238e Release 5.2.0.195O
Release 5.2.0.195O

Change-Id: I2a4f84ef32e828d3d7889b31bf22ad8e8f6f8a19
CRs-Fixed: 774533
2020-07-27 14:01:30 -07:00
Pragaspathi Thilagaraj
eb46090d19 qcacld-3.0: Print current RSSI of AP after roam scan is complete
In wma_get_trigger_detail_str() driver prints the roam trigger
detail for Low rssi and Periodic scan triggers, the RSSI value of
the current AP is the value before roam scan is triggered. But
the firmware considers the rssi of the current AP after roam scan
is complete to calculate the next RSSI threshold. So there could
be mismatch in the current rssi value and next rssi threshold
when roam_info->rssi_trig_data.threshold is used to print the
current AP rssi.

Use roam_info->current_rssi to print the current connected AP
rssi in the roam trigger logging.

Change-Id: Ib154bb3cbdfe13dbcdd8c8830cdafb6daefa34b5
CRs-Fixed: 2739346
2020-07-27 14:01:29 -07:00
snandini
3aa1c07288 Release 5.2.0.195N
Release 5.2.0.195N

Change-Id: Ia20943eda4e6bdc5641ce5834410cd57fd6db24f
CRs-Fixed: 774533
2020-07-27 12:03:11 -07:00