Commit Graph

24063 Commits

Author SHA1 Message Date
sandhu
cff5dc24a9 qcacld-3.0: create a sysfs to display stats on console
Add a sysfs to display DP stats on console. Sysfs file
displays requested stats on console and wlan logs.

Change-Id: Ifd56d1bf6f578a4ce3f1d963040e6d3cd138c64a
CRs-Fixed: 3035860
2021-10-05 02:51:12 -07:00
Madan Koyyalamudi
975c859f9d Release 5.2.0.250P
Release 5.2.0.250P

Change-Id: Ib62430fbf7d3f957de78af234bfe2f3e6076e13a
CRs-Fixed: 774533
2021-10-04 16:13:43 -07:00
Utkarsh Bhatnagar
49d461ba28 qcacld-3.0: Dump SBS concurrency
Add condition in policy_mgr_dump_current_concurrency()
so as to dump SBS concurrency as well.

Change-Id: I64c7d5623df57e4c1812f21fac63ea55fbaee4c8
CRs-Fixed: 3048236
2021-10-04 16:13:42 -07:00
Madan Koyyalamudi
83e4c3ada4 Release 5.2.0.250O
Release 5.2.0.250O

Change-Id: I00208446ce493e203cb9025804d0081b2493e97a
CRs-Fixed: 774533
2021-10-04 13:53:39 -07:00
Jianmin Zhu
6e9568f9c8 qcacld-3.0: Fix array OOB for duplicate rate
Some IoT AP may have duplicate rates in supported rates and
extended rates in beacon, need filter them when populate peer 11a/11b
rates during connect/roaming, or array out of bound issue will happen.

Change-Id: I685e8c07ee147296bfa22742dad4210e7fa02c4a
CRs-Fixed: 3048142
2021-10-04 13:53:39 -07:00
Madan Koyyalamudi
ccb8eea00f Release 5.2.0.250N
Release 5.2.0.250N

Change-Id: Ic56e0adc99cffb1dec9feececfca4a327dc675c5
CRs-Fixed: 774533
2021-10-04 11:39:50 -07:00
abhinav kumar
95a959d694 qcacld-3.0: Prepare scan filter freq list only when STA is present
Prepare scan filter frequency list only if STA + STA councurrency
present.

Change-Id: I4b9f8e57f559291cf778a7e9e80309ce10c3894b
CRs-Fixed: 3049000
2021-10-04 11:39:50 -07:00
Madan Koyyalamudi
2caaf75246 Release 5.2.0.250M
Release 5.2.0.250M

Change-Id: I7ec2ccd2b66bb8c35f762b7a3a0254b677e17b3f
CRs-Fixed: 774533
2021-10-04 05:31:52 -07:00
Nirav Shah
4dfeca2ebc qcacld-3.0: Handle TSF value in TWT setup command
Handle QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF attribute
in TWT setup command to provide absolute TSF value to firmware.
This helps application to start TWT session on specific TSF value.

Change-Id: Ibd33b824d0c150a84c65935300808d1ccfeb0761
CRs-Fixed: 3029018
2021-10-04 05:31:52 -07:00
Madan Koyyalamudi
3f06051c69 Release 5.2.0.250L
Release 5.2.0.250L

Change-Id: Id487a2bb128ce2d8af62389504bedd37ac4b82d5
CRs-Fixed: 774533
2021-10-02 04:04:29 -07:00
Balaji Pothunoori
db872287ef qcacld-3.0: vendor command changes to configure parameters for monitor mode
Add the support to the vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE which aims to configure the
monitor mode parameters for the specific interface.
Once enabled, the configured frames ( TX and RX ) are sent over the
active coexisting monitor interface.

Change-Id: Ieb01d5f928d4e414f46bd00524ad683ad889963e
CRs-Fixed: 3025473
2021-10-02 04:04:29 -07:00
Madan Koyyalamudi
68796bc107 Release 5.2.0.250K
Release 5.2.0.250K

Change-Id: I1ff0263a0de4550d166a4f072365251677769efe
CRs-Fixed: 774533
2021-10-02 01:56:00 -07:00
Alan Chen
e99d4cfc7d qcacld-3.0: Add dev enter log for get LL stats
Add dev enter debug log for get LL stats request.

Change-Id: I19ff2a7147c93aab8c9cfce04a050dfa89102100
CRs-Fixed: 3049345
2021-10-02 01:55:59 -07:00
Madan Koyyalamudi
c871120061 Release 5.2.0.250J
Release 5.2.0.250J

Change-Id: I964d289f7367c01922ec3c05b85fd84cd1cd0896
CRs-Fixed: 774533
2021-10-01 23:39:20 -07:00
Utkarsh Bhatnagar
ba429d18b8 qcacld-3.0: Use policy_mgr_are_sbs_chan() for valid SBS channels
Use policy_mgr_are_sbs_chan() to check for valid 5/6 Ghz
SBS channel instead of WLAN_REG_IS_FREQUENCY_VALID_5G_SBS
which will only check for 5Ghz SBS channel

Change-Id: I1c2ee1dffac1f4a8619e02ebc342e27af61a63d2
CRs-Fixed: 3047071
2021-10-01 23:39:20 -07:00
Madan Koyyalamudi
a269198c3a Release 5.2.0.250I
Release 5.2.0.250I

Change-Id: Icb4672585a34e6de2fd83cca30e99c049cdf2a26
CRs-Fixed: 774533
2021-10-01 20:29:10 -07:00
David Oladunjoye
d682cfa6be qcacld-3.0: Fix static analysis issues in wma_scan_roam.c
Pointer returned from cds_get_contex() may be NULL.
Hence add a NULL check before dereferencing.

Change-Id: I809d70a91e563590468141d4a9e4296bd511d472
CRs-Fixed: 3044372
2021-10-01 20:29:10 -07:00
Madan Koyyalamudi
9f63c82609 Release 5.2.0.250H
Release 5.2.0.250H

Change-Id: I62e69486cd57136d6d29be1e911fa41487dac630
CRs-Fixed: 774533
2021-10-01 18:19:39 -07:00
Abhishek Singh
8573d63304 qcacld-3.0: Print vdev id in case vdev delete fails/timeout
Print vdev id in case vdev delete fails/timeout

Change-Id: Id5457ca4e8f9b8ff534ba6b2019c41ef6f0386cc
CRs-Fixed: 3047420
2021-10-01 18:19:38 -07:00
Madan Koyyalamudi
85c72738ce Release 5.2.0.250G
Release 5.2.0.250G

Change-Id: I33f0c810f72d239a044646680e08a3065b8c1771
CRs-Fixed: 774533
2021-10-01 10:59:35 -07:00
Utkarsh Bhatnagar
1fde9cdcbf qcacld-3.0: Add Policy Mgr Util APIs for SBS
Add Policy Mgr Util APIs such as:
	policy_mgr_are_2_freq_on_same_mac()
	policy_mgr_are_3_freq_on_same_mac()
	policy_mgr_are_sbs_chan()
	policy_mgr_is_current_hwmode_dbs()
	policy_mgr_is_current_hwmode_sbs()
	policy_mgr_are_3_freq_in_freq_range()
	policy_mgr_are_2_freq_in_freq_range()
	policy_mgr_is_cur_freq_range_sbs()

Change-Id: Ic85e48fa48c1c0cc7fa9e7ca6c8dbf2c8abfb94a
CRs-Fixed: 3047019
2021-10-01 10:59:35 -07:00
Madan Koyyalamudi
e63d607730 Release 5.2.0.250F
Release 5.2.0.250F

Change-Id: I8d3f738e4f45fb1acb2a50cc112c84cffaad2d45
CRs-Fixed: 774533
2021-10-01 07:51:51 -07:00
Vulupala Shashank Reddy
924b163c6c qcacld-3.0: Set frame filter based on vendor command
Currently, packet capture mode frame filter configuration
is done based on ini. This change enables user to set the
packet capture mode frame filter configuration at runtime
through vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE.

Change-Id: Ifd40a9295394324b0cde4ff15bb55ea77851a6bc
CRs-Fixed: 3046091
2021-10-01 07:51:51 -07:00
Abdul Muqtadeer Ahmed
2e1c32c5ba qcacld-3.0: Add a check for proc_entry
If proc_entry is not initialized and remove procfs function is invoked
then it may lead to system crash.

To avoid the above issue add a check whether proc_entry is initialized or
not.

Change-Id: I45987309e096808dce7eccad498098d292204ff0
CRs-Fixed: 3048483
2021-10-01 07:51:47 -07:00
Madan Koyyalamudi
d272fae557 Release 5.2.0.250E
Release 5.2.0.250E

Change-Id: Iaf90b0b67ee324448b68a1c10d1df045c2682edc
CRs-Fixed: 774533
2021-10-01 05:43:25 -07:00
Dundi Raviteja
1c487858b3 qcacld-3.0: Map monitor interface vdev during SSR
Map monitor interface vdev with STA vdev during SSR reinit.

Change-Id: I0baca7c09d0fe7f800135181a1445770ab8e2971
CRs-Fixed: 3045111
2021-10-01 05:43:25 -07:00
Madan Koyyalamudi
9e59ad1862 Release 5.2.0.250D
Release 5.2.0.250D

Change-Id: Id6d71f81bae874bc22de2ce931ece2202bb8baec
CRs-Fixed: 774533
2021-09-30 15:14:58 -07:00
Srinivas Girigowda
a58817a89b qcacld-3.0: Replace WLAN_ALL_SESSIONS_DIALOG_ID with TWT_ALL_SESSIONS_DIALOG_ID
There are duplicate macros for the same purpose, hence
replace WLAN_ALL_SESSIONS_DIALOG_ID with TWT_ALL_SESSIONS_DIALOG_ID.

Change-Id: I63130869eed8dffcce85fe6a04586592ab3eaca2
CRs-Fixed: 3047686
2021-09-30 15:14:58 -07:00
Alan Chen
fb87ff490c qcacld-3.0: Enable more WoW logging modules
Enable more WoW logging modules to help with debugging by changing ini
gFwDebugWowModuleLoglevel=1,3,5,3,18,1,19,3,31,1,36,1,57,3.

Change-Id: Ib42e16188c2572d04971be0e28836797286faeac
CRs-Fixed: 3042611
2021-09-30 15:14:53 -07:00
Madan Koyyalamudi
533cd27fe6 Release 5.2.0.250C
Release 5.2.0.250C

Change-Id: I93ca597c942175cd99e5128033d32162f9a1c7e4
CRs-Fixed: 774533
2021-09-30 13:01:23 -07:00
Bing Sun
09c0fa4748 qcacld-3.0: Add API to set/get phymode for easymesh
Add API to set/get phymode for easymesh

Change-Id: I6d03de8ae61fa1b752213edcfd053e219fba3de9
CRs-Fixed: 3038234
2021-09-30 13:01:23 -07:00
Madan Koyyalamudi
0f57ad7dfd Release 5.2.0.250B
Release 5.2.0.250B

Change-Id: I0231d262f81bc50d2328ae243690de092508fa99
CRs-Fixed: 774533
2021-09-30 10:51:40 -07:00
Bing Sun
c7defa218a qcacld-3.0: Set/get candidate channel to switch when radar is detected
Currently driver switches to a random channel when radar is detected.
Easymesh expects ap switching to a given channel.

Add API to set/get given channel. AP should switch to given channel
when radar is detected.
The given channel will be cleared after a radar detection.

Change-Id: I29b97e247583be768842c128e6a3e5d5bfd859f7
CRs-Fixed: 3034735
2021-09-30 10:51:40 -07:00
Bing Sun
00740c5de2 qcacld-3.0: Add API to get/set HT20/40 mode for easymesh
Add API to get/set HT20/40 mode for easymesh AP mode

Change-Id: Ic6b06b4bd05003537939a77cdd8daa82d2ecc5fa
CRs-Fixed: 3034726
2021-09-30 10:51:34 -07:00
bings
a44cf88b36 qcacld-3.0: Implement legacy commands of easy mesh
Provide below APIs for easy mesh.
API to get the current frequency of the given VDEV.
API to get acs status of the given VDEV.
API to get cac status of the given VDEV.
API to get/set bandwidth of the given VDEV.
API to get band information of the given VDEV.
API to get connected STA count of the given VDEV.
API to get BSSID of the given VDEV.
API to get SSID of the given VDEV.
API to set channel of the given VDEV.
API to get/set cac timeout of the given VDEV.
API to get/set country code of the given VDEV.

Change-Id: Ia0bd201ad8155a66a4a8c5517f6fa43f3f358505
CRs-Fixed: 3027192
2021-09-30 10:51:28 -07:00
Bing Sun
7ff37bd587 qcacld-3.0: Refine wlan_hdd_get_adapter_by_vdev_id_from_objmgr
Refine API to get adapter from vdev directly.

Remove parameter hdd_ctx of wlan_hdd_get_adapter_by_vdev_id_from_objmgr.
It is good enough to get adapter from input parameter vdev.
Move output parameter adapter to return value.

Change-Id: Ide6ac7466cee0f1e7fea9b31d325bd432548ff55
CRs-Fixed: 3037265
2021-09-30 10:51:23 -07:00
Madan Koyyalamudi
1c9f2b6970 Release 5.2.0.250A
Release 5.2.0.250A

Change-Id: I5440fd4960a1fdcb23f186bc929b83cd0d72406d
CRs-Fixed: 774533
2021-09-30 06:27:14 -07:00
Deeksha Gupta
9e8dbd5b76 qcacld-3.0: Fix possible OOB in unpack_tlv_core
Currently in unpack_tlv_core(), nBufRemaining is validated
after calling framesntohs API. Since, framesntohs() copies
pIn address to pOut address with length = 2 bytes as below.
DOT11F_MEMCPY(pCtx, (uint16_t *)pOut, pIn, 2);
which could cause OOB issue if pIn contains less than 2 bytes.

Fix is to validate the nBufRemaining size before calling
framesntohs().

Change-Id: I3ead03ec948282a410ddba5b01f82ca31d3d9199
CRs-Fixed: 3042282
2021-09-30 06:27:14 -07:00
Madan Koyyalamudi
dcc046aa34 Release 5.2.0.250
Release 5.2.0.250

Change-Id: I48d1597e190476298195bbc8e4985423fafa46bd
CRs-Fixed: 774533
2021-09-30 03:10:04 -07:00
Ashish Kumar Dhanotiya
d5474482ea qcacld-3.0: Free HE op element memory for change interface
Currently host driver does not free the memory for HE
operation from cache connection info when it receives change
interface from STA to SAP mode which results in mem leak.

To address above issue, free HE operation element memory on
STA to SAP interface change.

Change-Id: I837640814459a62d819e606fc44adc9bfc60fe5c
CRs-Fixed: 3045848
2021-09-30 03:10:04 -07:00
Jyoti Kumari
25f4f0840f qcacld-3.0: Send PCL list to fw after STA connects in open mode
In open mode, driver sends PCL list to firmware as part of STA
connection completes. To send the PCL list, driver checks whether
active session increases or not. But in current scenario, first
STA connection complete happens and then active session increases
which results no PCL list to firmware.

As part of fix, first increase the active session and then do STA
connection completes so that PCL list will be send to firmware
after successful STA connection in open mode.

Change-Id: Ie920aad7d1d693f04e5b4c13806ec09078ffd8c9
CRs-Fixed: 3042257
2021-09-30 03:09:59 -07:00
Madan Koyyalamudi
38dd31868b Release 5.2.0.249Z
Release 5.2.0.249Z

Change-Id: Ie34c32b0dff79e736263bdd25f6f4d99c943ce78
CRs-Fixed: 774533
2021-09-30 01:00:01 -07:00
Alan Chen
0c0edb5670 qcacld-3.0: Always enable WoW for RTPM suspend
gSuspendMode is for system suspend to choose between WoW and pdev
suspend. For RTPM suspend, should always enable WoW.

Change-Id: Ibf95ca79ded73f9c68e14b8dac4ec68d979f9db6
CRs-Fixed: 3047812
2021-09-30 01:00:01 -07:00
Madan Koyyalamudi
776aef042c Release 5.2.0.249Y
Release 5.2.0.249Y

Change-Id: Ia0493940f33d3efcfe5532772045564208562023
CRs-Fixed: 774533
2021-09-29 17:20:15 -07:00
abhinav kumar
0fae493005 qcacld-3.0: Register DSCP action frame for wake up
Currently, the bitmap of action frames that can wake up the
host during suspend is sent via the wmi command
WMI_WOW_SET_ACTION_WAKE_UP_CMDID. This bitmap doesn't include
DSCP action frames so currently the host doesn't wake up for
DSCP action frames when in suspend mode.

Enable wake up for DSCP action frame for runtime PM as well
as for wow mode.

Change-Id: I51ba3e8ef52755af25ed922161028dfbaccaa250
CRs-Fixed: 3046595
2021-09-29 17:20:15 -07:00
Yu Tian
7e6fd6556c qcacld-3.0: Add a yeild break in process rx buffer thread
Some events may send to change the behavior of DP rx thread.
When there are lots of packets pending in rx queue, thread loop
will not get a chance to check and process these events. Change
is aimed to give a yeild to allow checking of thread events.

Change-Id: Ibe64a1ee27086ba8e1ee8c8e9dd316c5fb4a8a42
CRs-Fixed: 3024332
2021-09-29 17:20:10 -07:00
Madan Koyyalamudi
fafdba2b5b Release 5.2.0.249X
Release 5.2.0.249X

Change-Id: Idd1d0d638b139f420dadd1bcfd203eecc327b329
CRs-Fixed: 774533
2021-09-29 15:05:18 -07:00
Abhishek Singh
62fbb8beb7 qcacld-3.0: Remove unused HDD wait timeouts
Remove unused HDD wait timeouts WLAN_WAIT_TIME_STOP_ROAM and
WLAN_WAIT_DISCONNECT_ALREADY_IN_PROGRESS.

Change-Id: Ib89bb7be810c945fb25d0ce687843199d843024c
CRs-Fixed: 3047421
2021-09-29 15:05:17 -07:00
Madan Koyyalamudi
0fd208599f Release 5.2.0.249W
Release 5.2.0.249W

Change-Id: I5e4f5f2b5e45efab39ec56aa4faa26e1229d95a1
CRs-Fixed: 774533
2021-09-29 12:42:18 -07:00
Jayachandran Sreekumaran
24d88cf17d qcacld-3.0: Channel selection failure during SAP restart
Channel selection for changing SAP operating channel fails if the ACS
channel list is empty in SAP context. This leads to SAP operating on
disabled channel after country code change. Modified to return successfully
without filtering the pcl in empty acs channel list cases.

Change-Id: If252e9dc4dad300892848d2add85bf121d52ae21
CRs-Fixed: 3042093
2021-09-29 12:42:17 -07:00