Commit Graph

16801 Commits

Author SHA1 Message Date
tinlin
a8193944ec qcacld-3.0: Possible null pointer dereference
cds_cfg is assigned the return value from function
cds_get_ini_config. cds_cfg may be null pointer. Add
null pointer check before cds_cfg is
dereferenced.

Change-Id: I184c0a589fa660c5c49cd951986ad918cbc42bcd
CRs-Fixed: 2518433
2019-09-02 02:31:13 -07:00
nshrivas
cff99af254 Release 5.2.0.146J
Release 5.2.0.146J

Change-Id: I5d074d2ae25bb7fd19d7fb78a328dbe36fbf531e
CRs-Fixed: 774533
2019-08-31 04:26:39 -07:00
Alan Chen
abd1947c43 qcacld-3.0: Add timing profiling log for runtime PM operations
Add timing profiling log for runtime PM operations such that we can
know how much time each operation is taking.

Change-Id: Iad2aca8e8bb2f0dadc14d24e3a5c2b03938df9df
CRs-Fixed: 2518935
2019-08-31 04:26:38 -07:00
nshrivas
de9238b30e Release 5.2.0.146I
Release 5.2.0.146I

Change-Id: I93a27a66522740a747db6ad546b7046b09442948
CRs-Fixed: 774533
2019-08-31 02:13:01 -07:00
Tushnim Bhattacharyya
9f94d78a66 qcacld-3.0: Replace channel with frequency in csr_roamstart_bssparams
Replace channel ID with frequency in struct csr_roamstart_bssparams.

Change-Id: I826db5eea09fd7b5789c4907168d30186e5d5435
CRs-Fixed: 2518017
2019-08-31 02:13:01 -07:00
CNSS_WLAN Service
3685ef90af Merge "Release 5.2.0.146H" into wlan-cld3.driver.lnx.2.0 2019-08-30 16:24:09 -07:00
CNSS_WLAN Service
3fcb07f060 Merge "qcacld-3.0: Use frequency for channel operation" into wlan-cld3.driver.lnx.2.0 2019-08-30 16:24:07 -07:00
CNSS_WLAN Service
f824a5022b Merge "qcacld-3.0: Lower the TSF sync interval for SAP mode" into wlan-cld3.driver.lnx.2.0 2019-08-30 16:24:06 -07:00
CNSS_WLAN Service
c5a50d8973 Merge "Release 5.2.0.146G" into wlan-cld3.driver.lnx.2.0 2019-08-30 16:24:04 -07:00
CNSS_WLAN Service
8454570459 Merge "qcacld-3.0: Check the p2p roc timer state by acquiring timer lock" into wlan-cld3.driver.lnx.2.0 2019-08-30 16:24:03 -07:00
nshrivas
64c96b1d5c Release 5.2.0.146H
Release 5.2.0.146H

Change-Id: Id261a63dcf0f6f893a9a40e709821493507075f3
CRs-Fixed: 774533
2019-08-30 16:02:56 -07:00
Rajeev Kumar Sirasanagandla
e796a60fd0 qcacld-3.0: Use frequency for channel operation
As a part of 802.11ax amendment, 6GHz band operation is added.

Since the 6 GHz channel numbers are overlapping with existing 2.4GHz
and 5GHz channel numbers, use frequency to identify unique channel
operation instead of channel number. Channel frequency is unique across
bands.

As a part of above requirement, in the existing WMI interface handlers
and related functions, wherever missing, add frequency attributes to
identify unique channel operation.

Change-Id: I3853d6e64e63eb219282afac4f56ccf398b0a04f
CRs-Fixed: 2517897
2019-08-30 16:02:55 -07:00
Subrat Dash
f75d3d3ecf qcacld-3.0: Lower the TSF sync interval for SAP mode
The TSF deviation is more than 100ns when the capture interval is 100sec.

Lower the interval to 1sec to keep the drift  within limit of 100us.

Change-Id: I2a6f7bf2d06d5d67854cbab6b582009f2cec39bf
CRs-Fixed: 2515981
2019-08-30 16:02:51 -07:00
CNSS_WLAN Service
f58f5d9e3f Merge "qcacld-3.0: check napi_gro_recevie result before do gro flush" into wlan-cld3.driver.lnx.2.0 2019-08-30 08:48:46 -07:00
nshrivas
7c0492af68 Release 5.2.0.146G
Release 5.2.0.146G

Change-Id: Ieb1726eed5a880032a955f15909e4984ae07d5f2
CRs-Fixed: 774533
2019-08-30 04:51:34 -07:00
Bala Venkatesh
7fb389e576 qcacld-3.0: Check the p2p roc timer state by acquiring timer lock
In function p2p_process_scan_complete_evt roc timer state is checked
using the api qdf_mc_timer_get_current_state, this api does not take
timer lock while returning the state. In other thread, if the timer
state is changed then the wrong timer state is returned in current thread.
And wrong timer state can lead to destroying roc timer without stopping
it synchronously.

Call qdf_timer_stop_sync api without checking the timer state
as the timer already checking the state by taking a timer lock.

Change-Id: Idb22e405178f2e0f1ed80b7c8aac04170e5b69bc
CRs-Fixed: 2511768
2019-08-30 04:51:34 -07:00
nshrivas
65ad144099 Release 5.2.0.146F
Release 5.2.0.146F

Change-Id: I04040268e075945df3d2669ebd4e2af974766326
CRs-Fixed: 774533
2019-08-29 22:10:55 -07:00
Tushnim Bhattacharyya
c71d7d46c9 qcacld-3.0: Include wmi.h on the correct header file
Include wmi.h in wma header file.

Change-Id: I08d53ff111d2f0bc9f7a4046d27174cf3e3f8aa7
CRs-Fixed: 2514755
2019-08-29 22:10:55 -07:00
Rajeev Kumar
e51bc40f96 qcacld-3.0: Remove CCE HW filter from runtime pm suspend
FW is not reay to support CCE HW filter during active mode
hence remove it.

Change-Id: Iba14c788362dad4d2f76eda8e06849b6c8174519
CRs-Fixed: 2514049
2019-08-29 22:10:50 -07:00
Jinwei Chen
c1dc5c788c qcacld-3.0: check napi_gro_recevie result before do gro flush
Check napi_gro_recevie result before do napi_gro_flush when bus
bandwidth is idle (<18 Mbps), only if napi_gro_recevie result is
not GRO_DROP and GRO_NORMAL then do napi_gro_flush for each RX packet.

Change-Id: I8cd75fb680ad4cb13f8d8677136f51c5a0548b6d
CRs-Fixed: 2515794
2019-08-29 18:30:47 -07:00
nshrivas
56d50cca34 Release 5.2.0.146E
Release 5.2.0.146E

Change-Id: I94e0752d7220eca7ee0ef19f6a966df4c00c250f
CRs-Fixed: 774533
2019-08-29 10:51:57 -07:00
Hangtian Zhu
cf89c86e62 qcacld-3.0: Fix compile issue when CONFIG_CP_STATS is not enabled
Fix compile issue when CONFIG_CP_STATS is not enabled.

Change-Id: Ib5dd1e7107a5bd49ee3d187e283b5580d19c6adf
CRs-Fixed: 2516551
2019-08-29 10:51:56 -07:00
nshrivas
dea5317128 Release 5.2.0.146D
Release 5.2.0.146D

Change-Id: I03f7f9d6637f23229d616cec6a88834b3f73dc7d
CRs-Fixed: 774533
2019-08-29 07:45:45 -07:00
Lin Bai
8862bf7d81 Revert "qcacld-3.0: request firmware without userhelper"
This reverts change-id Ie40db69a24dc1e0b86f140ca1aad91bd3b10e95e.

The reverted changes was causing regression, that optional
firmware not loadable even it exists.

Change-Id: I02a45e9be635e4ce0787f0a24480e42129c59874
CRs-Fixed: 2516015
2019-08-29 07:45:45 -07:00
nshrivas
d36d4977e9 Release 5.2.0.146C
Release 5.2.0.146C

Change-Id: Ie8b2dd3aa78e093401e59ed2633da65c112fc8cf
CRs-Fixed: 774533
2019-08-29 04:33:52 -07:00
Nirav Shah
812a159948 qcacld-3.0: Fix return value of htt_rx_frag_pop_hl
Return number of msdus poped as return value for
htt_rx_frag_pop_hl to process fragmentation indication
correctly.

Change-Id: I104c04757aa8bfac5d6516b1455e1e0506b460a4
CRs-Fixed: 2419759
2019-08-29 04:33:52 -07:00
nshrivas
372d62d1c6 Release 5.2.0.146B
Release 5.2.0.146B

Change-Id: I95c4bdb2b386afbf0cb46757df3765fcc9e83e4a
CRs-Fixed: 774533
2019-08-29 02:53:46 -07:00
gaurank kathpalia
11bc67c606 qcacld-3.0: Clear sap ctx channel list in undo acs
Currently the sap ctx's channel list is not freed
as part of undo acs, and hence can lead to mem leak
when the do acs and SSR is triggered in parallel.
Scenario:-
1. Turn on SAP
2. Do SSR in parallel
3. Unload WLAN

Fix is to clear the channel list as part of undo
acs.

Change-Id: Ie8dcace1d32aeec2621e785d793290d70c194f62
CRs-Fixed: 2511752
2019-08-29 02:53:46 -07:00
Jinwei Chen
0dc383e4e2 qcacld-3.0: refine low Tput GRO logic
a. when T-put < 18Mbps, do GRO/GRO flush for each RX packet.
b. when T-put can kept stable (18Mbps ~ 60 Mbps) last >= 1 second ,
skip GRO flush logic.

Change-Id: Ic8075f10f72b479c6941d7ac12a71fd90f945094
CRs-Fixed: 2509672
2019-08-29 02:53:41 -07:00
nshrivas
5bd962786b Release 5.2.0.146A
Release 5.2.0.146A

Change-Id: I49d3f2fa96e0ac392a7ae076c440668b6e53151e
CRs-Fixed: 774533
2019-08-28 12:42:57 -07:00
Abhishek Ambure
532bf97191 qcacld-3.0: Refactor vdev delete code at wma layer
Before sending vdev delete command to target_if layer, attach vdev
delete params to wma_txrx_node's del_staself_req member in wma layer.
This helps while responding to vdev delete command in case wmi service
"wmi_service_sync_delete_cmds" is disabled.

VDEV delete command response is sent to upper layer even vdev_mlme
object is not found.

Change-Id: Idfd8b036ff1ea676dd3ad8be703512ff84f299b7
CRs-Fixed: 2510460
2019-08-28 12:42:57 -07:00
nshrivas
b96b544bde Release 5.2.0.146
Release 5.2.0.146

Change-Id: I85bbd95bc4cba3801331f81076204de64a0fc799
CRs-Fixed: 774533
2019-08-28 06:29:08 -07:00
gaurank kathpalia
821a5aea98 qcacld-3.0: Set max BW for each valid channel and send to FW
Configuration for Issue:-
DUT configuration:-
1. Configure DUT's country as US where channel 165 does
not support channel bandwidth of 40 mhz.
AP Configuration:-
1 Configure the AP in a country where channel 165
supports channel bandwidth 40MHZ.

Scenario of the issue:-
1.Connect to a diff AP on some channel x with same SSID,
and then roam to this AP.

Observation:-
The DUT would connect in 40 mhz to this AP instead of 20Mhz,
which violates the DUT's country reg rules.

Expectation:-
The DUT should re-connect only in 20Mhz on channel 165, or
only in max BW supported by reg in that country.

Issue:-
The DUT does not consider the max bandwidth allowed for the channel
in the country configured, and allow the re-association only
in the respective bandwidth.

Fix:-
Send the max BW supported by the channels in the current
reg domain to the FW so that it considers the max BW of the
channel and AP capability and then roam in the respective BW
only.

Change-Id: I1730d6c65d3dd305dcf2ebe340c3d5ad950761d7
CRs-Fixed: 2504900
2019-08-28 06:29:08 -07:00
Bala Venkatesh
a5c1eb8b36 qcacld-3.0: Reduce the log level
Reduce the log level from err or info to debug so that logs
are not printed on console.

Change-Id: I0d33c2a8f5b4bb4974656ac0d1eb6713a74cb5f4
CRs-Fixed: 2516281
2019-08-28 06:29:04 -07:00
nshrivas
8e471835f6 Release 5.2.0.145Z
Release 5.2.0.145Z

Change-Id: I58a5547c1a4f61ab382490ecfeb0c3b8e61cba1f
CRs-Fixed: 774533
2019-08-27 12:22:15 -07:00
stonez
5f9a622e30 qcacld-3.0: Including MPTA helper and Coex configuration feature
MPTA helper and Coex configuration features are not included
after latest system compilation updating. Modify configure
file qcs40x.snoc.perf_defconfig to include them.

Change-Id: I8ecad6c84bd4ca2d8e1b69f0cea14b61b2545ca3
CRs-Fixed: 2511723
2019-08-27 12:22:14 -07:00
nshrivas
d1ac195bb2 Release 5.2.0.145Y
Release 5.2.0.145Y

Change-Id: I448d1fb9f5f23892f6a3d663cc9918055fc7f5d1
CRs-Fixed: 774533
2019-08-26 12:26:49 -07:00
Pragaspathi Thilagaraj
85df61f0dc qcacld-3.0: Fix roam scan mode send during RSO update config
As part of RSO update config, roam scan mode is set to 4 before
the WMI_ROAM_SCAN_RSSI_THRESHOLD command is sent to the firmware.
And after WMI_ROAM_SCAN_RSSI_THRESHOLD is sent, the roam scan
mode value is again set back to 7(value 7 enables RSSI scan and
periodic scan). There is a very small window between these two
commands where BMISS event is received and firmware forwards it
to the host which causes a disconnection.

Fix is to disable sending roam scan mode to 4 before sending the
WMI_ROAM_SCAN_RSSI_THRESHOLD command.

Change-Id: I2c22308d711e71e67d132a0bd121aed66497998b
CRs-Fixed: 2508762
2019-08-26 12:26:48 -07:00
Abhinav Kumar
18285936bc qcacld-3.0: Don't Issue disconnect on roaming timer expiry
Currently Host issue a disconnect and cleanup for current AP,
even if the offloaded roaming feature has started, but has not
completed for some reason. This results in connection loss with
the current AP.

Fix is to call abort event SIR_ROAMING_ABORT in case of roaming
offload timeout in order to maintain the connection with the
current AP.

Change-Id: I4168f8aeb7a759896a5d93e1918ce6542e61b37e
CRs-Fixed: 2508449
2019-08-26 12:26:44 -07:00
nshrivas
8be8632d42 Release 5.2.0.145X
Release 5.2.0.145X

Change-Id: I9cf2da452634fd7f57d4a8b893458435d93402a2
CRs-Fixed: 774533
2019-08-26 06:35:43 -07:00
Abhinav Kumar
364c0cb339 qcacld-3.0: Dont process SYNC IND if ROAM STOP cmd already posted to WMA
Currently, HOST sets discon_in_progress flag after posting
ROAM_SCAN_OFFLOAD_STOP command to WMA for a session. In case of
disconnection in HOST while roaming in FW if ROAM SYNC IND from fw comes
to host after posting ROAM_SCAN_OFFLOAD_STOP command to WMA, host start
processing SYNC IND and FW start processing ROAM_SCAN_OFFLOAD_STOP
which will cause to cleanup/disconnect with new AP to which it has just
roamed. After this cleanup fw will send HO_FAIL.

Now host as part of roam sync indication sends PEER_REORDER_QUEUE_SETUP
for the deleted peer which results in firmware assert.

Fix is to set discon_in_progress flag to true before posting
ROAM_SCAN_OFFLOAD_STOP command to WMA in order to ignore ROAM SYNC IND
and return status as failure to fw.

Change-Id: Id5c787d5489a6c0722b090951db388484f94f2e9
CRs-Fixed: 2505851
2019-08-26 06:35:42 -07:00
nshrivas
5fa71d2489 Release 5.2.0.145W
Release 5.2.0.145W

Change-Id: Id54ae1a1e0c7ea630902c4a0c16178af6aaf220e
CRs-Fixed: 774533
2019-08-26 02:22:33 -07:00
Ashish Kumar Dhanotiya
6176bef9d3 qcacld-3.0: Free cached channel list with restore channels
When driver receives the command to disable the channels
it maintains a list of the channels which are disabled.
During SAP stop, driver restores the disabled channels
but it is not freeing the cache list. Now when again the
command is issued to disable the channels, driver is not
processing this command as it still has the channels in its
cached list which were disabled during previous command.
This results into failure of current command and all the
subsequent commands to disable the channels until the
cache list is not cleared with set_disable_channel_list
command with empty channel list.

To address above issue, clear the cache channel list
as soon as driver restores the channels on stop bss.

Change-Id: I6b8c7ba250ef38b892ab83621add45fbfc09a2cd
CRs-fixed: 2496642
2019-08-26 02:22:32 -07:00
nshrivas
bf6258d77f Release 5.2.0.145V
Release 5.2.0.145V

Change-Id: I9a01ad9db6f9497ea9359599a74cdfd24fe9970d
CRs-Fixed: 774533
2019-08-26 00:26:46 -07:00
Ajit Pal Singh
407d6d84b8 qcacld-3.0: Deduct HTT credit from TXQ group also
In HL data path, when HTT credits are used outside the HL scheduler,
credits are getting deducted form target_tx credit only.
When CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL is enabled, credits
should be deducted from TXQ group also.

Change-Id: Ice4160043fc1d812686f8ce7ee310110299d2276
CRs-Fixed: 2485819
2019-08-26 00:26:46 -07:00
nshrivas
5d4daa69a4 Release 5.2.0.145U
Release 5.2.0.145U

Change-Id: I7664833f794310b2150e00ce63b963674cf60552
CRs-Fixed: 774533
2019-08-25 06:23:33 -07:00
gaurank kathpalia
5ffac61a8a qcacld-3.0: Copy the sap channel list to acs cfg chan list
Copy the sap channel list that is obtained after filtering
the channel list from all the checks like SRD, DFS
to maintain the sync between the ACS module, and the sap
channel select logic.

Change-Id: I78a835f700ab34fa81b9b748e6ad28ca3b726650
CRs-Fixed: 2513628
2019-08-25 00:46:07 -07:00
nshrivas
19aa021ae3 Release 5.2.0.145T
Release 5.2.0.145T

Change-Id: I050c065e16118e510542ace9ce6d3d6fcc15117c
CRs-Fixed: 774533
2019-08-23 16:36:22 -07:00
Kiran Kumar Lokere
25b3bf24b8 qcacld-3.0: Dont update WMA PMF capability per peer
WMA interface PMF capability is vdev configuration hence do not
update the capability in WMA interface based on peer capability.

Change-Id: I08b39b9bc631321aa77aa1ab3bcbf1841bb3dda1
CRs-Fixed: 2504060
2019-08-23 16:36:22 -07:00
nshrivas
6e86b5daea Release 5.2.0.145S
Release 5.2.0.145S

Change-Id: I61cc64e4fb7b61c6f4f4fb04b62b1b8ea3d8280b
CRs-Fixed: 774533
2019-08-23 14:49:49 -07:00