Commit Graph

22956 Commits

Author SHA1 Message Date
Madan Koyyalamudi
66f428db2c Release 2.0.8.27X
Release 2.0.8.27X

Change-Id: Ie9f629d45da41cee534bfb007e8d387c29cc8f21
CRs-Fixed: 774533
2022-02-28 22:32:34 -08:00
Abhinav Kumar
5dc5ea538c qcacld-3.0: STA falis to notify Disassoc Imminent to UI
In case of connection with Hotspot 2.0 AP, Disassocition
Imminent frame needs to be forwarded to userspace, so that
user can take necessary action, like issue pop-up
notification etc.

Currently, in case of connection with Hotspot 2.0 AP,
FW/HOST does not forward disassocition imminent frame
to userspace. This causes user-space fail to issue
necessary notification(s).

Disable BTM offload in firmware if connect req has
HS2.0 IE, so that FW/HOST forward Disassocition Imminent
frame to to userspace.

Change-Id: Ica57fb7399ef21069d599a1046a7da6fbd42bb43
CRs-Fixed: 2733036
2022-02-28 22:32:34 -08:00
Madan Koyyalamudi
ca433a9896 Release 2.0.8.27W
Release 2.0.8.27W

Change-Id: I480d1cf5d58a90777970f08a1183f88115dae8d9
CRs-Fixed: 774533
2022-02-25 09:08:51 -08:00
Balaji Pothunoori
44e489aad7 qcacld-3.0: select min bw during csa if channel bonding disabled
During CSA max bw is selected for SAP in STA + SAP concurrency
for non-dfs channel and SAP is tear down after 60 sec of operation
due to STA is in 20Mhz and SAP is in 40Mhz with
IEEE80211_HT_CAP_SUP_WIDTH_20_40 flag disabled.

This change is to select 20Mhz BW during CSA if channel bonding is
disabled.

Change-Id: If4ed3d9a080ed976a0f4be6704848ae4494c7bbc
CRs-Fixed: 3126074
2022-02-25 11:40:21 +05:30
Madan Koyyalamudi
9e549fae37 Release 2.0.8.27V
Release 2.0.8.27V

Change-Id: I602c952ce3a6397df3c0889fc6e26eaff78608e9
CRs-Fixed: 774533
2022-02-24 11:39:40 -08:00
Sheenam Monga
4915b5f7f5 qcacld-3.0: Add TPC Report in probe response
Currently, TPCReport IE is populated for beacon2 but
is not populated for probe response. As per Table 9-34
TPC report should be present in probe response.

Fix is to populate TPC Report IE for probe response from
beacon2.

Change-Id: I1b384ef71ca99e0144374885cafcd864375a3b58
CRs-Fixed: 3128799
2022-02-24 11:39:40 -08:00
Madan Koyyalamudi
269d802287 Release 2.0.8.27U
Release 2.0.8.27U

Change-Id: I3a55806fdb6d9e4ad75092eddaa120bde0037da5
CRs-Fixed: 774533
2022-02-22 23:25:27 -08:00
Deeksha Gupta
d19387e676 qcacld-3.0: Remove roam_invoke_timer stop in case of ROAM_ABORT
Currently, for gEnableNUDTracking=3 ini, if NUD failure
happens, host sends the ROAM_INVOKE_CMD to fw and start
the roam_invoke timer and after roam_timer timeout or
ROAM_INVOKE_FAIL host sends disconnect. Suppose in response,
fw sends ROAM_START and ROAM_ABORT before sending
ROAM_INVOKE_FAIL, then host stops roam_invoke timer
in ROAM_ABORT case. Due to this, in ROAM_INVOKE_FAIL host
doesn't find timer and returns failure without sending
disconnect.

Fix is, remove the roam_invoke timer stop in case of
ROAM_ABORT and add it in north and south bound disconnect.

Change-Id: I6b7790f1e59d137c1476a8ad80fc4f113e86e580
CRs-Fixed: 3132545
2022-02-22 23:25:27 -08:00
Karthik Kantamneni
677b8b1d90 qcacld-3.0: Fix reo id mismatch in fisa path
Currently when reo id mismatch check is done there is
possiblity of flow getting evicted same time this may
lead to false alarm. To avoid this race condition reo id
mismatch check is done under lock protection.

Change-Id: I7d3ac25ec8c806677697242a0fd3fa338c0a6ad2
CRs-Fixed: 3129761
2022-02-22 15:05:47 +05:30
Madan Koyyalamudi
5360717dad Release 2.0.8.27T
Release 2.0.8.27T

Change-Id: I88468b8a178cdfead5f4a0a44f515dd83b4fd150
CRs-Fixed: 774533
2022-02-21 04:06:20 -08:00
Liangwei Dong
c6b5b479d2 qcacld-3.0: Fix out of bounds access for he_ppet
Add numss_m1 and ru_bit_mask check before access the data in
ppet16_ppet8_ru3_ru0.
numss_m1 + 1 should not exceed WMI_HOST_MAX_NUM_SS.
ru count should not exceed 4.

Change-Id: Ide6b562dacb0592fb5c2101c0ce016570cb1dac3
CRs-Fixed: 3080599
2022-02-21 04:06:20 -08:00
Madan Koyyalamudi
a210b0fbdd Release 2.0.8.27S
Release 2.0.8.27S

Change-Id: I873e7d2814cb5bed9cdda5cb2c79914b516273ff
CRs-Fixed: 774533
2022-02-16 13:52:05 -08:00
Krupali Dhanvijay
49ccee8788 qcacld-3.0: Revert double free change
The mainline change of change-id Idc70e8437f89cb1cf4f6d35f924085409994714a
fixes a double free issue introduced as part of
wma->target_if migration of WMI_ROAM_PMKID_REQUEST_EVENTID event handling.
But this is not applicable for legacy branches as the same migration
changes are not done.

So Reverting the double free
change in wma_roam_pmkid_request_event_handler.

Change-Id: I88d31a295398eb2ab700857260285450a8f245bd
CRs-Fixed: 3130848
2022-02-16 10:12:34 +05:30
Madan Koyyalamudi
dfc2e22b87 Release 2.0.8.27R
Release 2.0.8.27R

Change-Id: I49e5be2545e29d7a491888407a6d66ac8c3bc77c
CRs-Fixed: 774533
2022-02-14 10:55:30 -08:00
Krupali Dhanvijay
aadc62a0e6 qcacld-3.0: Fix double free in wma_roam_pmkid_request_event_handler
Currently memory allocated for structure roam_pmkid_req_event
is freed in two places causing usage after free.
Fix is to free memory only once in
wma_roam_pmkid_request_event_handler.

Change-Id: Idc70e8437f89cb1cf4f6d35f924085409994714a
CRs-Fixed: 3064667
2022-02-14 17:00:56 +05:30
Madan Koyyalamudi
d6891e7074 Release 2.0.8.27Q
Release 2.0.8.27Q

Change-Id: I3181391373a2f7538a98578fc4ced6cbfa56d91f
CRs-Fixed: 774533
2022-02-11 01:30:50 -08:00
Krupali Dhanvijay
65e981514d qcacld-3.0: Add support to configure 6G roam scan dwell time
Add ini support to configure 6GHz active and passive
scan dwell time and send this to firmware
to be used for LFR scans via WMI_ROAM_SCAN_MODE.

Based on these values, firmware will use host sent values
else use hardcoded values.

Currently firmware uses hardcoded values to configure 6Ghz
roam scan dwell time. With this change user can configure
it using INI.

Change-Id: I90e79ad59eef7f73faa0b9dfd2d38b65aca12285
CRs-Fixed: 3116861
2022-02-10 20:47:25 -08:00
Madan Koyyalamudi
009425f53d Release 2.0.8.27P
Release 2.0.8.27P

Change-Id: I9d22528117b9af217d47333a4186b398459233a4
CRs-Fixed: 774533
2022-02-10 10:20:31 -08:00
Will Huang
45440c7b62 qcacld-3.0: Update num_transmit_power_env before packing probe response
num_transmit_power_env of tDot11fProbeResponse should also update like
tDot11fBeacon2, otherwise default value is 0, and transmit power
envelope IE(195) will not pack into probe response template.

Fix it by updating num_transmit_power_env of tDot11fProbeResponse to
same as tDot11fBeacon2.

Change-Id: I865ba9d9ad96068c52d3d6434b113cb7662e95c6
CRs-Fixed: 2933031
2022-02-10 10:20:31 -08:00
Madan Koyyalamudi
8127cfa464 Release 2.0.8.27O
Release 2.0.8.27O

Change-Id: I7772a74bda22cbac033808c2b819f2d22355cee7
CRs-Fixed: 774533
2022-02-10 03:56:15 -08:00
Surabhi Vishnoi
447a92c1ed qcacld-3.0: Optimize the roam latency time
This change optimizes the time to enable the TX queues during
connect/roaming by deferring the oem response to userspace and
roam_auth indication to wpa_supplicant.
Also, ignore tx power stats if the roaming is in progress.

Change-Id: I1724022de3b87482e4e4a35efac358de9f6a367d
CRs-Fixed: 3119070
2022-02-10 03:56:15 -08:00
Madan Koyyalamudi
3280fd22a4 Release 2.0.8.27N
Release 2.0.8.27N

Change-Id: I1aa71e719e22ecf82910bf4479ebe51d10e2383c
CRs-Fixed: 774533
2022-02-10 01:26:49 -08:00
Jianmin Zhu
81cec095ae qcacld-3.0: Don't send probe req when receive beacon miss
Before host received beacon miss, firmware has checked link by sending
QoS NULL data, don't need host send probe request to check now.
Some IoT AP can send probe response after receive probe request, but can't
send beacon sometimes, need disconnect in time too, or firmware will
assert.

Change-Id: I74105769cfbd9f80cdde21bfa7b8c6d75efc4a3a
CRs-Fixed: 3102930
2022-02-09 11:40:18 +08:00
Madan Koyyalamudi
539057ac74 Release 2.0.8.27M
Release 2.0.8.27M

Change-Id: I7eefd27216ae2108ba0dd376e461cfe7b62051d5
CRs-Fixed: 774533
2022-02-03 09:01:47 -08:00
Surabhi Vishnoi
20c17ab106 qcacld-3.0: Reduce the log level to optimise the roam time
TWT initialisation will fail for each non 11ax connection
so an error log is not needed if peer object for TWT is not found.

Also, RIC data is not mandatory in FT session, so if its not
present, log a debug level print instead of error level.

Change-Id: I7fec9f88aa68b2ae947e34a1aede311e9fed2d05
CRs-Fixed: 3117535
2022-02-03 09:01:47 -08:00
Madan Koyyalamudi
3d66633cda Release 2.0.8.27L
Release 2.0.8.27L

Change-Id: Idcea46403c81e58c0d43c2277d9a4b5f2ae01118
CRs-Fixed: 774533
2022-02-03 01:08:30 -08:00
Krupali Dhanvijay
9f325a1371 qcacld-3.0: Update Copyright for NAN discovery
Update copyrights for Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: I1ec3c8d38c93de1ff69b99f08ee7ebdfdabf04da
CRs-Fixed: 3119751
2022-01-28 18:12:50 +05:30
Madan Koyyalamudi
ff7e2646ec Release 2.0.8.27K
Release 2.0.8.27K

Change-Id: I14810c07a86b3ca7ea1a4ce99325e201dcd7b0d7
CRs-Fixed: 774533
2022-01-28 03:07:21 -08:00
Jingxiang Ge
e06eb51744 qcacld-3.0: Enable ce debug history always
Always enable ce debug history feature, but there
is difference for perf&debug build.
On perf build, only ce2/ce3 histroy is enabled.
And for ce debug history memory init/deinit happens
when driver is loading&unloading, even it use when start
module, this will help to check some cases when
stop_module happens.

Change-Id: I4b825f91bc9ede8372291f9d94cb7fae23942a49
CRs-Fixed: 3058735
2022-01-28 13:29:51 +08:00
Madan Koyyalamudi
af23acd473 Release 2.0.8.27J
Release 2.0.8.27J

Change-Id: I31b6b9785bced50656d0af322d8743427391836f
CRs-Fixed: 774533
2022-01-26 05:26:31 -08:00
Jianmin Zhu
6d2a27a181 cld-3.0: Consider connected AP for roaming candidate
If reassoc MAC from user space is broadcast MAC as:
"wpa_cli DRIVER FASTREASSOC ff:ff:ff:ff:ff:ff 0",
user space invoked roaming candidate selection will be based on firmware
score algorithm, current connection will be kept if current AP has highest
score. It is requirement from customer which can avoid ping-pong
roaming.

Change-Id: I8de3e2a26a6f346c900157aa823205f849d233f7
CRs-Fixed: 3106276
2022-01-26 10:00:08 +08:00
Madan Koyyalamudi
6963589aba Release 2.0.8.27I
Release 2.0.8.27I

Change-Id: Iad190f47abb09f74c01016a68bd7030de186ce21
CRs-Fixed: 774533
2022-01-25 04:40:39 -08:00
Krupali Dhanvijay
e21c8c0aec qcacld-3.0: Do not reserve NAN discovery vdev in case of FTM mode
If firmware supports NAN discovery vdev then one vdev is
reserved for NAN. Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: Ie16df46bbb09dd89889639d40dc1a65e3786ce73
CRs-Fixed: 2830136
2022-01-25 04:40:39 -08:00
Madan Koyyalamudi
8760581864 Release 2.0.8.27H
Release 2.0.8.27H

Change-Id: If19bc1fa699ea19ae8bc7d07d333aff7c3280576
CRs-Fixed: 774533
2022-01-24 23:39:32 -08:00
Surabhi Vishnoi
58e8b7af4a qcacld-3.0: Add kbuild cpp flag for low power mode feature
Add ccp flag support for CONFIG_ENABLE_LOW_POWER_MODE in Kbuild.
Currently, this config is enabled for wearables only.

Change-Id: I2fb08930290f5c23641e1d76796ab829b31aae04
CRs-Fixed: 3110291
2022-01-24 23:39:32 -08:00
Madan Koyyalamudi
ec4cecc389 Release 2.0.8.27G
Release 2.0.8.27G

Change-Id: I470e633796e2ac76265579a7101dc4e9df299792
CRs-Fixed: 774533
2022-01-19 01:52:21 -08:00
Surabhi Vishnoi
10d47061ef qcacld-3.0: Allow suspend in Deep Sleep/Hibernate in wearables
Deep Sleep or Hibernate are system level mode power
modes wearable targets in which wlan firmware is shutdown
gracefully and linux kernel and platform are suspended.

Currently, wlan suspend and pm_suspend is not allowed if
firmware is down, with this change suspend is allowed if firmware
is down due to Deep Sleep or Hibernate low power state.

Change-Id: Ide7b8957d1cfe455d57769c30f0bb3d6e564cddc
CRs-Fixed: 3108081
2022-01-19 01:52:21 -08:00
Madan Koyyalamudi
119538d119 Release 2.0.8.27F
Release 2.0.8.27F

Change-Id: I3555999258ad7e9a5c51226dc1d61f2737b34d8c
CRs-Fixed: 774533
2022-01-18 23:21:32 -08:00
Liangwei Dong
d1dfcc63f1 qcacld-3.0: Fix slab-out-of-bounds in radio stats
When fixed_param->num_radio is 0 from FW, host allocates
struct tSirLLStatsResults with 0 count of struct wifi_radio_stats
to wma_handle->link_stats_results.
When the second radio stats comes, the driver will
not allocate wma_handle->link_stats_results because
wma_handle->link_stats_results is not NULL.
Later driver will access the wma_handle->link_stats_results based
on radio_stats->radio_id. This will access invalid memory
because the original wma_handle->link_stats_results memory
didn't include the wifi_radio_stats.
Fix by free the link_stats_results if
wma_handle->link_stats_results->num_radio is 0, then driver
will allocate wma_handle->link_stats_results memory including
the struct wifi_radio_stats based on num_radio.

Change-Id: Ie1d6bbe8c668d2fb475fddb60907fd13a7f8de66
CRs-Fixed: 3082779
2022-01-18 23:21:31 -08:00
Madan Koyyalamudi
04958951cb Release 2.0.8.27E
Release 2.0.8.27E

Change-Id: Ib36997878c36940cebd254867735576c9a5db19a
CRs-Fixed: 774533
2022-01-18 17:29:44 -08:00
Ashish
d7e57a9320 qcacld-3.0: Add bug_on if 5 consecutive ll_stats requests fails
If ll_stats command does not receive response from fw continuously
for some time then there is no way to determine the actual reason
of this comamand failure if the logs are overwritten.

With this change, add bug_on and trigger recovery after 5
continuous command failures so that the current logs are captured
to analyse the issue.

Change-Id: I8f2f08d598c25ccea5ecd4b02c86e1069daeb6e0
CRs-Fixed: 3106087
2022-01-18 17:29:44 -08:00
Madan Koyyalamudi
077158d209 Release 2.0.8.27D
Release 2.0.8.27D

Change-Id: I8be19582e8f74e588353c66465332bd6ea99c001
CRs-Fixed: 774533
2022-01-18 13:15:43 -08:00
Surya Prakash Sivaraj
c11833158b qcacld-3.0: Handle reset case for P2P_SET_NOA
For resetting NOA, "P2P_SET_NOA 0 0 0" command will be
used. Since duration and interval are same, currently the
set will be rejected.

Handle the count 0 case and bypass the existing validation
for periodic NOA.

Change-Id: I5294d7bcdd70d9280e50167c961d2e9c525fca4c
CRs-Fixed: 3054252
2022-01-18 13:15:42 -08:00
Madan Koyyalamudi
c9109277f1 Release 2.0.8.27C
Release 2.0.8.27C

Change-Id: I2065a201c40cbc8aee4ef5772b4d2901bdc99828
CRs-Fixed: 774533
2022-01-18 10:50:44 -08:00
Amit Mehta
6819fc8b59 qcacld-3.0: Remove redundant code
As part of code change we are removing the csum_enabled flag.
In that case, the call to set vdev params becomes redundant
since we are calling it to update the csum_enabled flag value,
So remove redundant code as part of the cleanup.

Change-Id: I41e5ffba0a375bc20146ece9dabca391016d5b67
CRs-Fixed: 3071428
2022-01-18 10:50:43 -08:00
Madan Koyyalamudi
967ec1ce63 Release 2.0.8.27B
Release 2.0.8.27B

Change-Id: I6c7349abaaf39d3e77c19792c0c50fa81ce85054
CRs-Fixed: 774533
2022-01-18 03:48:57 -08:00
Amit Mehta
05734c5c11 qcacld-3.0: Enable network queue directly in case of roaming
Currently in the case of roaming between latency-critical connection
and non-latency critical connection we are scheduling work to
update features and after feature update we are enabling network queues
which is introducing a delay in enabling queues due to work schedule.

To Fix the issue enable network queue in the current context and schedule
work to update features.

Change-Id: Idba5b81a58aaf2bd47d80da1d17ad0acf9939071
CRs-Fixed: 3070688
2022-01-18 03:48:56 -08:00
Amit Mehta
670edc32cf qcacld-3.0: Check if netdev feature need to update
Currently based on the INI option we are scheduling
work to dynamically disable/enable checksum offload and TSO.
But in the case of roaming from latency critical connection
to latency critical connection or non-latency critical connection
to non-latency critical connection, we do not need to schedule work.

So adding a condition to check :
For non-latency critical connection: If checksum offload and TSO are
not disabled then schedule work.
For latency critical: If checksum offload and TSO are
not enabled then schedule work.

Change-Id: I75a51707774c3428971dfe5cc0b0d3cdc2a17ac8
CRs-Fixed: 3054183
2022-01-18 03:48:51 -08:00
Madan Koyyalamudi
df8a08780e Release 2.0.8.27A
Release 2.0.8.27A

Change-Id: Id55ee1ac4aa9761f7b3ebc7675deefd0e79784ce
CRs-Fixed: 774533
2022-01-17 18:21:59 -08:00
Jianmin Zhu
dd4203ebef qcacld-3.0: Change tx retries unit from msdu to mpdu
Customer reported their HLOS LTE-WLAN transition algo sometimes go wrong
for wrong low layer stats, Txretry delta is bigger than Txtotal delta.
Txretry unit is msdu while Txtotal unit is mpdu.

Add vdev/peer stats for mpdu number of successfully transmitted after
more than one retransmission attempt, to align mpdu tx_packets, tx_failed.

CRs-Fixed: 3102117
Change-Id: Id4b9d8fd81af4bf0c141dad481bfd2b3f6c1db2a
2022-01-17 18:21:59 -08:00