Commit graph

22,410 commits

Author SHA1 Message Date
Madan Koyyalamudi
4469ebfb19 Release 2.0.8.22F
Release 2.0.8.22F

Change-Id: Ie95ecfeecfd5e59982ab4c0893cdb4df927b295e
CRs-Fixed: 774533
2021-08-03 15:11:49 -07:00
Kiran Kumar Lokere
5df68c50ae Revert "qcacld-3.0: Fix the TWT suspend command parse failure"
This reverts Change-Id: I6078c2e199ed13433c3dea532e3bbe396dd6ad8a

Change-Id: Id215025fc81346259932063f3203f67763690cac
CRs-Fixed: 3001632
2021-08-03 15:11:49 -07:00
Madan Koyyalamudi
4b9e7b8bbb Release 2.0.8.22E
Release 2.0.8.22E

Change-Id: I12991d7a71d2d3055885935d0d22457cc14fe30c
CRs-Fixed: 774533
2021-08-03 04:10:59 -07:00
Deeksha Gupta
245f632196 Revert "qcacld-3.0: Remove radar event if dfs_channel_switch is disable"
This reverts commit I977d93e47ee35026662d55a8e292c8790ddc7d31.

Change-Id: Iaadad6b737243228974ed75b126bf4a245313727
CRs-Fixed: 3002003
2021-08-02 21:53:43 -07:00
Madan Koyyalamudi
f083549ee6 Release 2.0.8.22D
Release 2.0.8.22D

Change-Id: I5e2a16e76166015656b7b1126891552930997572
CRs-Fixed: 774533
2021-08-02 12:26:47 -07:00
Srinivas Dasari
2801c66765 qcacld-3.0: Increase the NDP_END wait timeout to 4 seconds
Currently, host driver expects NDP_END indication from firmware
within 2 seconds after sending request to firmware. Driver shall
timeout and cleanup the corresponding NDP entry if no response is
received within 2 seconds. But firmware may take upto 2.5 seconds
to exhaust the NDP_END frame retries.
So, increase the timeout to 4 seconds to accommodate these retries
and to be inline with current NAN_DISABLE timeout.

Change-Id: Ida1abc25b4ff64aea810c88dbf36f9577b23ffd8
CRs-Fixed: 3002176
2021-08-02 12:26:47 -07:00
Yeshwanth Sriram Guntuka
946783ce54 qcacld-3.0: Don't reset tcp_adv_win_scale if any adapter is conn
In connected STA scenario, tcp_adv_win_scale is reset to 1
on runtime suspend. If any TCP connection gets initiated, the
SYN packet will cause a runtime resume. The bus bandwidth
work gets scheduled ~100msecs after resume is done. This
can result in a smaller TCP window value to get used for
the TCP connection initially and the window size does not
increase even with tcp_adv_win_scale updated to 2 as part
of bus bandwidth work.

Fix is to not reset the tcp_adv_win_scale config if any
adapter is connected on runtime suspend.

Change-Id: If10a1e1fd0efc8217f8136a60cfb01b03485a21d
CRs-Fixed: 2969041
2021-08-02 12:26:43 -07:00
Madan Koyyalamudi
db7bc757cd Release 2.0.8.22C
Release 2.0.8.22C

Change-Id: If650db653046ce3284e867c23868c0294ff2951c
CRs-Fixed: 774533
2021-07-29 07:21:23 -07:00
sheenam monga
9351a6847c qcacld-3.0: Convert nl80211 band to reg band
Currently host is sending nl80211 band to get curr
chan list but enum values are different for 6G, so
reg_get_band_from_cur_chan_list may not consider 6G
band even userspace sends 6G band in vendor command.

Fix is to convert nl80211 band to reg band to get correct
usable channel list in case of 6G.

Change-Id: I51b86c5f4f83b764847756a20a911d9b8af75b56
CRs-Fixed: 2973283
2021-07-29 07:21:22 -07:00
Madan Koyyalamudi
3fdb277690 Release 2.0.8.22B
Release 2.0.8.22B

Change-Id: I479139af3182d539615a351987a5f51a8454dee2
CRs-Fixed: 774533
2021-07-29 05:41:52 -07:00
sheenam monga
454fbbf7ac qcacld-3.0: send nl80211_chan_width instead of bw value
Currently, host sends bw value to upper layer in response
of GET_USABLE_CHAN command. but upper layer requires bw
value in form of nl80211_chan_width enum and considering
bw value as invalid and resulting into 0 bw.

Fix is to convert bw value to nl80211_chan_width enum
and send to upper layer.

Change-Id: I6ae523c35561120c28b08f3aa9782bb749337c8c
CRs-Fixed: 2957062
2021-07-29 05:41:52 -07:00
sheenam monga
4429584c52 qcacld-3.0: Use dynamic memory allocation instead of static
In function __wlan_hdd_cfg80211_get_usable_channel use
dynamic memory allocation for get_usable_chan_res_params
structure to avoid increase of stack frame.

Change-Id: Ib3b5686a7af068fd1d0435bc24eda5d9e57bf1d7
CRs-Fixed: 2950726
2021-07-29 05:41:45 -07:00
sheenam monga
e68ec2e798 qcacld-3.0: Add fature flag to get usable channels
Add feature flag for the feature to get usable channels.

Change-Id: I6dd2360284c395747b55f806caab2a5a44089866
CRs-Fixed: 2947180
2021-07-29 05:41:38 -07:00
sheenam monga
b0e4624557 qcacld-3.0: Send response of SUBCMD_USABLE_CHANNELS
Send response of SUBCMD_USABLE_CHANNELS to upper layer.

Change-Id: I3f7d0a9f28fcf60141fec86561524882ce4e3095
CRs-Fixed: 2946928
2021-07-29 05:41:32 -07:00
sheenam monga
65f0b4a87a qcacld-3.0: Handle command to get usable channels
Handle command to get usable channels for
provided mode, band and con filter.

Change-Id: I20133ea1a93c9153ec7252dcd34a0a160715d8a6
CRs-Fixed: 2946908
2021-07-29 05:41:24 -07:00
Madan Koyyalamudi
4d0d5fe197 Release 2.0.8.22A
Release 2.0.8.22A

Change-Id: I35b09833a1eba11c313015f72ed5bb6b21dbd1c1
CRs-Fixed: 774533
2021-07-28 21:37:22 -07:00
Liangwei Dong
f4e6dd2f71 qcacld-3.0: Fix channel width mismatch in ROAM SYNC
Some AP has different HT ch width setting in beacon/assoc resp.
FW uses assoc response to decide the BW of HT AP in Roaming sync.
Fix by overwrite beacon HT BW setting from assoc resp frame to
keep sync with FW.

Change-Id: I784e4b1735f4f217713f65c30092bac2ad6cb698
CRs-Fixed: 2995520
2021-07-28 21:37:22 -07:00
Madan Koyyalamudi
ca234dc708 Release 2.0.8.22
Release 2.0.8.22

Change-Id: Ibdb50e663a5181c6722f4e53410822f253a8cf85
CRs-Fixed: 774533
2021-07-28 17:00:29 -07:00
Balaji Pothunoori
9f440d1d00 qcacld-3.0: initialize color bss values during channel change
Currently color bss is disabled if color bss is set before
channel change.

This change is to reinitialize color bss values to trigger
color bss detection in firmware.

Change-Id: If5688519e147b2b8a88b622090861ba4cac9067f
CRs-Fixed: 2992617
2021-07-28 17:00:28 -07:00
Madan Koyyalamudi
3c5f60e2a4 Release 2.0.8.21Z
Release 2.0.8.21Z

Change-Id: Ia782375afebb7cf3f95e04f442b830e27b830e29
CRs-Fixed: 774533
2021-07-28 06:47:34 -07:00
Utkarsh Bhatnagar
bec1873dff qcacld-3.0: Update TDLS peer he capability based on selfDot11mode
Update peer HE capability in TDLS hash node only when 11ax
is supported in seflDot11mode capability.

Change-Id: Ia6776224ee91a6da2f0ba299b0fe5d46e241c093
CRs-Fixed: 2935305
2021-07-28 15:57:20 +05:30
Madan Koyyalamudi
888882f2b0 Release 2.0.8.21Y
Release 2.0.8.21Y

Change-Id: I8661038f107cf903b3101b7ba8dc6c5fe723221a
CRs-Fixed: 774533
2021-07-27 22:53:31 -07:00
Liangwei Dong
df66b0f224 qcacld-3.0: Fix unexpected 2.4G channel selected
In sap standalone on 5G channel, when LTE unsafe event
shows the SAP working on unsafe channel, SAP moves to
2G channel because the current logic will select
safe channel from ACS list.
The preference is 5G safe channel if available.
This change will select safe channel in same band firstly
from the list.

Change-Id: Ibc45a05845692b0dd8a02fd98aef2f7b15d00729
CRs-Fixed: 2996401
2021-07-27 22:53:31 -07:00
Madan Koyyalamudi
0fc7a5809b Release 2.0.8.21X
Release 2.0.8.21X

Change-Id: I38bddf88869a5401ab8ce2717afdb468fb70bfb8
CRs-Fixed: 774533
2021-07-27 17:41:59 -07:00
Ashish Kumar Dhanotiya
fcf5fb5a75 qcacld-3.0: Move dump in progress feature to separate file
With this change introduce featurization for dump in progress
and move implementation related to this feature to new files.

Change-Id: I4614aecde57a9c5ffec765f3afaa943c58956132
CRs-Fixed: 2979226
2021-07-27 17:41:59 -07:00
Madan Koyyalamudi
ee337f5b97 Release 2.0.8.21W
Release 2.0.8.21W

Change-Id: Ic43425844a50cd5f8fd601105c267c91b218b68e
CRs-Fixed: 774533
2021-07-27 00:48:48 -07:00
Utkarsh Bhatnagar
cb9224df64 qcacld-3.0: Change EDCA ini from CFG_STRING to CFG_INI_STRING
Change ini type of all ini related to  edca_ani, edca_wme,
edca_etsi. Also, use cfg_get instead of cfg_default for
fetching these.

Change-Id: Iba252f81d236c5b217e1d86c6511bbc52c2900b7
CRs-Fixed: 2952537
2021-07-27 00:48:48 -07:00
Madan Koyyalamudi
c9933dd547 Release 2.0.8.21V
Release 2.0.8.21V

Change-Id: Ic3a01e3ac227f6df73dd3a6dd13f5b7b40329465
CRs-Fixed: 774533
2021-07-26 07:00:30 -07:00
Karthik Kantamneni
3ed15b23a6 qcacld-3.0: Wait for reg work completion before EP access state transistion
Currently intermediate EP vote access is set without checking
for previous state and reg work handler completion.
In some of the error scenarios when resume is triggered from
suspend path, EP vote access is still enabled and work handler
will be scheduled for register updates.
So make sure reg work is completed before setting intermediate access.

Change-Id: I7a1e55c188b9a9e85309dd44ac03651181499674
CRs-Fixed: 2994039
2021-07-26 07:00:29 -07:00
Madan Koyyalamudi
7dcd9caaa1 Release 2.0.8.21U
Release 2.0.8.21U

Change-Id: I041dbe76efaa9cbb1a6e78c3ae691041a424e532
CRs-Fixed: 774533
2021-07-26 05:12:10 -07:00
abhinav kumar
bd1641c16f qcacld-3.0: SAP not following STA channel
With below INI configuration, SAP is not following the STA
channel. It's forming STA + SAP MCC instead of Forced SCC.
1. gWlanMccToSccSwitchMode = 4
   (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE)
2. gEnableSAPManadatoryChanList=1

When channel switch mode is
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE and if STA
is on 5ghz and SAP also comes on 5ghz then driver considers
the HW mode as DBS capable and it allows SAP to form
MCC which is not favorable.

For non_DBS target, the fix is to allow SAP to
do force SCC if the channel switch mode is
MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE.

Change-Id: I4b945dc1831909caff72f8398c959f4450765f2b
CRs-Fixed: 2972273
2021-07-26 05:12:10 -07:00
Madan Koyyalamudi
4218c7e968 Release 2.0.8.21T
Release 2.0.8.21T

Change-Id: I8bb016f4a2427101fa393cac29504ee254312db1
CRs-Fixed: 774533
2021-07-25 23:02:04 -07:00
Yeshwanth Sriram Guntuka
86cdedd5e0 qcacld-3.0: Enable flag to skip MSI cfg for mon rings
Enable config flag to skip MSI configuration for
monitor status and destination rings in MISSION
mode.

Change-Id: If295a5afc6731bbec1ad7182590e0015f3a911ba
CRs-Fixed: 2992169
2021-07-25 23:02:03 -07:00
Madan Koyyalamudi
4de6d51250 Release 2.0.8.21S
Release 2.0.8.21S

Change-Id: I43ef126aeae8b5a5a1163e102c4ce4b3dcbc0706
CRs-Fixed: 774533
2021-07-24 12:57:52 -07:00
Jia Ding
2e58b983dc qcacld-3.0: Enable to parse user configured edca params
Currently only default values of local edca params are used for
WME and ETSI profiles. Therefore expose them as INI config options
so that driver is able to parse user configured edca params used
locally by SAP.

Change-Id: I81759570160a67e26f68501576d71a5fd3568cd7
CRs-Fixed: 2976143
2021-07-24 12:57:52 -07:00
Madan Koyyalamudi
10b319d465 Release 2.0.8.21R
Release 2.0.8.21R

Change-Id: Ib9781fafd1486b5b3438c4363c44e25585df8691
CRs-Fixed: 774533
2021-07-24 02:10:36 -07:00
Jianmin Zhu
d6ce9875c0 qcacld-3.0: Don't compare original value when set tx max power
For STA+P2P concurrency case, once p2p disconnect, STA max tx power is
updated in F/W too per SAR by design,  app can't correct it since reconfig
same max tx power as original is refused by driver.

Fix by not comparing cached max tx power for each vdev in driver when set
max tx power, can set same value as original again to F/W directly.

Change-Id: Ic417946006f07be40aa34f1dc022d7fb5c4aa213
CRs-Fixed: 2996316
2021-07-24 02:10:36 -07:00
Madan Koyyalamudi
62e8a64831 Release 2.0.8.21Q
Release 2.0.8.21Q

Change-Id: Ib65169a9af683a88d319471b933bc2f1751f4b0a
CRs-Fixed: 774533
2021-07-23 20:21:15 -07:00
Ashish Kumar Dhanotiya
07a4b80777 qcacld-3.0: Add synchronizatoin for flush log completion
Currently there is no synchronization for flush log completion
between fw and userspace. When host driver receives command to
flush logs, it sends the command to fw and releases the control
of the userspace thread, it does not wait for the flush log
completion event from the fw and because of which user space
does not know when the host and fw completes the log flush.

To address above issue add a logic to wait for fw event of
flush log completion before host returns control to userspace.

Change-Id: I04fa0aead146d2b7b8627e4101c6dcd99d3947e9
CRs-Fixed: 2983375
2021-07-23 20:21:14 -07:00
Madan Koyyalamudi
2b679e3ec7 Release 2.0.8.21P
Release 2.0.8.21P

Change-Id: I6e3c03b0760204c4df16d471bc71c5c766e821a8
CRs-Fixed: 774533
2021-07-23 14:38:28 -07:00
Bapiraju Alla
51fabd458a qcacld-3.0: Assert when failed to parse at least one INI param
INI parameters are configured based on requirement. It is expected
that atleast one parameter should be configured through INI file.

To mandate this, trigger assert when failed to parse atleast one INI
parameter from INI file.

Change-Id: Ia94f9ae9ce91d7e57f7a6be6c6f955de5ba860a4
CRs-Fixed: 2881695
2021-07-23 14:38:28 -07:00
Madan Koyyalamudi
249826d04e Release 2.0.8.21O
Release 2.0.8.21O

Change-Id: I9b1833c3afb7222a2f4da8279316a834a60a2269
CRs-Fixed: 774533
2021-07-23 01:55:38 -07:00
Srikanth Marepalli
721bdf6a27 qcacld-3.0: Invalid pmkid in the FT-EAP disconnection case
During FT-EAP roaming after session timeout if the FTIE received
in the EAPOL of full EAP is improper, the supplicant would
disconnect the AP with the reason FTIE mismatch.
During this disconnection supplicant flushes all the existing PMK
cache entries and eventually the framework would add these cache
entries again (apparently, the current entry would be with the
older PMK). On this addition to the driver, there is no connected
profile and thus no MDID is associated to this PMKSA entry(AP1-PMK1).
Further, on the fresh (Full EAP) connection to the AP2 with the
same MDID, a new cache entry gets added and thus MDID from the
connected profile gets associated with the PMKSA cache entry. At
this point of time, there are two PMKSA cache entries (AP1-PMK1
without MDID and AP2-PMK2 with MDID).
Adding further, if the incorrect PMK (without MDID / stale entry)
i.e. PMK1 is given to the firmware on the RSO command for the
specific BSSID (here AP1) during roam, further roams shall be
calculated with this PMK1 and result in to the invalid pmkid
issue.
Thus, avoid this situation by removing that stale PMKSA entry in
the driver and this entry can be deleted only when it is associated
with the MDID. Driver on the new pmksa addition shall check for the
matching pmksa cache entry with the MDID and delete the earlier ones.
To associate the MDID, this commit checks for the same from the scan
entry of the BSSID, if there is no connected profile for the same
(this happened when the framework has added the cache entry when in
the disconnected state).

Change-Id: If81d66059173dda8d7a2940ca10dc96ef16e125c
CRs-Fixed: 2972115
2021-07-23 01:55:37 -07:00
Madan Koyyalamudi
e0d55a659a Release 2.0.8.21N
Release 2.0.8.21N

Change-Id: I1e31b1384f9a3787ceb1614c052dd3a621cf35e9
CRs-Fixed: 774533
2021-07-22 11:20:59 -07:00
Utkarsh Bhatnagar
432c544f43 qcacld-3.0: Donot access invalid wiphy band
In wlan_hdd_get_wiphy_channel(), Donot access
60 Ghz which are not part of wiphy.

Change-Id: Ie8249bdcc7c4fb66744a9b16f2c194e9ab60dd1b
CRs-Fixed: 2984046
2021-07-22 11:20:58 -07:00
Madan Koyyalamudi
2d64189997 Release 2.0.8.21M
Release 2.0.8.21M

Change-Id: Ife2ec0e354c72a290b44a1ab3062b550afa5c068
CRs-Fixed: 774533
2021-07-22 02:34:48 -07:00
abhinav kumar
6ad08b955a qcacld-3.0: Enable SAE roaming with same PMK INI by default
Enable SAE Roaming with same PMK feature INI
sae_single_pmk_feature_enabled by default.

Change-Id: I5be1b24fd77f5296574276af02b0098ac86d9730
CRs-Fixed: 2985116
2021-07-22 02:34:48 -07:00
Jyoti Kumari
aa81137989 qcacld-3.0: Send firmware internal error to userspace
Send error to userspace if ack status is not successful due to
firmware internal error

Change-Id: Id3fbbc2099fbdf597e4aebf6b532086c47a07943
CRs-Fixed: 2991060
2021-07-20 11:13:19 -07:00
Jyoti Kumari
797927d86a qcacld-3.0: Add support for TWT ack event
In case if TWT command (i.e setup, terminate, pause, resume,
nudge) comes from userspace and if the firmware is in below mode
1. scan in progress
2. roam in progress
3. CSA is in progress
4. any other error
then the command needs to be rejected in userspace context

Synchronize the TWT commands so that whenever command goes from
driver to firmware, then driver will receive ack event first
followed by respective event (i.e add dialog, delete dialog,
pause, resume, nudge) with below condition
1. If driver receives the ack event as successful then driver
   waits for this ack event, respective event with status of the
   TWT action frame over the air is expected.
2. If driver receives the ack event as failure then it will
   reject the TWT command request in userspace context.

Change-Id: Ib68b89b74b5e44f28106884efd7412cee49f5bd8
CRs-Fixed: 2987978
2021-07-20 23:41:17 +05:30
Madan Koyyalamudi
238f7a9e7b Release 2.0.8.21L
Release 2.0.8.21L

Change-Id: Id7b991bced0bd76e3212cf40f8d08d949e0028ed
CRs-Fixed: 774533
2021-07-20 08:17:58 -07:00