Commit Graph

11781 Commits

Author SHA1 Message Date
Jianmin Zhu
58b641e8d3 qcacld-3.0: Fix LFR3 assert for wrong peer ref count debug id
For peer map, in ol_rx_peer_map_handler->ol_txrx_peer_find_add_id
->ol_txrx_peer_find_hash_find_get_ref, peer ref count debug id is
PEER_DEBUG_ID_OL_PEER_MAP.

After LFR3 complete, host need delete old peer in
wma_roam_synch_event_handler ->wma_delete_bss->wma_remove_peer->
ol_txrx_peer_detach_force_delete->ol_txrx_peer_release_ref,
but peer ref count debug id passed is PEER_DEBUG_ID_OL_INTERNAL,
so peer ref count is failed to be decreased, the peer is failed
to be detached and released, new peer of roaming target AP can't
be created and attached.

Change-Id: I18572a8a8a4429c10a4862bb188b43aefb830a14
CRs-Fixed: 2311751
2018-09-11 14:57:14 -07:00
nshrivas
098013bd19 Release 5.2.0.96G
Release 5.2.0.96G

Change-Id: I1e1f039dd83880c65dc5f0a394148d3c6313b6b0
CRs-Fixed: 774533
2018-09-11 12:02:40 -07:00
gaurank kathpalia
00861f036c qcacld-3.0: Add src, and dst id support in WMA
In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: I73a0f11bd6ea4edb0d4c8871d9e217e16f756e58
CRs-Fixed: 2305991
2018-09-11 12:02:38 -07:00
gaurank kathpalia
3a7f25b00f qcacld-3.0: Add src, and dst id support in PE
In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: Iaa595f9676d469bef8e4d2e284c0b1d14c2321eb
CRs-Fixed: 2305979
2018-09-11 12:02:07 -07:00
gaurank kathpalia
9fb3f4b3cb qcacld-3.0: Add src, and dst id support in TX/RX
In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: Ia79d1e8ceda97f956eadcef50524b8307fcc247b
CRs-Fixed: 2305993
2018-09-11 12:01:57 -07:00
Ashish Kumar Dhanotiya
9f72df00fd qcacld-3.0: Add mtrace logging for P2P module
We are transitioning to new logging infrastructure
by using existing mtrace functionality.

Add new logging for complete P2P module.

Change-Id: If49d66ea42a48be0ac6c7a8b4c91d69ebd5fcef9
CRs-Fixed: 2308618
2018-09-11 12:01:40 -07:00
Ashish Kumar Dhanotiya
2af7f56cd4 qcacld-3.0: Enable mtrace logging
Enable the mtrace logging by adding CONFIG_ENABLE_MTRACE
flag in Kbuild and defconfig file.

Change-Id: I832ab008dc4b7eb7e3124382ebe395cb01464a20
CRs-Fixed: 2311833
2018-09-11 12:01:32 -07:00
Pragaspathi Thilagaraj
00bd8bc47f qcacld-3.0: Remove legacy ini for chainmask configs
Remove the legacy ini config values defined in hdd_cfg.
Call the mlme cfg get api to retrieve chainmask config values.
Remove the tx_chainmask_cck from cds_config as mlme object is
not initialized during cds_open. Call mlme cfg api during
wma_open to populate the tx_chainmask_cck value.

Change-Id: If48aeb62cf35e2e604be2b72845b8e98c5c313dc
CRs-Fixed: 2310382
2018-09-11 12:01:28 -07:00
Pragaspathi Thilagaraj
ce0a9d02ce qcacld-3.0: ADD MLME CFG items of Chainmask configs
Add the following chainmask INI configs to MLME cfg:
1. CFG_VHT_ENABLE_1x1_TX_CHAINMASK,
2. CFG_VHT_ENABLE_1x1_RX_CHAINMASK,
3. CFG_TX_CHAIN_MASK_CCK,
4. CFG_TX_CHAIN_MASK_1SS,
5. CFG_11B_NUM_TX_CHAIN_NAME,
6. CFG_11AG_NUM_TX_CHAIN_NAME,
7. CFG_TX_CHAIN_MASK_2G_NAME,
8. CFG_RX_CHAIN_MASK_2G_NAME,
9. CFG_TX_CHAIN_MASK_5G_NAME,
10. CFG_RX_CHAIN_MASK_5G_NAME

Introduce the basic infra APIs related to these configs from mlme

Change-Id: I56b56fe9ba5282b459bc03587c2cacbf91b12af3
CRs-Fixed: 2310381
2018-09-11 12:01:23 -07:00
nshrivas
1e5dcd6774 Release 5.2.0.96F
Release 5.2.0.96F

Change-Id: I84e4da8f0b463c922aff84b81a95053db5569b58
CRs-Fixed: 774533
2018-09-11 08:44:08 -07:00
Liangwei Dong
8030a53419 qcacld-3.0: allow STA SAP SCC on DFS
If sta_sap_scc_on_dfs_chan = 1, we
allow the SAP on STA's DFS chan.

Change-Id: I6d74f0db2247d3746047de7c65197d6634c4c6bb
CRs-Fixed: 2309846
2018-09-11 08:44:08 -07:00
Qiwei Cai
ba95ce632f qcacld-3.0: Featurize BUILD_DIAG_VERSION
Featurize BUILD_DIAG_VERSION to compile out to save memory.

Change-Id: Ib6b6c8d197556a9457e600dd5e802f7e50f6242d
CRs-Fixed: 2301487
2018-09-11 08:44:03 -07:00
Dundi Raviteja
04037a171f qcacld-3.0: Scanning failed due to reassociation is in progress
If driver gets connect command with bssid hint, fast reassoc command
is sent to FW and roaming_in_progress is set to 1. In another thread
while disconnecting, vdev down is sent to FW. As vdev is down fast
reassoc command fails in FW and host will not get response, so
roaming_in_progress will never set to 0.

To address this issue, set roaming_in_progress to 0 after disconnection.

Change-Id: If9c64568353ed01a161cc47c6261f4190c0fb93c
CRs-Fixed: 2305830
2018-09-11 08:43:59 -07:00
nshrivas
821a6d0385 Release 5.2.0.96E
Release 5.2.0.96E

Change-Id: I642b8843205d945f926c4504e61ccd75ebe92c5d
CRs-Fixed: 774533
2018-09-11 03:49:00 -07:00
gaurank kathpalia
d9ee9f2481 qcacld-3.0: Add src, and dst id support in SYS/CFG
In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: I869e14830b2f57b951033ada5957594fac7bc4c2
CRs-Fixed: 2305994
2018-09-11 03:49:00 -07:00
nshrivas
fb10e8f2dd Release 5.2.0.96D
Release 5.2.0.96D

Change-Id: I5926bbc71ce0451299a7b23fef2a76e0b1800ab2
CRs-Fixed: 774533
2018-09-10 23:51:52 -07:00
Will Huang
24d272baff qcacld-3.0: Remove unneeded csr_nonscan_pending_ll_remove_entry()
csr_nonscan_pending_ll_remove_entry() is not a correct API to
remove command from non-scan pending queue, it always return
false and fail to insert command to local list.

The correct API to remove an entry is csr_release_command(), no
need to check entry when insert to local list.
Remove the wrong API csr_nonscan_pending_ll_remove_entry().

Change-Id: I6c81f5d4ae57ceb6ebf2eec0a63859d0c1f12cb1
CRs-Fixed: 2308863
2018-09-10 23:51:51 -07:00
Rachit Kankane
b57ea618f2 qcacld-3.0: Allocate DFS buffers dynamically
Disable WLAN_DFS_STATIC_MEM_ALLOC for Genoa

Change-Id: Ie035c9f327dccbe4c2cc10f2354d1b23c7890675
CRs-Fixed: 2312050
2018-09-10 23:51:47 -07:00
nshrivas
af6cbcb23a Release 5.2.0.96C
Release 5.2.0.96C

Change-Id: Ic04c3d1528b379ab3bc1f654af680a41914c420d
CRs-Fixed: 774533
2018-09-10 20:41:26 -07:00
Abhishek Singh
1df508847a qcacld-3.0: Refactor mlme code to integrate SAP start fail and restart
Divide and refactor mlme functions to integrate vdev state
machine for SAP restart and start fail.

Change-Id: I824df69e126d4647a156bc10570689f6b0822b06
CRs-Fixed: 2309284
2018-09-10 20:41:26 -07:00
Abhishek Singh
2904a6ac79 qcacld-3.0: Refactor mlme code to integrate SAP stop vdev SM
Divide and refactor mlme functions to integrate vdev state
machine for SAP stop.

Change-Id: Id9841b1a87f2f3c1c2816dae8b2a183ac04791a9
CRs-Fixed: 2309264
2018-09-10 20:41:22 -07:00
Abhishek Singh
dfa69c397a qcacld-3.0: Refactor mlme code to integrate SAP start vdev SM
Divide and refactor mlme functions to integrate vdev state
machine for SAP start.

Change-Id: Id4419261cb1ba88754eded9fd780cca60f1f5db7
CRs-Fixed: 2309240
2018-09-10 20:41:19 -07:00
Kiran Kumar Lokere
427a20f452 qcacld-3.0: Set the aggr size to FW during BA buff size config
Set the aggregation size to FW with BA buffer size value to
update the number of packets in aggregation.

Change-Id: I5d120b60c3dfb4b6953222da5516e793dd3fb40d
CRs-Fixed: 2301335
2018-09-10 20:41:10 -07:00
nshrivas
5424d46cc6 Release 5.2.0.96B
Release 5.2.0.96B

Change-Id: I7f7dc16756e3175ccb3f4755feda246d7d739dd0
CRs-Fixed: 774533
2018-09-10 11:54:11 -07:00
Pragaspathi Thilagaraj
f81a8f0ad4 qcacld-3.0: Remove is_vdev_valid flag from the vdev structure wma_txrx_node
The flag is_vdev_valid and vdev_active serve the same purpose,
they are used to prevent the race condition where wmi vdev level
command gets posted to FW after vdev is deleted. Both the flags
are set to true in wma_vdev_attach when the vdev is created and
set to false in wma_vdev_detach where the vdev delete command is
sent to fw.

So remove is_vdev_valid flag and replace it with the existing
vdev_active flag.

Change-Id: I5199bc7d473470fd9f16320d323f86257a24ae19
CRs Fixed: 2312321
2018-09-10 11:54:11 -07:00
nshrivas
78ae2493a9 Release 5.2.0.96A
Release 5.2.0.96A

Change-Id: I8fc84687cbd32e89538989b208ddbd8f6b2c52bd
CRs-Fixed: 774533
2018-09-10 04:25:22 -07:00
Qiwei Cai
36bd9ded7b qcacld-3.0: Disable CCX for genoa to save memory
Disable feature CONFIG_QCOM_ESE (CCX) in genoa
config file to save memory.

Change-Id: I2a00be3f9baf976a132f5aaa051e0e7b0935f50c
CRs-Fixed: 2307614
2018-09-10 04:25:21 -07:00
nshrivas
4683c01f1a Release 5.2.0.96
Release 5.2.0.96

Change-Id: I68b55d64c4083c2cb6e89c0ad6007aff77d10e92
CRs-Fixed: 774533
2018-09-08 07:37:55 -07:00
Jianmin Zhu
c78aa31570 qcacld-3.0: Add flag of using enhancements to serialization or not
Enhancements to serialization:
Permit cmd of different vdev can execute concurrently etc.

Change-Id: I6e30f6f73067fd93a7c1f44d4e8310e8557a6a68
CRs-Fixed: 2308582
2018-09-08 07:37:55 -07:00
nshrivas
3595b0acf4 Release 5.2.0.95Z
Release 5.2.0.95Z

Change-Id: I2ec4834ce582d9e60c627d2f334ada8a1de905fc
CRs-Fixed: 774533
2018-09-07 23:23:45 -07:00
Dustin Brown
1a20b08cd1 qcacld-3.0: Remove DRIVER_MODULES_OPENED
The "open" state only comes into play once, when the wlan driver is
first loaded. It represents a driver state that is neither fully up, nor
down, as the soc has been probed, but many internal data structures have
not been initialized yet. After the first interface up operation,
however, the driver moves to the "enabled" state, and can never re-enter
the "open" state.

This half-up driver state causes a number of difficult to deal with side
effects, without adding much value. Simply remove the state, instead moving
straight into the "enabled" state on wlan load instead. Thus, moving
into the idle "closed" state after wlan load will look exactly the same
as it does  after the last interface is downed.

Change-Id: I4ec1268eb491fec04a78b90e51c6e616d95e019e
CRs-Fixed: 2295921
2018-09-07 23:23:44 -07:00
Srinivas Girigowda
3dce784021 qcacld-3.0: HDD: Fix checkpatch return void warnings
Fix checkpatch return void warnings.
void function return statements are not generally useful.

Change-Id: I62f8720940a455345becdfa4043f1f5fdac9769d
CRs-Fixed: 2311614
2018-09-07 23:23:40 -07:00
Srinivas Girigowda
d241288a14 qcacld-3.0: HDD: Fix checkpatch braces issues
Fix checkpatch braces issues.

Change-Id: I0019cd51e9df1c99b67220b44fb1044d46747c9f
CRs-Fixed: 2311614
2018-09-07 23:23:36 -07:00
Srinivas Girigowda
a19eafd1ba qcacld-3.0: HDD: Fix checkpatch open brace issues
Fix checkpatch open brace issues.

Change-Id: Ia7590ad80e03b7abb2ae7d6ca364a04ef198c3c3
CRs-Fixed: 2311614
2018-09-07 23:23:32 -07:00
Srinivas Girigowda
5033534f74 qcacld-3.0: HDD: Fix checkpatch line spacing issues
Fix checkpatch line spacing issues.

Change-Id: Ib107ef27c2d39c84113b50c5d6cd4fb778f62ed4
CRs-Fixed: 2311614
2018-09-07 23:23:28 -07:00
Srinivas Girigowda
683726a56b qcacld-3.0: HDD: Fix checkpatch code indent issues
Fix checkpatch code indent issues.

CRs-Fixed: 2311614
Change-Id: Iee0010a4a78f7da094a7459fd60a952277edec4b
2018-09-07 23:23:24 -07:00
nshrivas
3fd7e09281 Release 5.2.0.95Y
Release 5.2.0.95Y

Change-Id: I4d4533a6898054837f0fc3d1e196c0a0e9e165a4
CRs-Fixed: 774533
2018-09-07 19:02:24 -07:00
Dustin Brown
07901ecb55 qcacld-3.0: Rename hdd_pdev to pdev
The name 'hdd_pdev' is misleading, since it is not actually an HDD pdev
context. Rather, it is the Object Manager pdev context. Rename hdd_pdev
to pdev for consistency, and to make room for HDD to have its own pdev
context.

Change-Id: Ie27e4b21d83865474bd464ba2c3948a0684de29b
CRs-Fixed: 2311497
2018-09-07 19:02:23 -07:00
nshrivas
333af62ff4 Release 5.2.0.95X
Release 5.2.0.95X

Change-Id: Ib10ebc2e6dec3720429b8929e4be808a4918256c
CRs-Fixed: 774533
2018-09-07 17:22:46 -07:00
Dustin Brown
89fa06ec3a qcacld-3.0: Rename hdd_vdev to vdev
The name 'hdd_vdev' is misleading, since it is not actually an HDD vdev
context. Rather, it is the Object Manager vdev context. Rename hdd_vdev
to vdev for consistency, and to make room for HDD to have its own vdev
context.

Change-Id: I6186d010404c0a7b1e25590d87e5350195faba80
CRs-Fixed: 2311435
2018-09-07 17:22:45 -07:00
nshrivas
6001532924 Release 5.2.0.95W
Release 5.2.0.95W

Change-Id: I76fd3e3a2206d81671eb9c2a8a5237214735d06f
CRs-Fixed: 774533
2018-09-07 13:57:26 -07:00
Dustin Brown
6470aba31f qcacld-3.0: Cancel iface_idle_work in HDD exit
The interface idle timeout work is started at the very end of the SoC
probe process. During rmmod, this timer is proactively canceled, but a
race between probe and rmmod means this cancel is not deterministic. The
mirror operation to probe is remove, so cancel this work at the
beginning of the remove process. This preserves symmetry between probe
and remove, and also deterministically cancels the work, since probe and
remove are properly synchronized.

Change-Id: Idfd68c0ed638dbe810db72d64f301018db45d522
CRs-Fixed: 2309533
2018-09-07 13:57:25 -07:00
nshrivas
86cba282c6 Release 5.2.0.95V
Release 5.2.0.95V

Change-Id: I46b4fb870b7e06181981629519dfaf17981444bd
CRs-Fixed: 774533
2018-09-07 09:25:27 -07:00
Qiwei Cai
1c52ef67ba qcacld-3.0: Optimize struct reg_table_entry definition
Optimize struct reg_table_entry definition by means of
alignment and data type declarations to save memory.

Change-Id: Ib97541b0868416d1d797d8326e265e9789a040da
CRs-Fixed: 2301744
2018-09-07 09:25:26 -07:00
Will Huang
26a0a83c53 qcacld-3.0: Remove cds_is_target_ready() to prevent race condition
Currently if target is not ready, vdev stop req use check
cds_is_target_ready() in wma_fill_vdev_req(), while peer related API
uses wmi_handle->wmi_stopinprogress.

As wmi_handle->wmi_stopinprogress is set after target ready flag, the
vdev stop req is dropped while peer delete is sent to firmware. This
leads to bss peer delete sent without vdev stop.

Remove cds_is_target_ready() in wma_fill_hold_req() and
wma_fill_vdev_req() so that only wmi_handle->wmi_stopinprogress is used
to detect firmware down.

Change-Id: I5a7fb886f8bbf9a10d25c6991a291bc4bd2bef48
CRs-Fixed: 2309680
2018-09-07 09:25:23 -07:00
nshrivas
71693e2802 Release 5.2.0.95U
Release 5.2.0.95U

Change-Id: Ief458dc762f2c35f059e220ecd24a47af2d7f36e
CRs-Fixed: 774533
2018-09-07 04:43:54 -07:00
Rajeev Kumar Sirasanagandla
4f20b67e7a qcacld-3.0: Add debugfs support for roam scan stats
Add debugfs entry to get last five roam scan stats info which includes
old bssid, new bssid, roaming candidates etc., for STA interface.

Change-Id: Ied66beb270d97b6e17a6116c1be0e82783094519
CRs-Fixed: 2203885
2018-09-07 04:43:53 -07:00
nshrivas
1a74df2b54 Release 5.2.0.95T
Release 5.2.0.95T

Change-Id: Ic9dc5531528abfad3a38f2e5da853bbcd8e89e1c
CRs-Fixed: 774533
2018-09-07 03:04:02 -07:00
Ashish Kumar Dhanotiya
12f682166b qcacld-3.0: Add ini to enable/disable Mtrace logging
Add ini to configure Mtrace log level for all the Modules.

Change-Id: I7b2a2d7c4ebeb9731365bd3a33c340ca74717944
CRs-Fixed: 2310401
2018-09-07 03:04:01 -07:00
Dundi Raviteja
1b469fdd1a qcacld-3.0: Remove iwpriv support for set ppdu duration
Remove iwpriv support for set_ppdu_duration.

Change-Id: Id80dc1938875ae55bd8ed6bf9a0b6841644aba6f
CRs-Fixed: 2301988
2018-09-07 03:03:58 -07:00