Commit Graph

99 Commits

Author SHA1 Message Date
Nandha Kishore Easwaran
43707528ce qca-wifi: Convert host pdev to target pdev id
Convert host pdev id to target pdev id before sending
WMI_PDEV_UPDATE_PKT_ROUTING_CMDID cmd. This is needed for HK_PHYB
RDP where 0 host pdev corresponds to target pdev 2

Change-Id: I2bb63453a19d899896b7d87d90ac4c78721c7a31
2020-06-15 23:59:45 -07:00
sumedh baikady
294eb261bc qca-wifi: Fix tbtt offset WMI for multi pdev
In case of multiple pdev in SoC, the pointer
to original buffer containing AP info(sent to
target) is manipulated. This causes wrong data
to be sent to target.

Fix is to keep a copy of pointer to manipulate
and retain original pointer for other pdev.

Change-Id: I85ea3d591ef486a945cf27a9c4a1c88b0fcc1b5f
2020-06-04 16:37:02 -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
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
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
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
f24e1b8913 Merge "qca-wifi: error copying memory" 2020-05-04 19:10:56 -07:00
sumedh baikady
b104286c04 qca-wifi: Add WMI support for Tbtt sync in Multi Soc
Support synchronization of Tbtt in multi SoC case.
Add WMI to send vdev details of one soc to another.
Info includes beacon interval, bssid and tbtt calculated
in host wrt to other Soc.

Change-Id: I79c5813e6294f4852bd373d32723a98c05bd5871
2020-04-24 19:45:24 -07:00
Ruben Columbus
85d72bdfe4 qca-wifi: error copying memory
unnecesary condition statement for mem copy

Change-Id: I5742b9272ac5c1789a078165c858c3d54bc59bda
2020-04-09 14:04:58 -07:00
Subrat Mishra
db94114a40 qca-wifi: Handle Packet log disable WMI command fail
Handle packet log disable WMI command fail scenario.

CRs-Fixed: 2643385
Change-Id: Iffe3efa222bb736cdf604455a0e7d12e5500e536
2020-04-01 22:49:49 -07:00
Linux Build Service Account
fe264824b0 Merge "qca-wifi: Remove redundant data structure for wmi response extraction" 2020-03-30 02:28:33 -07:00
Linux Build Service Account
27bc6ff961 Merge "qca-wifi: Add third argument to WMI_DBGLOG_CFG_CMDID" 2020-03-29 10:09:58 -07:00
Linux Build Service Account
bcc9fe307b Merge "qca-wifi: Fix compiler issues when WAPI is disabled" 2020-03-27 05:17:24 -07:00
Linux Build Service Account
b0437f2b81 Merge "qcacmn: Remove redundant data structure for wmi response extraction" 2020-03-26 20:01:30 -07:00
Pooventhiran G
419e7a2388 qca-wifi: Fix compiler issues when WAPI is disabled
Variable "i" in "send_setup_install_key_cmd_non_tlv" function is used
only when ATH_SUPPORT_WAPI is enabled. Hence, kept its declaration
inside ATH_SUPPORT_WAPI macro itself.

Change-Id: Ic67362b0d90db64fb44b2e9ad7d026c836a95c51
2020-03-25 06:33:50 -07:00
Linux Build Service Account
348807f1b2 Merge "qca-wifi: Remove redundant data structure for wmi response extraction" 2020-03-24 23:38:41 -07:00
Naga
56b668bb64 qca-wifi: Remove redundant data structure for wmi response extraction
Remove redundant data structure at wmi for vdev start
response extraction, instead use mlme host data structure.

Change-Id: Icc28493722546f3c37e8a90d3182becb3af6557b
CRs-Fixed: 2641083
2020-03-15 21:49:59 -07:00
Manoj Ekbote
b31db0ed49 qca-wifi: Convert target pdev id to host pdev id
In the response event for multi-vdev restart request, target pdev id
needs to be converted to host pdev id since pdev id mapping can change
based on HW mode and primary interface when dynamic HW mode feature is
used.
When feature is not used, regular conversion will be applied.

CRs-fixed:2631763

Change-Id: I5f0ce37ca2d3f138c25fa6e84f00da222ae72222
2020-03-14 18:25:04 -07:00
Naga
319633ce31 qcacmn: Remove redundant data structure for wmi response extraction
Remove redundant data structure at wmi for vdev delete all peer
response extraction, instead use mlme host data structure.

Change-Id: I5dbd86a6ab64477830dd8ae2e69b75e6f9e623fa
CRs-Fixed: 2641263
2020-03-13 17:32:48 +05:30
Naga
bc9c69bd37 qca-wifi: Remove redundant data structure for wmi response extraction
Remove redundant data structure at wmi for vdev delete
response extraction, instead use mlme host data structure.

Change-Id: I0ca9a43d5ae25ee3b68fdb84c880e2cad4d6bf0e
CRs-Fixed: 2641198
2020-03-13 16:41:17 +05:30
Naresh Parati
fcd7891694 qca-wifi: Add third argument to WMI_DBGLOG_CFG_CMDID
This will allow dbglog_cmd in non-tlv path for non-tlv platform
since the fw_header structure "struct dbglog_config_msg_s" variable
"cfgvalid" increased size by one

Change-Id: I476a50805d3c7a329d39f8496e29477be8a4a86c
CRs-Fixed: 2626544
2020-03-10 11:33:38 +05:30
Sumedh Baikady
d642558ecc qca-wifi: Add WMI support for dynamic Muedca
Add support for WMI event to host to process
dynamically selected Muedca values and update
the mgmt frames with the new set of values.

Change-Id: I831c3b4754f355d7a40ded435599702b41533780
2020-03-03 16:45:50 -08:00
narayan
1776b97458 qca-wifi: Resolving parse error in wmi_stats_event
Parsing nac_rssi event only if both pdev_ext2_stat and nac_rssi_stat
are sent by FW in wmi_stats_event handling for non_tlv chipsets.

Change-Id: If39cc49106fd16c2a2b7fc729a82c863ae0c1b89
2020-02-18 00:38:29 -08:00
Linux Build Service Account
b5da197c2c Merge "qca-wifi: Rename 165 MHz service bit as restricted 80+80 MHz" 2020-02-15 11:08:15 -08:00
Shashikala Prabhu
cf4e2669e7 qca-wifi: Rename 165 MHz service bit as restricted 80+80 MHz
Rename wmi_service_bw_165mhz_support as
wmi_service_bw_restricted_80p80_support.

Change-Id: I903afca5d561d879e1b74ffce96bd5eed02ee1ef
CRs-Fixed: 2621240
2020-02-13 14:43:13 +05:30
Santosh Anbu
318d608c35 qca-wifi: Copy bit map from TLV to host data structure
On receiving multi-vdev restart response from FW, the bit map size
indicates the size in words. Due to which when extracting the info
into host data structure only 2bytes are copied as against 2words.

Fix by extracting the complete contents of the TLV.

Change-Id: Ibc5de7c2b1d74e0fbcd2317e57955915f2dc0c3d
CRs-Fixed: 2619141
2020-02-12 15:32:58 +05:30
Linux Build Service Account
ed99fa0a31 Merge "qca-wifi: Add WMI support for native 160MHZ" 2020-02-10 03:07:29 -08:00
Linux Build Service Account
0ba8248004 Merge "qca-wifi: Optimize host-fw handshake" 2020-02-02 07:07:40 -08:00
Linux Build Service Account
7a46d4d3d3 Merge "qca-wifi: Optimize vdev host-fw handshake operation" 2020-01-31 20:38:52 -08:00
Debasis Das
e120b221df qca-wifi: Optimize host-fw handshake
Send bcn_tx_rate as vdev start paramter.
This will avoid sending individual wmi
command for the same during vdev up.

Change-Id: I890d89e7c607bc24d2726ded7e51d4dd19ca3359
2020-01-31 19:54:28 +05:30
Debasis Das
ce5aaf0ba0 qca-wifi: Optimize vdev host-fw handshake operation
Optimize below parameters for host-fw handshake:
1. beacon interval
2. dtim_period

Change-Id: If4ae8fc28707904df380aeb4cf3b51dcbf46a69f
2020-01-31 19:53:10 +05:30
Shashikala Prabhu
6cca13cc9d qca-wifi: Add WMI support for native 160MHZ
Set native 160MHZ wmi support as unavailable for pre-lithium  chipsets.

Change-Id: I55650821896e2d59c0fc7d465ab30d6271d8359b
CRs-Fixed: 2612980
2020-01-30 06:30:56 -08:00
Debasis Das
24f75a084c qca-wifi: Support extended multi-vdev restart cmd
Support variable param-list in multi-vdev-restart
by adding the restart_ext command.

Change-Id: I790aec12cc2fbc71577136b6c9867af1bf356128
2020-01-28 08:10:23 -08:00
Debasis Das
ecd593e474 Revert "qca-wifi: Support extended multi-vdev restart cmd"
This reverts commit 918c7107153cda4208e818789bb0dc2f04528a9d

Change-Id: I6dbb03732d70863041ed0f2c334399a21163f253
2020-01-22 06:55:58 -08:00
Linux Build Service Account
a6b99bd079 Merge "qca-wifi: Support extended multi-vdev restart cmd" 2020-01-21 01:37:41 -08:00
Linux Build Service Account
adc677d01c Merge "qca-wifi: remove fw headers in init_deinit component" 2020-01-20 07:11:12 -08:00
Debasis Das
4830f1f867 qca-wifi: Support extended multi-vdev restart cmd
Support variable param-list in multi-vdev-restart
by adding a new command.

Change-Id: I99a90d419a49cbb0a0cfa2244fe07f958d071ac5
2020-01-20 14:45:38 +05:30
Linux Build Service Account
a8800bf0ac Merge "qca-wifi: Send phymode in multi-vdev-restart params" 2020-01-19 11:35:48 -08:00
Linux Build Service Account
325630ccc7 Merge "qca-wifi: Support multivdev restart response handling for TLV" 2020-01-18 04:11:38 -08:00
Debasis Das
99600986cf qca-wifi: Send phymode in multi-vdev-restart params
In multi-vdev-restart command, phymode is being added
to the params list.

Change-Id: I85897cb6667b97141ab2b92ab42cf1bd87b5a7b9
2020-01-13 22:22:26 -08:00
Santosh Anbu
d32205615d qca-wifi: Support multivdev restart response handling for TLV
Add WMI change to support extraction of consolidated multi vdev
response handling from TLV.

Change-Id: I5b9697b130ec38ac64de5a63ad8e491b9b786604
CRs-Fixed: 2601729
2020-01-12 17:54:02 +05:30
Santosh Anbu
30bd6249ae qca-wifi: Support multivdev restart response for non-TLV
Add change to support consolidated multi vdev restart response
handling for non-TLV based platforms.

Change-Id: I58445fb66465b987906d23c079813b010976b380
CRs-Fixed: 2593073
2020-01-12 16:33:29 +05:30
Ankit Kumar
8eb01eccb1 qca-wifi: Wmi interface to send hw vlan accel info to fw
wmi interface to sned hw vlan acceleration command to fw.

Change-Id: I6702da276fa89471d327a64810cf7fc85ab66d44
CRs-Fixed: 2596307
2020-01-06 09:41:38 +05:30
Neha Bisht
8dc92aff36 qca-wifi: remove fw headers in init_deinit component
Avoid direct fw headers usage in init_deinit component

Change-Id: Ibdf8ea663fb9406217b56e0806d8c332ad3a1504
CRs-Fixed: 2568438
2020-01-03 11:56:19 +05:30
nobelj
b7c2ce2b5b qca-wifi: support 64 bits timestamp in wmi mgmt completion
added support for 64 bits timestamp that come for each
tx wmi mgmt completion

Change-Id: Ida5ae0b82a97bde62999f1fb033480ba6c1560a0
2019-12-17 08:41:45 -08:00
Linux Build Service Account
972dc9cc63 Merge "qca-wifi: WMI change for 20TU prb resp" 2019-12-13 15:37:20 -08:00
Linux Build Service Account
75d4d008f3 Merge "qca-wifi: ATM Groups and Rules WMI support on Hawkeye" 2019-12-12 12:10:44 -08:00
Sumedh Baikady
49be9dbd3c qca-wifi: WMI change for 20TU prb resp
Add new flag to indicate 20tu bcast prb
response in FILS WMI.

Change-Id: I6481b2f915eada79c4a5a8155d3fd5d27ac8d55a
2019-12-09 18:58:05 -08:00
Subrat Mishra
9724d777dd qca-wifi: ATM Groups and Rules WMI support on Hawkeye
Airtime Management (ATM) Groups and Rules WMI support on Hawkeye.

This change will add WMI TLV support for Hawkeye.

CRs-Fixed: 2573295
Change-Id: I2f4cc132fd3568c4db5f3b70dcb05c1808dfd4a2
2019-12-07 08:59:30 -08:00
Shashikala Prabhu
0728ea78dc qca-wifi: Set WMI restricted 80+80 MHz as unavailable for pre-lithium chipsets
Restricted 80+80 MHz feature is not supported for pre-lithium chipsets.
Therefore set restricted 80+80 as unavailable.

Change-Id: I80603ea814d24a29588ec5d62a8ac2d0ac3b86ba
CRs-Fixed: 2580513
2019-12-05 22:36:39 -08:00