Commit Graph

10488 Commits

Author SHA1 Message Date
Abhishek Singh
53791fa58b qcacld-3.0: Remove dead code related to driver acs
Support of ini to control driver acs is removed, therefore remove
related code which is no longer used.

Change-Id: I3d279de67ee5f36b785e4516edd9f14484311f5c
CRs-Fixed: 2284253
2018-07-31 15:25:37 -07:00
nshrivas
842e48f930 Release 5.2.0.90R
Release 5.2.0.90R

Change-Id: I2a7b91810ae680066f79e3b76cf50a7ec3fc1aa2
CRs-Fixed: 774533
2018-07-31 12:58:50 -07:00
Jeff Johnson
354c20bce8 qcacld-3.0: Implement WLAN_FEATURE_SARV1_TO_SARV2
SARv1 to SARv2 upgrade can have the following problem:
1) Userspace application was written to use SARv1 BDF entries
2) Product is configured with SAR V2 BDF entries

So introduce WLAN_FEATURE_SARV1_TO_SARV2 which has the logic:
If this feature is enabled, and if the firmware is configured with SAR
V2 support, and if the incoming request is to enable a SAR V1 BDF
entry, then the WMI command is generated to actually configure a SAR
V2 BDF entry.

CRs-Fixed: 2282071
Change-Id: I1f4c65d0315b56af6646ca1d5491eaa9c1f732a5
2018-07-31 12:58:46 -07:00
Jeff Johnson
f917638b7d qcacld-3.0: Save sar version in the HDD context
SAR version information is now being populated in struct wma_tgt_cfg.
Keep a copy of the information in the HDD context for local reference.

Change-Id: I7bc943fc71b651baeb56e4966d97efca2cccbf4e
CRs-Fixed: 2282071
2018-07-31 12:58:42 -07:00
Jeff Johnson
0918f242d1 qcacld-3.0: Add SAR version to struct wma_tgt_cfg
HDD needs to know the SAR version running in firmware so add that
information to struct wma_tgt_cfg.

Change-Id: Idcb79921cb417a923ced8b6cfed2672bee03eaf1
CRs-Fixed: 2282071
2018-07-31 12:58:39 -07:00
nshrivas
0ad44e9bec Release 5.2.0.90Q
Release 5.2.0.90Q

Change-Id: I08897469513a656cbcf56afe7969e9d695e7087b
CRs-Fixed: 774533
2018-07-31 10:39:37 -07:00
Dustin Brown
b0b240a984 qcacld-3.0: Reset txrx handles during STA deinit
HDD currently reset various txrx handles during the deinit of an access
point (AP) interface, but fails to do so for station interfaces. This
can lead to a user-after-free while changing the interface mode from
station to something else. Reset the txrx handles during deinit for
station interfaces.

Change-Id: I189089fabefb9c430da493c0c99473179d02b5cd
CRs-Fixed: 2283532
2018-07-31 10:39:36 -07:00
nshrivas
f0a4e5796a Release 5.2.0.90P
Release 5.2.0.90P

Change-Id: I9ca768973b2e08fed434799272b15c181f90ece2
CRs-Fixed: 774533
2018-07-31 06:10:27 -07:00
Paul Zhang
7d1d5361c5 qcacld-3.0: update rx nss per num_rf_chains
The host will update the rx nss after it gets the
rx nss info from the operating mode notification
IE. Currently, it does not check the num rf chains
of the dut. It causes the difference between
software and hardware.

Change-Id: I5d6852f8e2928cc99fc88ccface3bc4abe97f273
CRs-Fixed: 2280003
2018-07-31 06:10:27 -07:00
nshrivas
f7253dc8f2 Release 5.2.0.90O
Release 5.2.0.90O

Change-Id: I85ad29bcef6feabd4f90413c6dc23606329fbd6b
CRs-Fixed: 774533
2018-07-31 00:46:37 -07:00
Dustin Brown
3cfe0d47d0 qcacld-3.0: Check peers in hdd_check_for_leaks
Before checking for other kinds of resources leaks, check to ensure all
objmgr peers have been properly freed.

Change-Id: Ifb1016be456c26e140f324fc3c858bd4a5fa6a27
CRs-Fixed: 2285186
2018-07-31 00:46:36 -07:00
Mohit Khanna
b8b6e58eb4 qcacld-3.0: Remove peer AST entries on peer delete
During peer removal, call cdp_peer_teardown to
make sure all the peer AST entries are removed.
This also marks the peer->delete_in_progress flag.

Change-Id: Ibe4a0244cadc2b8073e4e71a925a615447d00933
CRs-Fixed: 2287663
2018-07-31 00:46:33 -07:00
nshrivas
213ce15a42 Release 5.2.0.90N
Release 5.2.0.90N

Change-Id: I050df516a62c132e5d255c5555177cfecf3c05aa
CRs-Fixed: 774533
2018-07-30 18:26:25 -07:00
Pragaspathi Thilagaraj
7dba4a7af8 qcacld-3.0: Remove csr_release_command_roam call in csr_roam_issue_connect
In the function csr_queue_sme_command, we memset the memory for
the roam command to 0 in case of failure and release the memory
to the global command pool. But in csr_roam_issue_connect,
csr_release_command_roam is called again in case of failure,
and this can lead to memset of memory to 0 that is released to
global command pool.

Remove the redundant csr_release_command_roam in the function
csr_roam_issue_connect and the call to csr_reinit_preauth_cmd in
csr_roam_enqueue_preauth.

Change-Id: Ifab3551dd3b2dbb2d135b5488f7b09f422648abb
CRs-Fixed: 2280904
2018-07-30 18:26:24 -07:00
nshrivas
45530e7ce9 Release 5.2.0.90M
Release 5.2.0.90M

Change-Id: Ide69bd005ae7c81426010f0a12503508d3719006
CRs-Fixed: 774533
2018-07-30 16:34:07 -07:00
Jun Wang
92cd83692b qcacld-3.0: remove time-consuming debug log
print format "pS" in module will call module_address_lookup in
kernel, which will disable preempt. This could result in some
performance issues, like block rt task vsync_retire_work and
then cause janks.

Change-Id: I524b03315df7b1f6464912d2c9ce74b8dc33ea1a
CRs-Fixed: 2267779
2018-07-30 16:34:06 -07:00
nshrivas
1c1d573ae6 Release 5.2.0.90L
Release 5.2.0.90L

Change-Id: Ibba84e234674417a474d24f6a6fc917c1934fe3b
CRs-Fixed: 774533
2018-07-30 14:08:30 -07:00
Liangwei Dong
4bfffb4487 qcacld-3.0: Fix SAP 11g no ht protection failure
1.Scan entry uses MGMT_SUBTYPE_BEACON to specify
the frame type. Correct lim_handle_sap_beacon
to use MGMT_SUBTYPE_BEACON to check frame type.

2.lim_allocate_and_get_bcn return corrected
pkt and pkt info.

Change-Id: I607be66a376f5121d100db52a55faf32c088a94a
CRs-Fixed: 2282274
2018-07-30 14:08:29 -07:00
nshrivas
407ed04a41 Release 5.2.0.90K
Release 5.2.0.90K

Change-Id: If8c9e4e2c8f0bf954a9600c37e298905b4997e23
CRs-Fixed: 774533
2018-07-30 09:53:13 -07:00
Vignesh Viswanathan
cbbc358095 qcacld-3.0: Modify Default value for Switch to 11n OUI ini
Currently defined default value for gActionOUISwitchTo11nMode leads
to vendor APs which don't require the WAR also to be identified
for forcing 11n connection.

Fix the default value to limit the WAR to only the required vendor
AP.

Change-Id: Icecd5a3a92a35eb4d0a7eb4ae156aed7dcfbfb86
CRs-Fixed: 2276057
2018-07-30 09:53:13 -07:00
Jianmin Zhu
a0d8e00d02 qcacld-3.0: Fix double free in csr_roaming_state_config_cnf_processor
The beacon ie of AP to connect in sme cmd may be freed and set to
NULL in csr_roam if csr_roam_issue_join failed,
scan_result->Result.pvIes may be different in start and end of
csr_roaming_state_config_cnf_processor.

Fixed by using a local bool val to mark whether beacon ie is new
malloced and need free.

Change-Id: I04ec952273a28a3b8a215dd6812bba213ff5309a
CRs-Fixed: 2284311
2018-07-30 09:53:10 -07:00
nshrivas
5d54cb1ba4 Release 5.2.0.90J
Release 5.2.0.90J

Change-Id: If4bf0838f82fb5bec7eafe3999d57504f8aabf66
CRs-Fixed: 774533
2018-07-30 02:53:32 -07:00
Dundi Raviteja
e232cf1691 qcacld-3.0: Use request manager framework for LL stats response event
We are transitioning the usage of LL stats response event
to request manager framework.

Change-Id: Ice8b3d53beb47b345ed569f2b4bf790e9f5ce506
CRs-Fixed: 2274933
2018-07-30 02:53:31 -07:00
nshrivas
afb27b7d6c Release 5.2.0.90I
Release 5.2.0.90I

Change-Id: Ifad7bd6264088058521f817f7ab2a00f916fa579
CRs-Fixed: 774533
2018-07-30 00:49:03 -07:00
Ashish Kumar Dhanotiya
2853ba04f7 qcacld-3.0: Implement GET_DISABLE_CHANNEL_LIST driver command
Propagation from prima to qcacld-3.0

Implement GET_DISABLE_CHANNEL_LIST driver command to get disable
channel list programed by SET_DISABLE_CHANNEL_LIST driver command.

Change-Id: Ib741e1cd23cef105314325aaec86feb50f36a181
CRs-Fixed: 2206336
2018-07-29 10:11:51 -07:00
nshrivas
41dbf327c7 Release 5.2.0.90H
Release 5.2.0.90H

Change-Id: I276414694d189b280ddaf89343ffe4a24aecae8d
CRs-Fixed: 774533
2018-07-27 12:35:00 -07:00
Dundi Raviteja
cc95c56e15 qcacld-3.0: Remove hdd context validation in wlan_hdd_disconnect
If driver is removing while STA is in connected state, disconnect
is not happening because hdd context validation will not be success
while driver unload is in progress.

To address this issue, remove validation of hdd context in
wlan_hdd_disconnect to allow disconnection while driver unload
is in progress.

Change-Id: Ia10aa9237a30490f3085458ab38ce27c4eeebaf0
CRs-Fixed: 2284198
2018-07-27 12:35:00 -07:00
Ajit Pal Singh
8184e939b6 qcacld-3.0: Init tx_mutex in pdev_attach
Initialise spinlock: tx_mutex in pdev_attach instead of
pdev_post_attach as it may be accessed
in ol_tx_flow_ct_unpause_os_q() just after FW download.

Change-Id: I9de2eacd573420d23bc3a71a52dfb27bc1cfdab5
CRs-Fixed: 2285503
2018-07-27 12:34:57 -07:00
nshrivas
1449648511 Release 5.2.0.90G
Release 5.2.0.90G

Change-Id: I73d219578f50ed8109899b35b0cf0d120273ce77
CRs-Fixed: 774533
2018-07-27 09:09:43 -07:00
Nirav Shah
790d943594 qcacld-3.0: Add per module logging macros without function/line info
Add per module logging macros without function/line info
to avoid adding function/line info where it is not required.

Change-Id: Id808fef623b82cec38fc31071ef384f3ff0c92da
CRs-Fixed: 2278874
2018-07-27 09:09:42 -07:00
Ashish Kumar Dhanotiya
3f78e68b92 qcacld-3.0: Add support to disable channel list
Propagation from prima to qcacld-3.0

Add support to disable channel list received with command
"SET_DISABLE_CHANNEL_LIST".

As part of this command, number of channels and list
of that many channels should be given. When SAP comes up, disable
the channels received in the command. If any of the interface
is up on any of the channel from the list, first disconnect
the interface and start the interface on the new channel.

Change-Id: I3c7810bfde78878a3e60570a13bf2741e1da599b
CRs-Fixed: 2205305
2018-07-27 09:09:37 -07:00
nshrivas
dbd9972463 Release 5.2.0.90F
Release 5.2.0.90F

Change-Id: I9ffa1f0e531f6354cb016a3fcecdcc493a09b82e
CRs-Fixed: 774533
2018-07-27 06:42:10 -07:00
Ashish Kumar Dhanotiya
7e345d04dd qcacld-3.0: Add data validation for avoid frequency command
Currently in avoid frequency vendor command, data validation
is not being done, since this data comes from userspace driver
should not be using this data pointer without validation.

To address this issue add validation for data pointer and data
length received in driver.

Change-Id: I7b56e2ddcbcb5e98dd93d152033db48063e772d3
CRs-Fixed: 2252793
2018-07-27 06:42:10 -07:00
nshrivas
b256327523 Release 5.2.0.90E
Release 5.2.0.90E

Change-Id: I8e051111deb91d4db8fb86d3933c2697791a7e31
CRs-Fixed: 774533
2018-07-26 15:36:53 -07:00
Pragaspathi Thilagaraj
b37dad385f qcacld-3.0: Serialize the command eSmeCommandDelStaSession
The command eSmeCommandDelStaSession issues vdev delete to
firmware. As this command eSmeCommandDelStaSession is not
serialized, this may issue delete vdev before the peers for the
vdev are deleted, resulting in fw assert. Serialization should
be brought in for this command, so that first eSmeCommandRoam
command will do vdev_stop-->remove_peer-->vdev_down and then
eSmeCommandDelStaSession will be processed which will send vdev
delete.

Post the command eSmeCommandDelStaSession to the serialization
module and WMA_DEL_STA_SELF_REQ will be posted from the sme
eSmeCommandDelStaSession handler.

Change-Id: I60fcbf622b961162c647db3638b5e019c5231971
CRs-Fixed: 2270982
2018-07-26 15:36:53 -07:00
nshrivas
13f092aea5 Release 5.2.0.90D
Release 5.2.0.90D

Change-Id: I0a6403de38f56a7bb3fc762636cf41fd261236d8
CRs-Fixed: 774533
2018-07-26 12:23:20 -07:00
Jeff Johnson
bffd274ba3 qcacld-3.0: Remove session_id from nan_datapath_peer_ind (Step 2)
Currently struct nan_datapath_peer_ind contains the following:
	uint8_t session_id;

This is problematic since "session_id" is a legacy concept and should
not be used in the converged project. Fortunately this field does not
actually serve any purpose. But in order to cleanly remove it a 3-step
approach is required.

Step 1 (qcacld Change If6cf48ccbfe87b23b275720df51c6cc26af9fa5e):
Remove the logic from the converged NAN code which currently reads
this field and logs the value.

Step 2 (this change):
Remove the logic from the legacy NAN code which sets this field.

Step 3 (qcacld Change Ibeb8007c96ae1a902bfd7dd99a42ba4a291a1dc6):
Remove the session_id field from struct nan_datapath_peer_ind.

Change-Id: I2819556d48a9dd901158aaa04d6bda9c36f33012
CRs-Fixed: 2284400
2018-07-26 12:23:19 -07:00
nshrivas
4cfe234197 Release 5.2.0.90C
Release 5.2.0.90C

Change-Id: Ibdc15249bd77d5c5ccac285042ccde81132e85fa
CRs-Fixed: 774533
2018-07-25 22:57:58 -07:00
Jianmin Zhu
d46bc4657f qcacld-3.0: Avoid buffer overflow in wma_process_bip
If 11w is enabled, mmie should be included in broadcast
multicast rmf, length check need consider it to avoid buffer
overflow

CRs-Fixed: 2270117
Change-Id: I6c2ebe18fb5b6e4246ba6d28c1dbc55175279e30
2018-07-25 22:57:58 -07:00
nshrivas
96dca9e04b Release 5.2.0.90B
Release 5.2.0.90B

Change-Id: Ie7c9aad55985811dffe1930c639aec8d83fc674a
CRs-Fixed: 774533
2018-07-25 14:43:34 -07:00
Dustin Brown
29533f2ca1 qcacld-3.0: Check for vdev/pdev leaks during SSR
Currently, all resource leaks are skipped during the SSR reinit stage.
However, recently added vdev and pdev leak checks apply equally as well
to SSR reinit. During SSR do as many resource leak checks as possible,
while retaining the entire set for normal use cases.

Change-Id: I33248a9fb0fbacddf9ea8682ff984290712c29d3
CRs-Fixed: 2284384
2018-07-25 14:43:33 -07:00
nshrivas
a935b1377f Release 5.2.0.90A
Release 5.2.0.90A

Change-Id: Ic45fe0b3253c9999aac494306a4f5c255602cb3e
CRs-Fixed: 774533
2018-07-25 11:52:11 -07:00
Nachiket Kukade
ef86101690 qcacld-3.0: Remove code handling blacklist and whitelist OUI
This is an older implmenetation of handling blacklist and whitelist
OUI's. Hostapd doesn't send this information in start_ap now. There
is a possible out of bound memory access happening while parsing an
IE with this code. Remove the code to avoid security risk.

Remove redundant code handling blacklist and whitelist OUI IE's.

Change-Id: Ib16d26d6766bcffb53de34dca77073a3e986eee2
CRs-Fixed: 2239897
2018-07-25 11:52:08 -07:00
nshrivas
6ca91d61e1 Release 5.2.0.90
Release 5.2.0.90

Change-Id: I2e1443baee607e7b366a24a1eed5a1dc680c87e5
CRs-Fixed: 774533
2018-07-25 09:40:44 -07:00
Rachit Kankane
154559caad qcacld-3.0: Reduce MAX_BBS and MAX_PEERs for Genoa
Max 3 BSS sessions and 10 peers are required in Genoa.
To support this, reduce SIR_MAX_SUPPORTED_BSS to 3 and
SIR_SAP_MAX_NUM_PEERS to 10.

Change-Id: Ic773b5b38193d446288321c2dfd740f6de57704e
CRs-Fixed: 2283825
2018-07-25 09:40:43 -07:00
Pragaspathi Thilagaraj
ea97fe9ff1 qcacld-3.0: Fix mem leak in wma_roam_synch_frame_event_handler
The function wma_roam_synch_frame_event_handler, memory is
allocated for iface->roam_synch_frame_ind.bcn_probe_rsp,
iface->roam_synch_frame_ind.bcn_reassoc_req,
iface->roam_synch_frame_ind.bcn_reassoc_rsp when the wmi event
WMI_ROAM_SYNCH_FRAME_EVENT is received. This event is followed
by a WMI_ROAM_SYNCH_EVENT from the firmware where the host
copies the bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp to
the structure roam_synch_ind_ptr and frees the allocated memory.
In this flow memory leak can happen in following cases:
 1. Firmware sends multiple cascade of WMI_ROAM_SYNCH_FRAME_EVENT
the host allocates bcn_reassoc_req, bcn_reassoc_rsp and
bcn_probe_rsp with out freeing the previous instance.
 2. Firmware sends WMI_ROAM_SYNCH_FRAME_EVENT with either
bcn_reassoc_req or bcn_reassoc_req or bcn_probe_rsp NULL or all
the three are NULL.
 3. Firmware sends WMI_ROAM_SYNCH_FRAME_EVENT having
bcn_reassoc_req bcn_reassoc_req and bcn_probe_rsp. Then it sends
the WMI_ROAM_SYNCH_EVENT with non zero bcn_reassoc_req_len or
bcn_reassoc_rsp_len or bcn_probe_rsp length.
 4. Host doesn't free the allocated memory in
wma_roam_synch_frame_event_handler during failure cases.

Check if received iface->roam_synch_frame_ind has non NULL
bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp and free the
same before allocating new memory. Also free the allocated
bcn_probe_rsp, bcn_reassoc_req, bcn_reassoc_rsp in failure
return cases.

Change-Id: I2b76769d09fd61929f7837cb8661d778cd2f881a
CRs-Fixed: 2282413
2018-07-25 09:40:39 -07:00
Nirav Shah
d6fa0f8cd8 qcacld-3.0: Add compilation flag for enter/exit macros
Map all enter/exit log macros to enter/exit QDF TRACE macro
to provide option to compile out enter/exit logs if required.

Change-Id: I0c6cd633705e820fcfeb47e3f81a3522c9ef1974
CRs-Fixed: 2274850
2018-07-25 09:40:33 -07:00
nshrivas
9151602490 Release 5.2.0.89Z
Release 5.2.0.89Z

Change-Id: Ia0ac605b12c874a1d33be20078aeb3c645dd2fc3
CRs-Fixed: 774533
2018-07-25 07:49:49 -07:00
Vignesh Viswanathan
6177c7e8ec qcacld-3.0: Disable sending of solicited BTM query frame by default
Change the btm_offload_config INI default to disable the sending of
solicited BTM query frame from the host.

Change-Id: Ie1d1eeff268e445ed19c62413712ab2178c7ba54
CRs-Fixed: 2279249
2018-07-25 07:49:49 -07:00
nshrivas
412ddb6b0a Release 5.2.0.89Y
Release 5.2.0.89Y

Change-Id: I10ea03bebf949d267f8634d756b48490903355bf
CRs-Fixed: 774533
2018-07-25 01:24:21 -07:00
Dundi Raviteja
eab3b8d472 qcacld-3.0: Add support to send MWS-COEX configurations to FW
Add support to send below two MWS-COEX configurations to FW
1. Enable/disable MWS-COEX 4G (LTE) Quick FTDM
2. Set MWS-COEX 5G-NR power limit

Change-Id: I14656ced91c9dec2be85590e6f6c1e7497505a28
CRs-Fixed: 2265352
2018-07-25 01:24:17 -07:00
nshrivas
5b33d62a25 Release 5.2.0.89X
Release 5.2.0.89X

Change-Id: Ibdf489cb32c474c56c78e55057067d14d66c9793
CRs-Fixed: 774533
2018-07-24 18:52:53 -07:00
Dustin Brown
da351e3db0 qcacld-3.0: Remove %pS from wlan_hdd_validate_context
The %pS format specifier causes a symbol lookup which disables
preemption in the Linux kernel. As such it is advisable to never use %pS
where __func__ could be used instead. Replace usage of %pS in
wlan_hdd_validate_context() with __func__ passed from the caller
instead.

Change-Id: I2b170bd6098f4acf2a4ccab537f546ba8de154ba
CRs-Fixed: 2283619
2018-07-24 18:52:52 -07:00
Wu Gao
4a1ec8cc7a qcacld-3.0: Cleanup roc and tx action before suspending mc thread
Scheduler thread enter suspend state when calling p2p callback from
pmo, and it can't execute cleanup task on time in p2p suspend handler.
So, cleanup roc and tx action frame before suspend mc thread. Add
cleaning up tx action frame by vdev in hdd layer.

Change-Id: Ib0ef1cb3a73c5a48b3c365935a6d5b9307d2aae0
CRs-Fixed: 2283298
2018-07-24 18:52:49 -07:00
nshrivas
621616f201 Release 5.2.0.89W
Release 5.2.0.89W

Change-Id: I405ec914f44252b52b77c9c09e6ba6293712daaf
CRs-Fixed: 774533
2018-07-24 16:58:25 -07:00
Wu Gao
bdb7f27bde qcacld-3.0: Enable TDLS configures based on converged CFG component
Enable TDLS configures based on converged cfg component and remove
legacy codes.

Change-Id: I77221a8493c8a20efdae9e714a98da74f5c6b6ed
CRs-Fixed: 2277572
2018-07-24 16:58:25 -07:00
Abhinav Kumar
85a4bb876a qcacld-3.0: Host sends VDEV_DELETE cmd to fw before stop_bss
When stop_ap command comes from userspace, __wlan_hdd_cfg80211_stop_ap
calls sap_fsm to change the states of SAP from started to disconnect.
In order to change SAP states, __wlan_hdd_cfg80211_stop_ap sends
WMI_VDEV_STOP_CMDID followed by WMI_VDEV_DOWN_CMDID and
WMI_VDEV_DELETE_CMDID to fw. After the successful change in state of
SAP machine, driver invokes an HDD callback, hdd_hostapd_sap_event_cb
for cleanup and subsequently invokes hdd_softap_stop_bss to reclaim all
resources. This API sends IPA_OFFLOAD_ENABLE_DISABLE cmd to fw for the
VDEV on which SAP started. Which results assert in firmware as host
sends HDD IPA event for the VDEV which is already deleted while changing
the state of SAP.

Fix is to send HDD_IPA_AP_DISCONNECT IPA events before stop BSS.

Change-Id: Ief9318bb476b480fd52f4155a0788a34c1e2ed53
CRs-Fixed: 2276125
2018-07-24 16:58:21 -07:00
nshrivas
f573558c00 Release 5.2.0.89V
Release 5.2.0.89V

Change-Id: I9d016127012bebe4d0a7fda12d98babe6a6276aa
CRs-Fixed: 774533
2018-07-24 15:10:50 -07:00
Jeff Johnson
62cd6803a7 qcacld-3.0: Remove tHalStopType
There are multiple places where a tHalStopType parameter is passed but
unused. This is a historical artifact, so remove all instances of it.

Change-Id: Iebcbbac580495a376b7456b3a2901f33c2474f83
CRs-Fixed: 2283460
2018-07-24 15:10:49 -07:00
Jiachao Wu
52c060a2c4 qcacld-3.0: Check wma handler when get phy mode
Check NULL pointer in wma_chan_phy_mode.

Change-Id: I137433aa55cba182651f9e12bc5edca80b0b3bb7
CRs-Fixed: 2283243
2018-07-24 15:10:46 -07:00
Sourav Mohapatra
808e3d4b71 qcacld-3.0: Eliminate possibility of sending power off when FW is down
In the scenario of concurrent execution of __con_mode_handler and
triggering of SSR, there exists a possibility of driver sending power
off command while the target is not ready. In hdd_wlan_stop_modules, as
a part of __con_mode_handler context, pld_power_off was called after
the trigger of SSR, which caused assert in the platform driver.

To eliminate this, convert the static verfification of the driver state
at the start of the hdd_wlan_start_modules to dynamic. And also set the
target ready state to false in case SSR/FW_DOWN uevent is received.
These will ensure that the driver doesnot try to send the power off
command while the target is not ready.

Change-Id: Idf1056dc85107c535809bedf8b5534085033a1f5
CRs-Fixed: 2271096
2018-07-24 15:10:39 -07:00
nshrivas
64db248b0a Release 5.2.0.89U
Release 5.2.0.89U

Change-Id: I651e0c158ed2dd56ea053e172fe6bc07fcbc5024
CRs-Fixed: 774533
2018-07-24 13:20:34 -07:00
Rajeev Kumar Sirasanagandla
4725ae4600 qcacld-3.0: Add support for action OUI extensions
Add support for action OUI extensions which can be used by station
to control mode of connection, connected AP's in-activity time and
Tx rate etc.,

Change-Id: Ie85e29c4b0ed7ac2815709d7a4e607c4ba46c6ca
CRs-Fixed: 2254502
2018-07-24 13:20:33 -07:00
Pragaspathi Thilagaraj
b11dbe4531 qcacld-3.0: Remove redundant null check for p_mac
In sme and lim, NULL check is available for h_hal. pmac is
casted resultant from h_hal and is retrieved using
PMAC_STRUCT macro, which is defined as ((tpAniSirGlobal)_hHal).
Null check is added for this p_mac also which is redundant.

Remove logically dead code to NULL check the p_mac.

Change-Id: I7a22de3691b83e8ae04391e43cde82541eaabc23
CRs-Fixed: 2276003
2018-07-24 13:20:29 -07:00
nshrivas
d9e1d20b22 Release 5.2.0.89T
Release 5.2.0.89T

Change-Id: Ib230146577dd28ccb59c9acfa510e1d36515b7eb
CRs-Fixed: 774533
2018-07-24 02:53:55 -07:00
Pragaspathi Thilagaraj
28ffc04cc7 qcacld-3.0: Fix possible integer underflow in cfg80211_rx_mgmt
In the function cfg80211_rx_mgmt, data_len is calculated as
len - ieee80211_hdrlen(mgmt->frame_control). Len is not
validated before this calculation. So a possible integer
underflow will occur if len value is less than the value of
ieee80211_hdrlen(mgmt->frame_control).

Validate the value of len against
ieee80211_hdrlen(mgmt->frame_control) in the caller.

Change-Id: Iae776daf37b0c052bd4ce4da44ea728d121eae51
CRs-Fixed: 2263758
2018-07-24 02:53:54 -07:00
nshrivas
1378e404b3 Release 5.2.0.89S
Release 5.2.0.89S

Change-Id: Ib7a2d98d2f7659097540e9de13679373a052c55a
CRs-Fixed: 774533
2018-07-23 20:56:34 -07:00
Dustin Brown
bee8283248 qcacld-3.0: Check session Id against max adapters
The current HDD session Id sanity check only checks for the magic
"invalid session Id" value. However, anything greater than or equal to
MAX_NUMBER_OF_ADAPTERS is an invalid session Id. Update the sanity check
to reject any session Id greater than or equal to
MAX_NUMBER_OF_ADAPTERS.

Change-Id: I7c5a3b82afde073e92fcd0dbf55002fa11a980b2
CRs-Fixed: 2283584
2018-07-23 20:56:34 -07:00
nshrivas
ae9fabb247 Release 5.2.0.89R
Release 5.2.0.89R

Change-Id: I44198659f950909baae17d130709683a9d6b7e0c
CRs-Fixed: 774533
2018-07-23 19:17:52 -07:00
Wu Gao
e568979eb5 qcacld-3.0: Enable P2P cfg based on new cfg component
Enable p2p cfg based on new cfg component and remove legacy codes.

Change-Id: I99b0a53a4904f56fda2aaa2e237455433c3363d2
CRs-Fixed: 2277566
2018-07-23 19:17:51 -07:00
nshrivas
951c3afa56 Release 5.2.0.89Q
Release 5.2.0.89Q

Change-Id: I6228825556b379e8db8859366d42686dce7d9ace
CRs-Fixed: 774533
2018-07-23 12:59:33 -07:00
Bala Venkatesh
6e3925b99f qcacld-3.0: Check TDLS peer type in lim_process_add_sta_rsp
Currenly, as part of tdls add sta req gLimAddStaTdls is set to 1.
And as part of add sta response gLimAddStaTdls is checked if 1 to
map tdls add sta response.
This implementation needs to take care of all error cases of
add sta req failure to reset the gLimAddStaTdls value to 0.

Instead check for peer type in add sta rsp.

Change-Id: Ideaff239f743b95a9578806d2ec220e123d4d995
CRs-Fixed: 2281385
2018-07-23 12:59:33 -07:00
nshrivas
8b6eac6792 Release 5.2.0.89P
Release 5.2.0.89P

Change-Id: I4c28a10e86046e2c8270325a33455df706c24bc5
CRs-Fixed: 774533
2018-07-23 01:59:33 -07:00
Abhinav Kumar
19a7a407df qcacld-3.0: Fix connState while processing disconnect from stop adapter
If driver receive stop adapter when STA is in connecting state, driver
queue a disconnect command without changing the connState of the STA.
Now even if the disconnect is in progress the connState indicate that
the connection is in progress. This may lead to sync issues between HDD
and SME.

Fix is to set the connState to disconnecting so that HDD indicate
proper state.

Change-Id: Ib9d607ad2ab05e5edc266e59516b4ae2b7668c78
CRs-Fixed: 2277633
2018-07-23 01:59:33 -07:00
nshrivas
08e6adb289 Release 5.2.0.89O
Release 5.2.0.89O

Change-Id: Ia9a994e5f913d0760f73d9398c798778a6c6feb0
CRs-Fixed: 774533
2018-07-22 13:30:59 -07:00
Sourav Mohapatra
d56faa5080 qcacld-3.0: Decrease gStaKeepAlivePeriod to 60
Modify the keep alive time as 60 secs by default to cater to rouge AP
behavior in some cases

Change-Id: Id2bb1b61e5fcdc5994451c981bd1171c1860c7cf
CRs-Fixed: 2258825
2018-07-22 13:30:58 -07:00
nshrivas
0f50677f53 Release 5.2.0.89N
Release 5.2.0.89N

Change-Id: I44951cddaefe88b30b8ea9af2a5f67c5095c85ce
CRs-Fixed: 774533
2018-07-21 13:15:53 -07:00
Dustin Brown
867ce6d534 qcacld-3.0: Reduce excessive logging during suspend
Currently, errors are logged if a given offload feature is disabled
while suspending the wlan driver. Instead, simply return success for the
configuration of those features which are disabled, since nothing needs
to be done. This also has the side effect of avoiding meaningless error
logs for situations which are not error conditions.

Change-Id: I1d897d8db066e642e1cc6e77daff0f44172cefe8
CRs-Fixed: 2282040
2018-07-21 13:15:52 -07:00
nshrivas
3b0ba5b743 Release 5.2.0.89M
Release 5.2.0.89M

Change-Id: I178628de350a5f37e2c0f37ba55f16a45d4aacfe
CRs-Fixed: 774533
2018-07-21 04:58:21 -07:00
Jeff Johnson
81b59a3012 qcacld-3.0: Clean up the extscan unified WMI (phase 2)
For a full explanation of the problem and phased solution refer to
"qcacmn: Clean up the extscan unified WMI (phase 1)", Change-Id
I11800361b572331cfada00fb7d518c314df20b43, in the qca-wifi-host-cmn
project.

For phase 2 (this change):
Replace all references of the badly named identifiers with references
to the properly named substitutes. Note that this phase may touch
multiple repos and may involve a number of separate changes.

Change-Id: I4b14045b7294103f4fa03a7f964be33ed4ac6cc6
CRs-Fixed: 2282841
2018-07-21 04:58:20 -07:00
nshrivas
397451a4f3 Release 5.2.0.89L
Release 5.2.0.89L

Change-Id: Ic4644f3dea2e58b3ad038564e456c35a88e7669e
CRs-Fixed: 774533
2018-07-21 03:35:34 -07:00
Pragaspathi Thilagaraj
2d1b311af2 qcacld-3.0: Fix possible OOB in lim_chk_n_process_wpa_rsn_ie
In the function lim_chk_n_process_wpa_rsn_ie, if wpa IE is
present, then dot11f_unpack_ie_wpa is called to copy the wpa IE
to destination buffer. assoc_req->wpa.length is passed as the
length to copy the IE. As this length includes 4 bytes of the
OUI fields also, this could result in OOB read.

Change the length passed to the dot11f_unpack_ie_wpa as
(assoc_req->wpa.length - 4), so that the additional 4 bytes of
the OUI fields are excluded.

Change-Id: If972b3a19d239bb955c7b4d4c7d94e25aa878f21
CRs-Fixed: 2267557
2018-07-21 03:35:33 -07:00
nshrivas
c8d91102fa Release 5.2.0.89K
Release 5.2.0.89K

Change-Id: Ic11fd27c057705c0edfcd41797055519f28a9464
CRs-Fixed: 774533
2018-07-21 00:03:15 -07:00
nshrivas
0e7bc28b68 Release 5.2.0.89J
Release 5.2.0.89J

Change-Id: Id339e9a1b125aabad150d612145401def057b480
CRs-Fixed: 774533
2018-07-20 17:55:01 -07:00
Varun Reddy Yeturu
a2a5e4345c qcacld-3.0: Fix issue in populate_dot11f_twt_extended_caps
Fix using uninitialized variable status inside the function
populate_dot11f_twt_extended_caps

Change-Id: Ic80df2f6c5310414da4179f00867c0fe029b09c7
CRs-Fixed: 2277833
2018-07-20 17:55:01 -07:00
nshrivas
40e68c7e74 Release 5.2.0.89I
Release 5.2.0.89I

Change-Id: I80c80674e0a0a40c7b8e0dc2db3a5cc68137d31f
CRs-Fixed: 774533
2018-07-20 16:23:51 -07:00
Varun Reddy Yeturu
b1e6cd3a66 qcacld-3.0: Fix using uninitialized values in hdd_send_twt_enable_cmd
Fix using uninitialized values for req_val, bcast_val and resp_val
in the function hdd_send_twt_enable_cmd.

Change-Id: Ie671660b62f0624fbf86707f15fe122b81552a53
CRs-Fixed: 2277826
2018-07-20 16:23:50 -07:00
nshrivas
f9737c9d42 Release 5.2.0.89H
Release 5.2.0.89H

Change-Id: I3d3ab9b520d2ba2ae91a0336496ad019f8fae7eb
CRs-Fixed: 774533
2018-07-20 12:06:23 -07:00
Jeff Johnson
696317bd53 qcacld-3.0: Remove wma_get_buf_extscan_change_monitor_cmd()
The task formerly done by wma_get_buf_extscan_change_monitor_cmd() is
now done in the common WMI project and this function is no longer
used, so remove it.

Change-Id: I4a42bda3c3b790bcd0c21abcda94a4f4aa49d8ff
CRs-Fixed: 2281906
2018-07-20 12:06:23 -07:00
Jeff Johnson
dc32f37143 qcacld-3.0: Remove wma_get_buf_extscan_start_cmd()
The task formerly done by wma_get_buf_extscan_start_cmd() is now done
in the common WMI project and this function is no longer used, so
remove it.

Change-Id: I840c6a5f83c6cdc479e6746f36a29c2a7970c964
CRs-Fixed: 2281900
2018-07-20 12:06:20 -07:00
nshrivas
34b5e0fc6f Release 5.2.0.89G
Release 5.2.0.89G

Change-Id: I3e39d5766dd6a3c58e560086f11765058d0bb307
CRs-Fixed: 774533
2018-07-20 10:46:49 -07:00
Dustin Brown
0127a73a2d qcacld-3.0: Enable/Disable MC filter when connected
Multicast address filtering only makes sense if the interface is
connected and capable of receiving traffic. Avoid enabling/disabling
the multicast address filter list on an interface that is disconnected.

Change-Id: Id8aff136e920bb726b8c7dd539d477ff44f080d4
CRs-Fixed: 2282003
2018-07-20 10:46:49 -07:00
nshrivas
68b8b4e394 Release 5.2.0.89F
Release 5.2.0.89F

Change-Id: I40d3d571e17fc6345dc7727f42aaae2a5802701a
CRs-Fixed: 774533
2018-07-20 09:31:06 -07:00
Amar Singhal
0cb9a5c808 qcacld-3.0: Refine ready event processing
1) Use correct typecast in function wma_process_fw_event_mc_thread_ctx
2) Change log level to debug and refine logs in
 wma_process_fw_event_handler

CRs-Fixed: 2281191
Change-Id: I4e67143d028867b193e42ec51f6f7562287eba82
2018-07-20 09:31:05 -07:00
Abhinav Kumar
68834229f5 qcacld-3.0: fix the beacon corruption in WMA beacon update msg
When beacon is updated the host pass the gSchBeaconFrameBegin
param to WMA to copy the beacon to WMI and pass the value to
firmware. gSchBeaconFrameBegin is global so if we receive new
beacon update in LIM before the WMA process the old beacon
update the values in the global gSchBeaconFrameBegin are
updated as per new beacon. So if there is change in beacon
length the first WMA msg copy the wrong beacon data and send
this corrupt date to firmware.

To fix this instead of passing the global gSchBeaconFrameBegin
fill the beacon date in the beacon update req itself.

Change-Id: I6d196784470d9a2aeeaba76e12577f9f65012bac
CRs-Fixed: 2272448
2018-07-20 09:31:02 -07:00
nshrivas
2e611d7fbe Release 5.2.0.89E
Release 5.2.0.89E

Change-Id: I0de82a86f2d267cc45ac7c465f390ad3c637709e
CRs-Fixed: 774533
2018-07-20 00:48:05 -07:00
Sourav Mohapatra
5daec820b0 qcacld-3.0: Remove wma_is_service_enable API
The API wma_is_service_enable is a wrapper on the converged
wmi_service_enabled API for services and extended services. The checks
used in the API are not updated for the converged service enum.

Replace wma_is_service_enable with wmi_service_enabled as there is no
need to have a wrapper

Change-Id: I4fe3601f7e1a031290e139f9ef55f845965b7b2e
CRs-Fixed: 2276471
2018-07-20 00:48:04 -07:00
nshrivas
c42862825e Release 5.2.0.89D
Release 5.2.0.89D

Change-Id: I4462f63f2b1e6f3e8ef817a3dbdf99bde6880c86
CRs-Fixed: 774533
2018-07-19 23:10:58 -07:00
Dustin Brown
19048bd940 qcacld-3.0: Use an event for WMI ready in WMA
The WMI ready event from firmware currently uses an event queue, but is
being moved to a simple event instead. Update WMA to account for this
change.

See: I08b4f088874b7c63e20b129f14dbac01851496e5

Change-Id: I5242cc0e839b59db990fb918e8029b8f68385de6
CRs-Fixed: 2275468
2018-07-19 23:10:52 -07:00
Jeff Johnson
ca7a716d96 qcacld-3.0: Rename tCsrLinkStatusCallback and related identifiers
To align with the coding standard rename tCsrLinkStatusCallback to not
use camelCase. As part of the process also rename other link status
identifiers.

Change-Id: I5df83512259f0f48d84a2bef77e333bb0a78eea4
CRs-Fixed: 2281797
2018-07-19 23:10:05 -07:00
nshrivas
1850b04c63 Release 5.2.0.89C
Release 5.2.0.89C

Change-Id: I19fd90bc3cfdaa76d708acd4a97dba79701d33f9
CRs-Fixed: 774533
2018-07-19 21:33:04 -07:00
Jeff Johnson
1be200ae98 qcacld-3.0: Refine the CSR channel status APIs
Currently csr_get_channel_status() and csr_clear_channel_status() both
use void * for their p_mac parameter. Since this is not an opaque data
structure update the APIs the use the correct underlying data type.

Change-Id: I900e97cbdeced3bacc1f2da30f892a4d55648059
CRs-Fixed: 2281794
2018-07-19 21:33:03 -07:00
Manjunathappa Prakash
a1f5879d0b qcacld-3.0: Change log level rx_thread affinity info
Reduce log level of Rx_thread affinity info message.

Change-Id: Idd968259770d55f40c8bf17facd803b11783a080
CRs-Fixed: 2281293
2018-07-19 21:33:00 -07:00
nshrivas
76869721d1 Release 5.2.0.89B
Release 5.2.0.89B

Change-Id: I6f91bf9be4105c68db41f27f5856881f915b13ac
CRs-Fixed: 774533
2018-07-19 08:32:41 -07:00
Ajit Pal Singh
594d400d3d qcacld-3.0: Add shutdown/reinit support for PLD_CNSS_USB
Populate shutdown/reinit callback functions for PLD_CNSS_USB

Change-Id: If0ad6ca69a85778574d874d9a9b9f0df6146e89b
CRs-Fixed: 2279206
2018-07-19 08:32:41 -07:00
nshrivas
17a61f2f66 Release 5.2.0.89A
Release 5.2.0.89A

Change-Id: I1d9bca57c0945064b4407bf6b0a602592015a2de
CRs-Fixed: 774533
2018-07-19 00:56:39 -07:00
Jeff Johnson
daba7ef043 qcacld-3.0: Remove csr_disconnect_all_active_sessions()
Function csr_disconnect_all_active_sessions() is obsolete and no
longer used, so remove it.

Change-Id: Ia2c0faa2429b706a2b7829444cd21cae4431a6ea
CRs-Fixed: 2281077
2018-07-19 00:56:39 -07:00
Jeff Johnson
f7e36d6e4e qcacld-3.0: Refine the P2P LO callback API
The P2P LO Callback currently specifies a void pointer for the event
payload. In the case of this API the event payload is always a struct
sir_p2p_lo_event so update the API to explicitly use this type. In
addition, currently the callback is not using the registered
user-supplied context, so update the callback to correctly use the
user-supplied context.

Change-Id: I566facea3c92b377823c1b3e38f99c84bc65e9d4
CRs-Fixed: 2278587
2018-07-19 00:56:36 -07:00
Dustin Brown
6619bc276c qcacld-3.0: Ensure conn_state session_id in bounds
Attempting to flush the powersave timer on an adapter with an invalid
session_id leads to an out-of-bounds access when checking the station
context's connection state. Only flush powersave timers for adapters
with valid session_ids. Additionally, add debug asserts for invalid
session_id's in the other connection state checking functions too.

Change-Id: Iacd2f97b01d7f6901d402908304a43c2c20d2380
CRs-Fixed: 2281219
2018-07-19 00:56:33 -07:00
Jeff Johnson
0e96308f39 qcacld-3.0: Refine the Thermal Level callback API
The Thermal Level callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: Ifa6f9fb5d3e27470b3f5292552b871d072150988
CRs-Fixed: 2278586
2018-07-19 00:56:30 -07:00
nshrivas
fcfcf1b95f Release 5.2.0.89
Release 5.2.0.89

Change-Id: I34925ba19221da47bdc51c064396db46ff6ab180
CRs-Fixed: 774533
2018-07-18 23:18:13 -07:00
Kiran Kumar Lokere
f54b85555f qcacld-3.0: Add support to configure HE trigger frame MAC padding
Add support to configure HE trigger frame MAC padding and disable
the MU EDCA param update when user configures the padding.

Change-Id: Ief928c5421366b03ee6e1d6253963b10fd3b87b6
CRs-Fixed: 2265331
2018-07-18 23:18:12 -07:00
Kiran Kumar Lokere
fba2063db1 qcacld-3.0: Add support to configure HE MU EDCA params
Add support to configure the  HE MU EDCA params with default
values and update the params to FW.

Change-Id: Ia7485949c040cb8f83ccfe1f8336267051dbfd13
CRs-Fixed: 2262874
2018-07-18 23:18:09 -07:00
nshrivas
a3933edd98 Release 5.2.0.88Z
Release 5.2.0.88Z

Change-Id: Ieb00e4290eb90981a5e2509688f10b671c5233c2
CRs-Fixed: 774533
2018-07-18 21:52:52 -07:00
Chaoli Zhou
5d6bad19a9 qcacld-3.0: Extract spectral phyerr for qca6574
Qca6574 doesn't use phy_err_mask0 to indicate a spectral
scan phyerr, so spectral_phyerr_event_handler will never
be called. So add some logical to extract the correct phyerr
code to obtain the spectral scan results.

Change-Id: Ib1ec1aa98f25827dfe6ab549ff96a5d4139ad106
CRs-Fixed: 2252379
2018-07-18 21:52:51 -07:00
nshrivas
694b81ceb7 Release 5.2.0.88Y
Release 5.2.0.88Y

Change-Id: I0c6ed14a1664390a80760b00b8d94adb64e1a6e8
CRs-Fixed: 774533
2018-07-18 08:38:50 -07:00
Alok Kumar
cee3cf297a qcacld-3.0: Fix OOB access of sta_info for invalid sta_id
Currently, sta_id is used without validation in hdd_inspect_dhcp_packet
which may lead to OOB access for sta_info.

Call hdd_inspect_dhcp_packet only if sta_id is valid.

Change-Id: I09ebdaeeb86f8abe95fe09d23974c4bf331e29fe
CRs-Fixed: 2276615
2018-07-18 08:38:50 -07:00
nshrivas
e682d01cc0 Release 5.2.0.88X
Release 5.2.0.88X

Change-Id: If4cd52ae42442a64a18329463ff9b8b3a71dbd9f
CRs-Fixed: 774533
2018-07-18 05:58:59 -07:00
Dundi Raviteja
53de6c3371 qcacld-3.0: Use request manager framework for ready to extwow event
We are transitioning the usage of ready to extwow event
to request manager framework.

Change-Id: I648b6db4ab5367c8e04e77f4adc2fb9d42039054
CRs-Fixed: 2274944
2018-07-18 05:58:59 -07:00
nshrivas
c20f84ea38 Release 5.2.0.88W
Release 5.2.0.88W

Change-Id: I8d619eb62d6711be982d0ad14fd551e6cf1a1cba
CRs-Fixed: 774533
2018-07-18 00:18:04 -07:00
Dundi Raviteja
6bb9e328aa qcacld-3.0: Use request manager framework for set antenna mode event
We are transitioning the usage of set antenna mode event
to request manager framework.

Change-Id: I4df39c9b71ccd5680f85d1662bec06bc90f70977
CRs-Fixed: 2274929
2018-07-18 00:18:03 -07:00
Alok Kumar
cc943caa7e qcacld-3.0: Add support to set/get timestamp for management frames
Add setter and getter function of timestamp for management frames
for the peer based on peer's mac address.

Change-Id: Iab0862eda2392bd516c8ba0b913441b8e0d4c493
CRs-Fixed: 2264667
2018-07-18 00:17:59 -07:00
nshrivas
341a260e58 Release 5.2.0.88V
Release 5.2.0.88V

Change-Id: I2335ed086a727729e9c1d071c9ad1c33257f43bb
CRs-Fixed: 774533
2018-07-17 14:48:23 -07:00
gaurank kathpalia
82a1b2b802 qcacld-3.0: Fix GTK offload req params
Currently the host sends the fixed gtk offload params
and the FILS TLV params, even when the FILS feature is disabled
in the host, which force firmware to pick the KEK from the
FILS TLV structure rather than from the fixed param structure,
which further leads to GTK re-keying feature fail.

Fix is to send only the fixed params in case when host doesnt
supports FILS.

Change-Id: I5b3b3fd503c7cb9c4d7933074fd483086b113204
CRs-Fixed: 2244725
2018-07-17 14:48:23 -07:00
nshrivas
0f71751691 Release 5.2.0.88U
Release 5.2.0.88U

Change-Id: Iea8de044b930acf8a8811e60b5d5869739cb44ef
CRs-Fixed: 774533
2018-07-17 13:16:16 -07:00
nshrivas
4edfaf5cab Release 5.2.0.88T
Release 5.2.0.88T

Change-Id: Icdec93c1a1b7a5eb1ee392ae13a922857fcb90c5
CRs-Fixed: 774533
2018-07-17 05:28:37 -07:00
Visweswara Tanuku
6bc52de881 qcacld-3.0: Use hdd netdev notifier call for softAP interface
qcacld-2.0 to qcacld-3.0 propagation

In softAP scenario, if any pending scan request is not serviced
before NETDEV_GOING_DOWN is called, it results in call trace
Handle this by using hdd netdev notifier call for softAP, where
scan_block_work is flushed.

Change-Id: I5de07103e0b0008f21c0a13add0eed36ea1b31d0
CRs-fixed: 2076542
2018-07-17 05:28:37 -07:00
Yeshwanth Sriram Guntuka
45eb08feb9 qcacld-3.0: Strip OMN IE from additional IEs for NSS update
As part of nss update request, operating mode is updated
in beacon template. OMN IE can also present in additional
IEs which will result in OMN IE included twice in beacon.

Fix is to strip OMN IE from additional IEs if beacon
template is updated as part of nss update request.

Change-Id: Ic0cd6b76738e16eb73de7a7ba406cd727c2f8dc4
CRs-Fixed: 2274027
2018-07-17 05:28:33 -07:00
Sandeep Puligilla
c5609d5bdc qcacld-3.0: Add legacy mlme component
Add legacy mlme component main APIs and init/deinit from HDD.

Change-Id: I3d3de3bca9a4fd0896a9d6a076b5e60bb1a5ca83
CRs-Fixed: 2272959
2018-07-17 05:28:30 -07:00
nshrivas
0a4f4e598f Release 5.2.0.88S
Release 5.2.0.88S

Change-Id: I24eb9e53392061c0da77126896d8cc23626c0ad2
CRs-Fixed: 774533
2018-07-17 03:48:33 -07:00
Vignesh Viswanathan
597d901893 qcacld-3.0: Send Peer Authorized for SAP peers after Set Key Complete
The hostapd sends the add_key command followed by the change_station
command to set the peer to authorized state and open the data ports.
Since the add_key is serialized through LIM/WMA layers and might not
have been sent to the FW by the time the change_station is received,
the FW would assert due to peer moved to authorized state before keys
are set.

Send the Peer authorized command to FW and to the hostapd only after
the set_key is complete for the peer.

Change-Id: Ibd1737a41ea96770987da4070b72e756538e7508
CRs-Fixed: 2267291
2018-07-17 03:48:33 -07:00
Chaoli Zhou
75b062f194 qcacld-3.0: Allow Setting Channel&Bandwidth in STA mode
Add one new ini configuration item to disable/enable
setMonChan in STA mode with disconnected state for
spectral scan test at CV2X platform.

Change-Id: Ie9ffc701d93ed1c050375dd56151b7a0da69cdce
CRs-Fixed: 2279013
2018-07-17 03:48:30 -07:00
nshrivas
26e1c75d52 Release 5.2.0.88R
Release 5.2.0.88R

Change-Id: I8dd94c97582d178b657a4da154f7ee6299312b25
CRs-Fixed: 774533
2018-07-16 22:03:36 -07:00
Min Liu
ffb250d8af qcacld-3.0: Use field-by-field assignment for FW stats
In wma_unified_link_iface_stats_event_handler, FW stats is cast into
some host data structure via memory copy. It could be dangerous since
there could be some mismatch between host and FW data structures.
Update it with field-by-field assignment.

Change-Id: If90c6062551c8769d948b3267dfa323fba310a78
CRs-Fixed: 2274034
2018-07-16 22:03:35 -07:00
nshrivas
ade23b3672 Release 5.2.0.88Q
Release 5.2.0.88Q

Change-Id: Ib9d2572852a0c1add66fdced3e5994ca11aaf724
CRs-Fixed: 774533
2018-07-16 18:32:28 -07:00
Abhinav Kumar
eab259362d qcacld-3.0: Add error handling support while sending roam invoke cmd to fw
Fix is to allow driver to send roam invoke command to firmware only when
roaming is allowed by both driver as well as supplicant for current vdev.

Change-Id: I76331c7c73672dd4c73b2cfaaba1e5c01652b982
CRs-Fixed: 2277523
2018-07-16 18:32:28 -07:00
nshrivas
318221cd6f Release 5.2.0.88P
Release 5.2.0.88P

Change-Id: I7139f3745656ba28d54e7ff489cfee00c70d9f3b
CRs-Fixed: 774533
2018-07-16 10:42:43 -07:00
Jeff Johnson
dc198eccdb qcacld-3.0: Refine the Lost Link Info callback API
The Lost Link Info callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I1ef9151d1a0c444a9bbb64aee6ae26030dd0bdbf
CRs-Fixed: 2278585
2018-07-14 21:20:05 -07:00
nshrivas
41126a10c0 Release 5.2.0.88O
Release 5.2.0.88O

Change-Id: Iaa0668f2a7b5304b14827fabca9a03572f4901af
CRs-Fixed: 774533
2018-07-14 03:34:07 -07:00
Jeff Johnson
4397514c87 qcacld-3.0: Refine the Roam Scan Offload callback API
The Roam Scan Offload (RSO) callback currently specifies a void
pointer for the context. In the case of this API the context is
actually known to be an HDD handle, so update the API to explicitly
use this type. This will allow the compiler to verify that the correct
type of parameter is being passed.

Change-Id: I9f3098a9f4bc840ef2f6210717849db5d4dd2c2a
CRs-fixed: 2278584
2018-07-14 03:34:07 -07:00
Jeff Johnson
d0b6c7e4ed qcacld-3.0: Refine the BT Activity callback API
The BT Activity callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I1bb29fcbd339d48b19352d61a18c0ae3ee3b10da
CRs-Fixed: 2278583
2018-07-14 03:34:04 -07:00
Jeff Johnson
c45168b885 qcacld-3.0: Refine the NAN Event callback API
The NAN Event callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I998119cb02d2b6412b63c36f740016745a6fbe4f
CRs-Fixed: 2278582
2018-07-14 03:34:00 -07:00
nshrivas
834d08c392 Release 5.2.0.88N
Release 5.2.0.88N

Change-Id: Iba4ffa235a056749b4104b3e44dceb5c3b79a86b
CRs-Fixed: 774533
2018-07-13 19:29:32 -07:00
Dustin Brown
2da29eb8a5 qcacld-3.0: Destroy vdev if close session fails
Currently, hdd_vdev_destroy has some error handling logic which avoids
actually destroying the vdev in some cases. This always constitutes a
leak of resources. Regardless of the result of the call to
sme_close_session(), always destroy the vdev in hdd_vdev_destroy().

Change-Id: I86f3e55866a8506dd4a1a2bcbf8bf5d5264d49e3
CRs-Fixed: 2278043
2018-07-13 19:29:32 -07:00
nshrivas
1c5aae82de Release 5.2.0.88M
Release 5.2.0.88M

Change-Id: Ia5d6d45cf2775a4c0ca0f3b0a27591552167886e
CRs-Fixed: 774533
2018-07-13 15:46:02 -07:00
Vignesh Viswanathan
694bec3af7 qcacld-3.0: Update dot11_mode based on target channel during chan switch
Currently if the dot11_mode is set to eCSR_DOT11_MODE_11g or
eCSR_DOT11_MODE_11g_ONLY and a channel switch is triggered with
target channel in 5Ghz band, then an invalid combination of dot11_mode
and channel occurs which fails the vdev_restart for channel switch.

Update the dot11_mode based on the target channel and the current
dot11_mode before sending the channel change request to SME.

Change-Id: I2b0fa4a36f137150ee0506d62be29ede4f4e604c
CRs-Fixed: 2276876
2018-07-13 15:46:02 -07:00
nshrivas
56bb1d24f0 Release 5.2.0.88L
Release 5.2.0.88L

Change-Id: Ib5a566d750eaf493fc12a45e402c0f4043f76c68
CRs-Fixed: 774533
2018-07-13 12:12:43 -07:00
Kabilan Kannan
ebe01e7a16 qcacld-3.0: Validate SAR2 response event handle
Validate SAR2 response event handle and pass the valid
pointer for result extraction

Change-Id: I91982c411c77494662f6d00de6078622a3d548ae
CRs-Fixed: 2259373
2018-07-13 12:12:42 -07:00
nshrivas
6b86db60b7 Release 5.2.0.88K
Release 5.2.0.88K

Change-Id: I4ff57d25e46f6b7847c18a92913eef4b0adcf48d
CRs-Fixed: 774533
2018-07-13 10:36:12 -07:00
Qiwei Cai
1083f5b0ac qcacld-3.0: Featurize WLAN_NS_OFFLOAD
Fix compilation errors when disable WLAN_NS_OFFLOAD

Change-Id: Ifba894a4880a226cedf4c88b1121d02c63aceb4b
CRs-Fixed: 2271272
2018-07-13 10:36:11 -07:00