Commit Graph

16776 Commits

Author SHA1 Message Date
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
Srinivas Dasari
05bc2c2396 qcacld-3.0: Correct the order of arguments to roam_triggers_to_sme
Vdev_id and ENABLE_ROAM_TRIGGERS_ALL are passed to
hdd_send_roam_triggers_to_sme in reverse order. Pass them in
correct the order.

Change-Id: I79d2a843ee9f237620d31dbf91e3c57750e66e88
CRs-Fixed: 2514476
2019-08-23 14:49:48 -07:00
nshrivas
03b3ab3b5f Release 5.2.0.145R
Release 5.2.0.145R

Change-Id: Ia85f76438e25cb452e2dccc1d5b4dd3b1270695f
CRs-Fixed: 774533
2019-08-23 12:31:18 -07:00
Abhishek Singh
5606ee0fca qcacld-3.0: Use vdev cmd resp timer from vdev target if
As part of vdev target if convergence the new vdev command
resp time are defined in target if layer.

So use the vdev timer values from target if.

Change-Id: Ib74f91331e4cb470233e678ded9159e17045467e
CRs-fixed: 2513794
2019-08-23 12:31:17 -07:00
nshrivas
3f776ef5e9 Release 5.2.0.145Q
Release 5.2.0.145Q

Change-Id: I2da89c76c3e38dbc866108bb4d308f75df4b9e73
CRs-Fixed: 774533
2019-08-23 10:14:59 -07:00
Rakshith Suresh Patkar
30bb8c17ea qcacld-3.0: Ignore invalid flush work call in hdd_mic_flush_work
As per current implementation, hdd_mic_flush_work makes a call
to qdf_flush_work irrespective of whether the work is initialized
or not.

Since flush_work() without INIT_WORK() is erroneous, ignore the call
to flush_work if work is not initialized.

Change-Id: Ib96439e1416188e643935a4ddaa13671d221c1e2
CRs-Fixed: 2514424
2019-08-23 10:14:59 -07:00
nshrivas
269efd2d67 Release 5.2.0.145P
Release 5.2.0.145P

Change-Id: I1b52384fe7241393b0a5a2732d42dd221d15034a
CRs-Fixed: 774533
2019-08-23 08:21:43 -07:00
Bala Venkatesh
b184b77697 qcacld-3.0: Do not set the broadcast sta id to invalid
Currently, as part of ndi_delete broadcast sta id is set
to invalid. But set this sta id to invalid as part of
ndi delete response from FW.

Change-Id: I4df843c4bce1c06b5c62cfd932b681e3320e5341
CRs-Fixed: 2513607
2019-08-23 08:21:43 -07:00
nshrivas
faa3022c58 Release 5.2.0.145O
Release 5.2.0.145O

Change-Id: I931f8fda8c5f2388b4f048b766b4a261b69fb043
CRs-Fixed: 774533
2019-08-23 06:27:01 -07:00
Abhishek Singh
9a243e8054 qcacld-3.0: Remove unused set link states and functions
Set link state is not used now so remove unused set link states
and functions.

Change-Id: Idb1a40922b8a27a18864d7047983d456cc05bffa
CRs-fixed: 2514158
2019-08-23 06:27:01 -07:00
Nirav Shah
4474439d4c qcacld-3.0: Reset CAC state if another AP is not on 5GHz
In case of DBS, two AP can operate on different band together.
Current logic of resetting CAC state in sap_clear_global_dfs_param
function assumes that if two APs are up state then it must be SCC
scenario and resulting in dropping of tx packets if stop follwed by
start operation is performed on AP on DFS channel.

This change reset CAC state as part of stop AP if another AP is
operating on 2.4GHz in case of DBS operation.

Change-Id: I3f71606bf610d45184a0fa81d2b9d9a6c11f72e8
CRs-Fixed: 2509808
2019-08-23 06:26:56 -07:00
nshrivas
6fe161e272 Release 5.2.0.145N
Release 5.2.0.145N

Change-Id: Iabc65b47ceaa364d1358ad3259c7599dc8708c09
CRs-Fixed: 774533
2019-08-23 03:48:36 -07:00
Srinivas Dasari
ac5312a188 qcacld-3.0: Validate the size of each frequecy sub attribute
QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST is a nested attribute which
carries frequencies as sub attributes. Validate the size of each
sub attribute to make sure it's of size uint32_t. Extract the
frequencies if all are of valid size. Return failure if an
invalid length attribute is found.

Change-Id: I1743c2dbef640b28b78504a548edbb70f4f29e49
CRs-Fixed: 2513822
2019-08-23 03:48:35 -07:00
bings
3d18e556d0 qcacld-3.0: Select dfs channel sap to handle radar event
If radar event is indicated in station vdev, it may be dropped by
station vdev since station does not support DFS master.

Select first sap vdev started in dfs channel to handle radar event.

Change-Id: I74229eb02c6ae6d81042df6b736d231db26253b5
CRs-Fixed: 2512836
2019-08-23 03:48:13 -07:00
nshrivas
b32ee5707a Release 5.2.0.145M
Release 5.2.0.145M

Change-Id: I1ec912f06b80819486e57361a97e612d809a45ed
CRs-Fixed: 774533
2019-08-23 01:43:14 -07:00
Srinivas Dasari
b5d9f3e106 qcacld-3.0: Send scan period received from vendor command to firmware
Scan period is configured through the DRIVER command
SETROAMSCANPERIOD currently. Add provision to set the same through
the roam subcmd and the attr QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD

Change-Id: I3dd56f56ac8bc4ba48a88f8df292e9d4d5545fed
CRs-Fixed: 2509656
2019-08-23 01:43:13 -07:00
Nirav Shah
a7fa192dbd qcacld-3.0: Fix DHCP indication to FW feature for broadcast exchange
Use "client mac address" in bootp protocol to get
station id to handle scenarion when
DHCP exchanges(discover/offer/request/ack) happens
with broadcast address as destination address.

Change-Id: Ie233b2ffed1533f0a45fded199bb09649e48b4dd
CRs-Fixed: 2506023
2019-08-23 01:43:06 -07:00
Srinivas Dasari
a33fdd8376 qcacld-3.0: Send full roam scan period to userspace upon querying
Userspace may query for current configured full roam scan period
through the vendor cmd QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET
and the attribute QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD.
Fill the full scan period in the same attribute and send as reply

Change-Id: I0ab8b3d7b469515244ce27accc852c6d93514b2d
CRs-Fixed: 2508804
2019-08-23 01:43:00 -07:00
Srinivas Dasari
9ad9e25ed6 qcacld-3.0: Send roam control status to userspace upon querying
Userspace may configure and enable roam control and query for
the status. Add provision to send the same as vendor cmd reply

Change-Id: I7b82f85fa560c974eedc5115276bd87a84f9d3a0
CRs-Fixed: 2508802
2019-08-23 01:42:55 -07:00
nshrivas
2454638d42 Release 5.2.0.145L
Release 5.2.0.145L

Change-Id: Ifede718438805bf44e7926ec7d6964bd6749ddc7
CRs-Fixed: 774533
2019-08-22 20:14:06 -07:00
Alan Chen
2239688fd3 qcacld-3.0: Remove NaN offloading option
Firmware only supports offloading in STA and P2P CLI mode, so remove
NaN offloading option.

Change-Id: I1adb8ead32a0d45a34f72590c33309b17d6c80c0
CRs-Fixed: 2512426
2019-08-22 20:14:05 -07:00
nshrivas
109938e4ea Release 5.2.0.145K
Release 5.2.0.145K

Change-Id: Id686a5d44389cb29d8b4b67d9470c935b7457f2b
CRs-Fixed: 774533
2019-08-22 16:21:40 -07:00
Alan Chen
91525f33ba qcacld-3.0: Move hif context assignment to right before its usage
When wifi is off, unnecessary error logs are printed. To avoid these logs
from printing, move hif context assignment to right before its usage.

Change-Id: Ie2313f796674885a7a518693a09877df4e6cb817
CRs-Fixed: 2513187
2019-08-22 16:21:40 -07:00
nshrivas
5be799467d Release 5.2.0.145J
Release 5.2.0.145J

Change-Id: If3d8795069e60fba2be1f9382ac5cf365f26dd79
CRs-Fixed: 774533
2019-08-22 12:35:10 -07:00
Abhishek Ambure
40972f18dd qcacld-3.0: Clean up set link code
Legacy code for set link is removed. Set link code is refactored.

Change-Id: I97c5fde76b8529d21c16c7650e32c91dffaae2f2
CRs-Fixed: 2513049
2019-08-22 12:35:09 -07:00
Abhinav Kumar
4f959589b8 qcacld-3.0: Convert channel to freq in tpAddBssParams structure
Topic: 6ghz_chan_to_freq

Convert channel to freq in tpAddBssParams and wma_vdev_start_req
structure to avoid duplicate channel numbers in 6ghz, and 2.4ghz
operation.

Change-Id: I8f657a566d1555efa07bf9155b84c37431c57f86
Crs-Fixed: 2511312
2019-08-22 12:34:54 -07:00