Commit Graph

1737 Commits

Author SHA1 Message Date
nobelj
c01e229231 qca-wifi: fix deauth in tx capture on peer filter
deauth frames are treated as speacial frame where peer id
point to bss peer id but payload RA points to station
mac address. Peer filter is done based on payload.

Change-Id: I4238a108a62accbf3a53f74332a10377675870b8
CRs-Fixed: 2692363
2020-06-05 01:37:42 -07:00
Shikha Bakshi
ffbea7e091 qca-wifi: Updating get_whc_wds to appropriate vendor command list
1. get_whc_wds entry was mapped incorrectly in the structure.
This change corrects them.

Change-Id: I1653b9bfc00d7b37977687f2a4e0299395855a75
2020-06-03 15:48:36 +05:30
Linux Build Service Account
a14ca19104 Merge "qca-wifi: use peer_id instead of peer_ids array from dp_peer" 2020-05-29 14:37:51 -07:00
Linux Build Service Account
21c27f8c0a Merge "qca-wifi: Reinitialize len in while loop" 2020-05-29 00:37:28 -07:00
Linux Build Service Account
0dc3603f12 Merge "qca-wifi: Correct the entry for chainmask in table" 2020-05-27 08:09:51 -07:00
Linux Build Service Account
ffb62a6c0d Merge "qca-wifi: Include interface name in cfr dump file" 2020-05-27 05:41:03 -07:00
Nandha Kishore Easwaran
e05a18bc88 qca-wifi: Reinitialize len in while loop
Reinitilize len variable in the while loop. This change is needed so
that the value of len does not exceed the max wmi limit.

Change-Id: Ibc86c2ab4eecb6d9919765f64d8a259ddea5475f
2020-05-27 14:31:38 +05:30
Abhiram Jogadenu
a5ef7e242f qca-wifi: Correct the entry for chainmask in table
dump_chmsk_tbl was incorrectly filled as a set command instead of
get command. Correct the entry in the table

Change-Id: Iffa4a3bad427617ce70099761054f4db4b8cd5dd
CRs-Fixed: 2694965
2020-05-26 20:07:22 +05:30
Linux Build Service Account
38edc3dc7b Merge "qca-wifi: Add support for FW cap for chan_width_switch_cmd" 2020-05-26 01:15:12 -07:00
Linux Build Service Account
d2a2034198 Merge "qca-wifi: Define restart bitmap using qdf_bitmap" 2020-05-26 01:15:11 -07:00
Shwetha G K
f83c0a4dcd qca-wifi: Include interface name in cfr dump file
Include interface name in cfr dump file.

Change-Id: I57f7d570ee3e58c7ebd3925c03005903868f3738
2020-05-22 17:25:02 +05:30
Chaithanya Garrepalli
887962ea4b qca-wifi: use peer_id instead of peer_ids array from dp_peer
use peer_id instead of peer_ids array from dp_peer

Change-Id: I7a3692b0260be5fdbc5d7670ead27f6ff8336c00
2020-05-21 21:47:28 +05:30
Aditya Sathish
c48ab01b3c qca-wifi: Add support for FW cap for chan_width_switch_cmd
WMI_PEER_CHAN_WIDTH_SWITCH_CMDID sent from host fragments the
command based on the size of the WMI buffer.

Add support to instead use a FW regulated value taken from the
WMI service ready extended_2 event.

CRs-Fixed: 2684549
Change-Id: I9577ad11658c7be9f69f868b92640d2d4285635c
2020-05-21 01:15:19 -07:00
Linux Build Service Account
6cfa3df987 Merge "qca-wifi: Add sched_cmdid check for tx cap retry queue" 2020-05-20 12:10:35 -07:00
Linux Build Service Account
86cf37791f Merge "qca-wifi: Fix compilation errors when ADFS macro is disabled" 2020-05-20 08:39:46 -07:00
Linux Build Service Account
7b5820ce1d Merge "qca-wifi: Use precac entry's BW instead of hardcoded values" 2020-05-20 04:40:04 -07:00
Santosh Anbu
37f84d48a4 qca-wifi: Define restart bitmap using qdf_bitmap
Add change to define restart bitmap using the generalized bitmap
declaration. Also use generalized function to check if any of the
bits are set in the bitmap.

Change-Id: I2c14a43982eb6e7cb5965253633ac00b357314e1
2020-05-20 14:54:01 +05:30
Linux Build Service Account
10165e6630 Merge "qca-wifi: Use node's subchannel count instead of hardcoded values" 2020-05-19 08:08:24 -07:00
Vignesh Mohan
8fb7a00b04 qca-wifi: Fix compilation errors when ADFS macro is disabled
Fix compilation errors when QCA_SUPPORT_AGILE_DFS macro is disabled
by adding the macros in certain APIs that were wrongly placed
outside the ADFS macro.

CRs-Fixed: 2689702
Change-Id: I89a4e43926625743b9f41ae142c6a45272b0c1a2
2020-05-19 03:43:10 -07:00
Vignesh Mohan
3324ba5945 qca-wifi: Use precac entry's BW instead of hardcoded values
While determining the preCAC entry in which a channel falls
under, the range of the entry is calculated from the center frequency
and the hardcoded offset of +- 75 (for 160 MHz).

In certain RDPs which supports only a maximum of 80MHz, the
entries have a range of +- 40MHz from the center, but since this value
is always hardcoded to +- 75MHz, certain channels are wrongly
misinterpreted to fall in a preCAC entry even though the entries
do not have that channel.

To avoid such anamolies, use the precac entry's BW value to
determine the range of the entry instead of hardcoding it to
+- 75MHz (offset for 160MHz/165MHz).

CRs-Fixed: 2684927
Change-Id: I412cd433d50bad82e45af1d9f34bcd566381eccf
2020-05-19 15:55:11 +05:30
Adwait Nayak
a118459804 qcawifi : Allocate lut based on number of DBR entry
In case of low memory, it could be difficult to allocate luts at
once. So, allocate lut based on number of DBR entry and
split memory allocation.

Change-Id: Ib9d3940147f2adc2a22d0cc7a82210e29c9cd7d7
2020-05-18 07:18:05 -07:00
Linux Build Service Account
7a28bb183e Merge "qca-wifi: Define restart bitmap using qdf_bitmap" 2020-05-18 03:08:21 -07:00
Christopher Chopp
cf092b85d9 qca-wifi: Add sched_cmdid check for tx cap retry queue
Before adding a ppdu to the retry queue, check if the
sched_cmdid matches that of the first ppdu in the queue.
If it does not, then the retry queue should be freed as
the received ppdu is not a retry of the ppdu in the queue.

Change-Id: I96a097f57d86539c8395af28f6fd57c13f4cad49
2020-05-15 14:06:31 -07:00
Linux Build Service Account
a37692e48e Merge "qca-wifi: remove dependency of public files from wlan_objmgr_psoc_obj.h" 2020-05-15 12:12:14 -07:00
Vignesh Mohan
6479cf57b1 qca-wifi: Use node's subchannel count instead of hardcoded values
While finding the CAC status of a channel, the tree root's
subchannel count is hardcoded to 8 (subchannel count for 160MHz
channel) after the Pine ADFS changes.

In certain RDPs, the maximum bandwidth of a channel is only 80MHz
and in those cases, the preCAC tree roots are 80MHz channels. Now
while checking if a channel is CAC done, the number of CAC done
subchannels should be equal to the number of subchannels in the
corresponding tree node. But since the tree root's subchannel count
is not calculated but is hardcoded to 160MHz, it fails in these
RDPs (with 80MHz channels) and a channel is never considered CAC
done.

To avoid this issue, use the tree root's n_valid_subchs value
as the number of subchannels instead of hardcoding it to 8.

CRs-Fixed: 2684954
Change-Id: I85e5ea6e4bb71dc9b1ba951b8e227f487e3d11f6
2020-05-15 16:29:07 +05:30
Linux Build Service Account
a69813a789 Merge "qca-wifi: Multi-Link Repeater Functionality" 2020-05-14 11:09:17 -07:00
Linux Build Service Account
2fe87301eb Merge "qca-wifi: data rate set incorrectly due to corrupted mcs" 2020-05-13 13:39:57 -07:00
Neha Bisht
16e5cb38d2 qca-wifi: remove dependency of public files from wlan_objmgr_psoc_obj.h
Remove dependency of wlan_lmac_if_def headerfile from
wlan_objmgr_psoc_obj.h in component_dev

Change-Id: I5aa8f43845538e65d25c14776ec4ec9db174f0a8
CRs-Fixed: 2643301
2020-05-13 11:56:40 -07:00
Linux Build Service Account
f6e54e17fb Merge "qca-wifi: Correct entires in vendor command list" 2020-05-13 10:39:59 -07:00
Subhranil Choudhury
f34bab46e4 qca-wifi: Multi-Link Repeater Functionality
This change implements the multi-link WiFi repeater functionality
using the Linux bridge Layer 2 forwarding table.

Change-Id: Ifa862a139f618f6bffde5613fd8d8d2e08d4f106
2020-05-13 18:54:48 +05:30
Shaakir Mohamed
5fbb744f99 qca-wifi: Add support to override RSNX IE
Adds cfg80211tool param command definitions
to override RSNX IE

Change-Id: I7cb8a7d1e891d10461c38b9025c02528bebb1d6b
CRs-Fixed: 2668443
2020-05-12 11:02:28 -07:00
Abhiram Jogadenu
46f94057b2 qca-wifi: Correct entires in vendor command list
Few entries were populated incorrectly in the struture.
This change corrects them.

Change-Id: I70e54514760f73dbc8ce86cf5e3cff8b6ad0ea0b
2020-05-12 18:41:50 +05:30
Shaakir Mohamed
5ee3424049 qca-wifi: Add support to OCE related config params
Adds support to OCE related config params to set
tx power,subnet id and ee report element.

Change-Id: I3909cdb032440bfdd7ae8b3024c2e3139d826551
CRs-Fixed: 2658248
2020-05-11 07:07:26 -07:00
Linux Build Service Account
26d0476227 Merge "qca-wifi: Enable debug prints for Rolling CAC feature" 2020-05-08 09:39:20 -07:00
Santosh Anbu
577e6ed419 qca-wifi: Define restart bitmap using qdf_bitmap
Add change to define restart bitmap using the generalized bitmap
declaration. Also use generalized function to check if any of the
bits are set in the bitmap.

Change-Id: Ice0682ed7a59de962e9e46cf598643139c7c2313
2020-05-08 15:05:31 +05:30
Linux Build Service Account
051a4a29e0 Merge "qca-wifi: Fix monitor mode ppdu id mismatch issue for qcn9000" 2020-05-07 11:40:34 -07:00
Ruben Columbus
f344193a21 qca-wifi: data rate set incorrectly due to corrupted mcs
delete redefinition of mcs from rx_user_status and keep mcs
derived from preamble which came from rts.

Change-Id: I5323d7944abd474a82d34b812caac1290168ea94
2020-05-07 11:39:26 -07:00
Rathees kumar Chinannan
34f026196d qca-wifi: Command to set/get next freq for radar
command to set next frequency for radar:
cfg80211tool wifix setNxtRadarFreq <freq_value>

command to get next frequency for radar:
cfg80211tool wifix getNxtRadarFreq

Before every radar detection, user has to set this frequency
or else AP will choose existing way to select channel.
This command is applicable for both RootAP and Repeater.

Change-Id: I12063dadeb28c5b3792bfd4b30c859de8e6eb2f2
CRs-Fixed: 2679009
2020-05-07 12:22:20 +05:30
Linux Build Service Account
7bef6dba9b Merge "qca-wifi: Add commands to control Non-inheritance feature" 2020-05-06 19:10:49 -07:00
Manoj Ekbote
e89ceec318 qca-wifi: Add commands to control Non-inheritance feature
In MBSS IE feature, non-tx VAPs can inherit parameters from tx VAP unless
a non-inheritance IE is added to the VAP's profile. Currently, only
security parameters can be added to this IE. Add commands to control this
feature.
If it's 1, security IEs from tx VAP are not inherited and non-inheritance
IE is added.
If it's 0, security can be inherited. In EMA case, Tx VAP security can't be
inherited if it's WPA/WPS. Only WPA2/WPA3 can be inherited.

Change-Id: Idb8df981371bd6c23afa0f3bb655668d0e094438
2020-05-06 11:46:23 -07:00
Priyadarshnee S
fb4ff4331e qca-wifi: Enable debug prints for Rolling CAC feature
Add debug prints for Rolling CAC feature under the DFS debug level
"WLAN_DEBUG_DFS_RCAC". Enable it by setting the following commands:
1. iwpriv athx qdf_cv_lvl 0x27000a
2. radartool -i wifix dfsdebug 0x00400000

Change the prototype of dfs_get_rcac_enable() to store 'rcac_en'
value in a bool data type.

CRs-Fixed: 2679108
Change-Id: I124f23bb92f4464ef2c49ba2d8978c3ab4e05169
2020-05-06 19:19:32 +05:30
Linux Build Service Account
9c5f909e52 Merge "qca-wifi: Drop msdu on queue exceed threshold" 2020-05-05 10:39:34 -07:00
Linux Build Service Account
30ff64abbe Merge "qca-wifi-oss: Fix preCAC channel list building" 2020-05-05 10:39:32 -07:00
nobelj
221302d6bc qca-wifi: Drop msdu on queue exceed threshold
Add support
a. Drop msdu on queue exceed threshold of 4096
b. Add support to print consolidated peer tid queue.

Change-Id: I2b91b151531c839657716ac52987cf5e4a62e7cc
2020-05-04 23:25:52 -07:00
Linux Build Service Account
64517f0719 Merge "qca-wifi: Add command to get CFR Capture Status" 2020-05-04 19:10:57 -07:00
Linux Build Service Account
0451a91d78 Merge "qca-wifi: initialize preamble value for radiotap use" 2020-05-04 19:10:56 -07:00
Linux Build Service Account
2b35e0acf7 Merge "qca-wifi: Remove Spatial Reuse commands from Wi-Fi params" 2020-05-04 19:10:56 -07:00
Linux Build Service Account
f24e1b8913 Merge "qca-wifi: error copying memory" 2020-05-04 19:10:56 -07:00
Linux Build Service Account
82edce8b0c Merge "qca-wifi: set frame control for BRP frame" 2020-05-04 12:13:04 -07:00
Ruben Columbus
4fa7c6ad46 qca-wifi: initialize preamble value for radiotap use
preamble value for mubar case is stored in phy_mode variable. this needs
to get carried over to preamble variable in mpdu_info so its used
correctly in radiotap setup.

Change-Id: If149f7b58a3d8b788bab706f8943d66f95e8517c
2020-05-04 12:01:03 -07:00