提交線圖

8959 次程式碼提交

作者 SHA1 備註 日期
Tallapragada Kalyan
0ee16f8b94 qcacmn: use proper printk specifier for printing 261 stats
change the printk specifier from %d to %u to print
261 (rx_stats) stats

CRs-Fixed: 2722219
Change-Id: I714b5f018446911d57b34b21b3b4dd7595671a7a
2020-07-01 05:42:48 -07:00
Abhishek Singh
e2097ddb09 qcacmn: Replace different struct of SISD with struct wlan_ssid
There are different version of SSID structure used in driver, replace
them with struct wlan_ssid.

Also move struct element_info from scan module to generic structures.

Change-Id: Ia32f82d943980c23b4ff478f5a06c5c053036de5
CRs-Fixed: 2721872
2020-07-01 00:26:20 -07:00
Chaithanya Garrepalli
bd70ec6350 qcacmn: Rearrange fields in dp_tx_desc to avoid padding
Current dp_tx_desc structure size is 136 bytes,
re-arranged the fields to fit in exactly 128 bytes to
align with number of descriptor per page and page offset
bit maps

Also add a compilation assert on tx desc size

Change-Id: Ifcb18a9da637cb71c0427b56ad4054d2206ddfbb
2020-07-01 00:26:16 -07:00
Ashish Kumar Dhanotiya
e7e012dc4d Revert "qcacmn: Update freq range 5170-5250 to indoor only for APL9"
This reverts commit I7c52fc76b5a8d6a47d515025d05b110332347246.

Change-Id: I3e24134e02a5a1a3f4a0f901b1c0742c21bd52fa
CRs-Fixed: 2719624
2020-06-30 14:58:25 -07:00
Mohammed Siddiq
61d47a3695 qcacmn: Use IS_ENABLED for the definition of kernel module
Add code to use IS_ENABLED for CONFIG_WCNSS_MEM_PRE_ALLOC
kernel modules and remove inclusion of reduntant header
file cnss.h.

Change-Id: If1d098c7c6f326d12700f06318909a7fc0e7895a
CRs-fixed: 2702368
2020-06-30 12:30:17 -07:00
phadiman
c90e1dc372 qcacmn: Fix incorrect verbose level debug print
If QDF_TRACE is called with wrong verbose level then
the actual print is supressed and a error log will be
printed indicating wrong verbose level

This change is introduced because of an issue wherein
the prints flooded with wrong verbose level and could
not identify the incorrect caller

Add change to concatenate the actual print along with
failure message to help identify such incorrect callers

CRs-Fixed: 2716564
Change-Id: I19c4e80958c1ab5d621eea3a6d32308ce4c51558
2020-06-30 12:30:13 -07:00
Abhishek Singh
62fb09b241 qcacmn: Fix race between ser psoc close and vdev destroy handler
In wlan_serialization_psoc_disable the timers are freed without
holding lock and at the same time the
wlan_serialization_cleanup_vdev_timers from vdev destroy handler
is accessing the timers, this result in cleanup_vdev_timers
accessing freed timer memory resulting in assert.

Fix is to free timer memory while holding timer lock. Also as the
lock can be used by vdev delete handler after freeing in
psoc_disable, move the init and deinit of the lock to psoc create
and destroy handlers respectively.

Change-Id: Idf822a91022de6b51c7ee1895f71b6fb94fedd72
CRs-Fixed: 2721064
2020-06-30 02:34:01 -07:00
Guisen Yang
4676e72c02 qcacmn: Change nbuf unmap API when free rx nbuf
The DMA Map/Unmap was restricted to buffer size in rx process.
But the Unmap API was not changed when free nbuf in rx desc,
apply the new unmap API.

Change-Id: Id10d746776aa9e41ef3425e166ba0207851358d6
CRs-Fixed: 2716690
2020-06-30 02:33:58 -07:00
gaurank kathpalia
9fa7cd067f qcacmn: Update the Copyright year in bss score files
Update the Copyright year in new bss score file.

Change-Id: Iaafcd74fe7f4b2c1d71e98c2884333d14f5777ff
CRs-Fixed: 2720551
2020-06-29 23:46:59 -07:00
gaurank kathpalia
92354bad4d qcacmn: Update the Copyright year in new connection manager files
Update the Copyright year in new connection manager file.

Change-Id: I599d9fb56ac74d6147774f03683fbef19598d637
CRs-Fixed: 2720551
2020-06-29 23:46:56 -07:00
Vevek Venkatesan
d04ad531c8 qcacmn: fix format specifier in qdf_dpt_dump_stats_debugfs
Fix proper format specifier for qdf_debugfs_printf in
qdf_dpt_dump_stats_debugfs.

Change-Id: I3d357cb677c6419e13c3c2333b43d4cae2f2df41
CRs-Fixed: 2717408
2020-06-29 21:35:31 -07:00
Surabhi Vishnoi
d2c2a6aec6 qcacmn: Add support for CFR in adrastea target
Add the init and deinit CFR pdev api for adrastea target type.
cfr_adrastea_init_pdev api enables the CFR feature if both host and
firmware supports the feature, initialises the cfr pdev structure
and streamfs.

Also during allocation of memory requested by firmware, skip smaller
chunks memory allocation for CFR capture requested memory as firmware
expects contiguous memory.

Change-Id: Ib893dc8a845fea990a11e95e98d8a656f7df12ba
CRs-Fixed: 2687057
2020-06-29 19:15:56 -07:00
Debasis Das
dd686ad391 qcacmn: Enable EWMA for appropriate kernel version
EWMA-related macros are available from version 4.3.0 onwards.

Change-Id: I94ffae3a72894e7494903445f752e926942f9af7
2020-06-29 07:44:00 -07:00
Debasis Das
a4ea8ba2ec qcacmn: Use 0 as pci_id for kernel version 4.18 and beyond
From kernel version 4.18 onward, the API to fetch pci_id
is deprecated.Assign "0" to pci_id for such case.

Change-Id: Ifb370999402ddc0889d982e251a7f8dea877b17d
2020-06-29 04:59:55 -07:00
Aniruddha Paul
ea81d9ac47 qcacmn: Add qdf API wrapper for ktime_real_get
Add qdf wrapper API to the ktime_real(). This gives the
current wallclock in ktime format.

Change-Id: If869985007225606075fb936593d5798ea0746e9
2020-06-29 02:38:43 -07:00
Chaithanya Garrepalli
eb6c7aa478 qcacmn: decrement num ast entries in hash clean up
In wifi down path decrement the ast count while force
freeing AST hash table

Change-Id: If98785eada2866c860ad4769fa744ca29d93dfbe
2020-06-29 02:38:40 -07:00
Hariharan Basuthkar
5816c50032 qcacmn: 11ax draft 6.1 6G channelization update
In 11ax draft 6.1, the 6G starting frequency has been shifted by 10 MHz
to the right from 5940 to 5950. Make the following changes in various
variables and structures in the regulatory component:

1. Add a macro SIX_GHZ_NON_ORPHAN_START_FREQ.
2. Add an orphan channel frequency - 5935 MHz to the chan enum.
3. Shift every enum in channel_enum by 10 MHz to the right.
4. Shift MIN_CHANNEL_6GHZ and MAX_CHANNEL_6GHZ by 10 MHz on the right.
5. Shift every center frequeny by 10 MHz on the right in
   bonded_chan_40mhz_list_freq, bonded_chan_80mhz_list_freq,
   bonded_chan_160mhz_list_freq.
6. Shift every center frequeny by 10 MHz on the right in channel_map_us,
   channel_map_eu, channel_map_japan, channel_map_global and
   channel_map_china channel maps.
7. Change 6G starting frequency from 5940 to 5950 for operating class
   131 to 135 in the global_op_class table.
   table.
8. Add operating class 136 in the global_op_class table.

Change-Id: I3c82e2eb98cdaf0ff8754bd990529a1833276304
CRs-Fixed: 2704977
2020-06-27 22:45:43 -07:00
Arun Kumar Khandavalli
49f2ec70bc qcacmn: Remove load/unload log in diag reporting
There are multiple places in the driver where the diag events
are reported and if the unload has started these diag events
are logged and dropped if there is storm of diag events because
of some thread message flushing this logging of the message will
cause excessive logging.

Remove the log as driver is unloading and it won't be sending it
userspace logging either.

Change-Id: Ie4c5caf44ad509da213f1bc76ff6ef6dfeecde2d
CRs-Fixed: 2716899
2020-06-27 17:31:14 -07:00
Lincoln Tran
a86b23ee68 qcacmn: Update scheduler_msg callback type
This fixes a CFI failure in callback assignment.

Currently, the callbacks in scheduler_msg are void function
pointers. Update them to have a defined type as
scheduler_msg_process_fn_t to catch type mismatch during
compilation.

Other changes to conform to this new type include:
	1. Cast callback to qdf_mc_timer_callback_t when
	   referencing, and back when assigning
	2. Cast wlan_serialization_generic_timer_cb to
	   take fit into scheduler_msg
	3. Cast target_if_vdev_mgr_rsp_timer_cb to fit
	   into scheduler_msg

Change-Id: I052bc54826d377ae92f5bcc80ca08afb6f5e01e3
CRs-fixed: 2719975
2020-06-27 06:18:28 -07:00
Pragaspathi Thilagaraj
acc60e6ede qcacmn: Add support to send WMI_VDEV_SET_PCL_CMDID command
For STA + STA roaming, instead of WMI_PDEV_SET_PCL_CMDID, the
WMI_VDEV_SET_PCL_CMDID needs to be sent.
Declare the corresponding send_vdev_set_pcl_cmd wmi tlv ops for
sending the WMI_VDEV_SET_PCL_CMDID command.
Also add changes to read the peer create confirmation and dual
sta roam feature support firmware capability.

Change-Id: I21456cb2e4c0b2bb66bf341539d2070677c49d16
CRs-Fixed: 2702849
2020-06-27 06:18:25 -07:00
Alok Kumar
f90dff9449 qcacmn: Fix compilation issue due to uninitialized variables
After enabling FISA, getting compilation issue in WHUNT due to
-Werror=maybe-uninitialized.

Fix this issue by initializing the uninitialized variables.

Change-Id: I4bdb76ba445630fb09df440f587291f0c3e382ec
CRs-Fixed: 2717632
2020-06-27 03:57:39 -07:00
gaurank kathpalia
9375922ab2 qcacmn: Add basic infra for connection manager
Add basic infra for connection mgr state machine
to handle connect and disconnect requests.

Change-Id: I671f62f66ab511912886c1da84c3a69be0032872
CRs-Fixed: 2707901
2020-06-26 22:48:35 -07:00
Arun Kumar Khandavalli
6d768494e5 qcacmn: Ignore sched watchdog timeout incase of recovery
For some targets, whenever the recovery is triggered in the scheduler
thread context, in the same context the firmware dump collection
could also happen and can more time than the watchdog timeout for
the same.

So check and ignore watchdog timeout when the recovery is already
inprogress.

Change-Id: I0e74e73139a83c6361407fe2eef8d6d0cf2a5d8c
CRs-Fixed: 2718984
2020-06-26 20:18:46 -07:00
Lincoln Tran
a6029b9c59 qcacmn: Add case when to disable burst scan
Currently, file transfer from DUT to comp device is slower
than expected. Disable burst scan in STA+GO/CLI scenario to
resolve this.

Change-Id: Ieded4aaa54f233cc288d6b6f3ef7051bfe5ec81f
CRs-fixed: 2703285
2020-06-26 20:18:43 -07:00
Alan Chen
fd5e8cd07c qcacmn: Define a new attribute for Optimized Power Management
Define a new attribute for Optimized Power Management.

Change-Id: Id7480be9ff9c8aa2c9a20ea890b9ae0fd2b52f19
CRs-Fixed: 2705539
2020-06-26 20:18:39 -07:00
Utkarsh Bhatnagar
2ebcbdbe31 qcacmn: Add boot time log print in scm_add_update_entry
Add boot time log print in scm_add_update_entry so that it
should be printed for every beacon/probe response.
This will be useful in getting the value filled in
NL80211_BSS_LAST_SEEN_BOOTTIME.

Change-Id: I0d348db551ffc9f765d0b6d8e8654573b7b70654
CRs-Fixed: 2716941
2020-06-26 16:48:47 -07:00
Utkarsh Bhatnagar
1035366308 qcacmn: Add only frames with valid channel in scan cache
Kernel reject the beacon/probe resp frame with invalid channel in
DS,HT info and HE IE, but same frame is added in the scan cache
and when mlme refer this frame, connect issues are seen due to
invalid channel.

Thus do not add the entry in scan cache.

Change-Id: Ib2891f95034b04be26c5feefed7c4354d8bb367a
CRs-Fixed: 2708975
2020-06-26 11:09:02 -07:00
Santosh Anbu
3e9a617176 qcacmn: Add build infra for CM convergence FR
Add basic build infra for connection manager's candidate selection
logic to include BSS scoring.

Change-Id: I5fad6b0ade4793061c9c0fe64cfdbd9aa6620336
CRs-Fixed: 2707106
2020-06-26 11:08:59 -07:00
gaurank kathpalia
506f49a0ff qcacmn: Move scoring logic to connection manager
Move bss scoring logic to connection manager.

Change-Id: If8484ec2fa8b3e2d153ae4a6caed76f3354b8965
CRs-Fixed: 2707106
2020-06-26 11:08:56 -07:00
Rachit Kankane
e85e67ce9b qcacmn: Add no interband mcc service bit
Add WMI service bit for targets which doesn't
support interband MCC.

Change-Id: Ia7c93ed0b53dfb539457167722bc3b04fb27032b
CRs-Fixed: 2715598
2020-06-26 05:37:40 -07:00
Rachit Kankane
4d124bfb1d qcacmn: Set preferred mode per target
Set preferred HW mode by default to HW_MODE_DETECT or HW_MODE_MAX
based on target type, also update preferred hw mode and num_band_to_mac
accordingly.

Change-Id: Iab231b182b54af15d09714e6cf3426c145d4ac3c
CRs-Fixed: 2711504
2020-06-26 05:37:38 -07:00
Yeshwanth Sriram Guntuka
86084af159 qcacmn: Do runtime_get_sync in htc_kick_queues
Interface down is received when wlan is in runtime
suspend state. The wmi commands that have to be sent
as part of this cause a runtime resume and the htc tx
queues are processed within runtime_resume callback.
The work that is scheduled for this tries to do a
runtime_get as part of htc_try_send but the runtime_status
is still in resuming state causing EINPROGRESS return
value. This will result in the wmi commands to be not sent
to firmware and eventually resulting wmi command timeout.

Fix is to do runtime_get_sync in htc_kick_queues.

Change-Id: I1f4ba1c3dad32f7c407c4416529424be6d4bf18d
CRs-Fixed: 2711998
2020-06-25 18:14:01 -07:00
Yeshwanth Sriram Guntuka
87b8babcec qcacmn: Add fisa skip related params in dp_soc
Add fisa params related to skipping fisa in dp_soc

Change-Id: I0f52e1a293226aecebce4dc9fe1e61c6484a9489
CRs-Fixed: 2718133
2020-06-25 16:47:00 -07:00
Abhishek Ambure
d5aa3cc44f qcacmn: Add support for roam capability report event
Firmware sends WMI_ROAM_CAPABILITY_REPORT_EVENTID event asynchronously
to host during FW init. It indicates FW roam related capabilities to host.
scoring_capability_bitmap in the event indicates firmware candidate scoring
capabilities. Host uses scoring_capability_bitmap to calculate roam score.

Change-Id: Idd2cad257e5d783166bd8cc0418dd4f394989295
CRs-Fixed: 2716781
2020-06-25 16:46:57 -07:00
Neha Bisht
f224d5dc91 qcacmn: Introduce counters per endpoint to improve HTC debuggability
To introduce counters htc_send_cnt and htc_comp_cnt per endpoint to
enhance pdev level debugging in HTC path.

Change-Id: I8d31e3a533e0f8de4c89d3609b20c148aef3a4ff
2020-06-25 15:08:09 -07:00
Hariharan Basuthkar
d5b80abab6 qcacmn: Make regulatory APIs common for both WIN and MCC
Make reg_is_disable_for_freq and reg_is_disable_ch common for both WIN
and MCC, by moving the definition from reg_utils.c to
reg_services_common.c and declaration from reg_utils.h to
reg_services_common.h.

Change-Id: I6425c99b403580836d1ee41839086f4df3971091
CRs-Fixed: 2718047
2020-06-25 13:17:57 -07:00
Sourav Mohapatra
b510a1e642 qcacmn: Use QDF sleep instead of wait_for_timeout in cancel scan
In the function ucfg_scan_cancel_sync the driver uses
qdf_wait_single_event to wait for the scan event to be cancelled.
This timer is affected by the timer multiplier which causes unwarranted
wait times.

Replace the qdf_wait_single_event with a simple qdf_sleep.

Change-Id: Ib4149dff5677956f5c8bc48f7f72d2bf5eda664f
CRs-Fixed: 2695569
2020-06-25 13:17:54 -07:00
Pragaspathi Thilagaraj
f49eeb2735 qcacmn: Remove roam related wmi files from cmn
Move the roam related wmi files to qcacld-3.0 folder.

Change-Id: I4146646cbb73c38e03de490f8dee66439ae85a68
CRs-Fixed: 2714613
2020-06-25 03:49:58 -07:00
Vignesh U
e5f0e052df qcacmn: Address compilation issue
The function "ucfg_dfs_is_hw_pulses_allowed" should return bool and has
a compilation error
"return' with no value, in function returning non-void".

Return the bool type "false" when the dfs is a NULL object.

CRs-Fixed: 2715235
Change-Id: I8717aaedd1ac8208ce6257721d5890b82ca13a8f
2020-06-24 15:04:52 -07:00
Debasis Das
72199d32de qcacmn: Use verion-appropriate kernel API
The API of_get_pci_domain_nr() is deprecated from
kernel version 4.8 onwards.Hence, alternate API should
be used.

Change-Id: I95decbd2a855ec16f013168c8678816c8a017c81
2020-06-24 15:04:48 -07:00
Utkarsh Bhatnagar
0b2b5e9e78 qcacmn: Don't reset cipher_caps in crypto_reset_prarams
Remove cipher_caps from wlan_crypto_reset_prarams as it
is FW capability and should only be set once when vdev
is created.

Change-Id: I8beab7ead2217ead532bfaacc0eea133d90cdd0e
CRs-Fixed: 2716728
2020-06-24 15:04:44 -07:00
bings
88cd0dfcea qcacmn: Remove redundant CONFIG_CRYPTO_COMPONENT
There should be no reason to have macro CONFIG_CRYPTO_COMPONENT.
Replace CONFIG_CRYPTO_COMPONENT with WLAN_CONV_CRYPTO_SUPPORTED.

Change-Id: Ief2b015a8e48c85c383470c669254abfa7404585
CRs-Fixed: 2705994
2020-06-24 11:43:01 -07:00
nakul kachhwaha
89a67f807e qcacmn: iot_sim beacon content change update
Adding support for beacon content change.

Change-Id: I8f804dd7d2cbbe7d3b7dea58841d7321f28101c7
CRs-Fixed: 2694454
2020-06-24 03:35:01 -07:00
nakul kachhwaha
c5cdd1eaaf qcacmn: iot_sim add support for drop operation
Adding support for iot_sim drop operation.
Drop operation will be handled in Rx direction.

Change-Id: If2e1c9663a69fcd16715cdd1d28639a388ea1c0c
CRs-Fixed: 2686309
2020-06-24 03:34:57 -07:00
Jayachandran Sreekumaran
cb709cad18 qcacmn: iot_sim code cleanup in wmi
Refactor code and put iot_sim code under feature flag.

Change-Id: Id4720d63ae174d9f4490285e6eb69ab2972ccd28
CRs-Fixed: 2707122
2020-06-24 03:34:54 -07:00
Jayachandran Sreekumaran
81b11d79c5 qcacmn: umac code clean up for iot_sim
Put iot_sim code under simulation feature flag.

Change-Id: Iccfb84c53172d5a4cccd00490d5720d99097401e
CRs-Fixed: 2707113
2020-06-24 03:34:51 -07:00
Jayachandran Sreekumaran
f71f32ada9 qcacmn: iot_sim code cleanup
Optimize the content change operation
code for action and non-action type frames.

Change-Id: Ie3719715eebbe465851f4b84ffb6deefbab81844
CRs-Fixed: 2684013
2020-06-24 03:34:48 -07:00
Vevek Venkatesan
f6f4cfc6f2 qcacmn: move runtime_pm related code to common section
Move all the Runtime PM related HIF code changes to the
common section, from if_pci.
So that, could be leveraged for other HIF interfaces
like if_ipci to use.

Change-Id: Id8303acd519ab07f307311971fb55c45476f30bf
CRs-Fixed: 2699419
2020-06-24 03:34:44 -07:00
Arun Kumar Khandavalli
a8c41c0988 qcacmn: add generic hweight16,32 implementation
In driver there are multiple implementations to read the number of
1's set, have a generic qdf implementation to get the same.

Change-Id: Idf769c221b33e867720943fb8c42158edd9600de
CRs-Fixed: 2716525
2020-06-24 03:34:41 -07:00
Karthik Kantamneni
1c487473e3 qcacmn: Use hif_debug to print irq details in hif_pci_configure_grp_irq
Currently hif_info is used for printing irq details
in hif_pci_configure_grp_irq, this may cause excessive
logging so use hif_debug log type instead.

CRs-Fixed: 2696837
Change-Id: I75d79f6040ecb1fe30b2192ce3a34685af5370ab
2020-06-23 13:30:49 -07:00