Commit Graph

9413 Commits

Author SHA1 Message Date
nshrivas
e892451b7e Release 5.2.0.68Q
Release 5.2.0.68Q

Change-Id: I31bb989f3915fcd3e2b227915cf2e26772b89080
CRs-Fixed: 774533
2018-03-05 21:43:47 -08:00
Dustin Brown
b9987afb2c qcacld-3.0: Update firmware filter config (part 1)
In order to conserve firmware memory when various filtering features are
not in use, update the target configuration provided to firmware based
on the intersection of various filtering features and host
configuration.

Part 1
	num_wow_filters = ARP/NS offload enabled ? 2 : 5
	bpf_instruction_size - BPF enabled ? 0 (auto) : 0xffffffff

Part 2 (pending firmware support)
	pkt_filter_num = Packet Filter enabled ? 12 : 0 (disabled)

Change-Id: Ic6624ff04598b53d8321e4864618b12b9702780f
CRs-Fixed: 2196997
2018-03-05 21:43:46 -08:00
Dustin Brown
f1d278041b qcacld-3.0: Add wlan_pmo_apf.[ch]
Add files to house PMO logic for the Android Packet Filter (APF).

Change-Id: I30e40b1dc761261511d8a37e5720a4f5c737b36c
CRs-Fixed: 2198745
2018-03-05 21:43:43 -08:00
nshrivas
186dcee58a Release 5.2.0.68P
Release 5.2.0.68P

Change-Id: Ia1b9ff9a5850c830c208e4bb60b422ebe5b7ba69
CRs-Fixed: 774533
2018-03-05 20:48:52 -08:00
Dustin Brown
d3a53dbc06 qcacld-3.0: Fix PERF build issue in PMO
Building CLD3.2 with a performance configuration results in several
"potentially uninitialized" warnings. Initialize the relevant variables
to avoid the warnings.

Change-Id: If97b67d50ebe2b7465fd2cc5a6a44488e4cb25a7
CRs-Fixed: 2200294
2018-03-05 20:48:51 -08:00
Arif Hussain
80a328aeaa qcacld-3.0: Fix possible buffer overflow in csr_update_fils_params_rso
Fix possible buffer overflow in csr_update_fils_params_rso function.

Change-Id: Icc6e31c094611a74624eed7a4e98ffaf7128f464
CRs-Fixed: 2196080
2018-03-05 20:48:48 -08:00
Arif Hussain
d15902ccd5 qcacld-3.0: Fix possible null pointer de-references in SME and WMA
Add null check to avoid null pointer de-references.

Change-Id: I8a93f269467bbb0dec5610ae158c4f5dc9658a12
CRs-Fixed: 2196080
2018-03-05 20:48:45 -08:00
Dustin Brown
06259e5d96 qcacld-3.0: Add ucfg_pmo_psoc_set_caps()
Provide PMO-specific device capabilities to PMO. This allows PMO to do
intersections between configuration and device capabilities.

Change-Id: If0a199f9be466d16cef900a29b14b73a2a4e52d0
CRs-Fixed: 2197828
2018-03-05 20:48:43 -08:00
Tiger Yu
757f448a04 qcacld-3.0: Remove unmap for packets in the vdev ll_pause queue
The packets in the vdev ll_pause queue hasn't been doing the qdf_nbuf_map,
or they might be mapped by other module like ipa. So do not unmap in the
ol_txrx_vdev_detach to avoid the mis-match operation.

Change-Id: I498c09152be95464bc6343f2a48d63e13d621a82
CRs-Fixed: 2198903
2018-03-05 20:48:39 -08:00
nshrivas
fa6c888f24 Release 5.2.0.68O
Release 5.2.0.68O

Change-Id: I9ec289a57184e0be98704898fac3d5270b3c523a
CRs-Fixed: 774533
2018-03-05 14:19:06 -08:00
Yun Park
bab87d68c1 Revert "qcacld-3.0: Add BUG_ON when uC ready failed"
This reverts commit I87b635bf4644b54d47bee65307d7484c9e328885.
This should be used for uC loading debug purpose only.
If uC is not loaded yet when WLAN initialization, we are expecting
the registered uC ready callback is invoked after uC loaded later.

Change-Id: Ie6f6d116ff7a23a9b4900c60053a8e76948734d9
CRs-Fixed: 2196878
2018-03-05 14:19:05 -08:00
nshrivas
956a457fbe Release 5.2.0.68N
Release 5.2.0.68N

Change-Id: I69a3201431bfd691c8c4ab5f79b24d66d810aace
CRs-Fixed: 774533
2018-03-05 13:22:32 -08:00
Abhinav Kumar
cc86496435 qcacld-3.0: Handle error case in wma_extscan_cached_results_event_handler
Currently, driver calls wma_group_num_bss_to_scan_id API from
wma_extscan_cached_results_event_handler to group bss to scan id
table. Without checking return status of wma_group_num_bss_to_scan_id,
HDD callback is called which can lead to NULL pointer de-reference issue
in wlan_hdd_cfg80211_extscan_cached_results_ind if malloc for
t_scan_id_grp->ap fails in wma_group_num_bss_to_scan_id.

Add check for return status of "wma_group_num_bss_to_scan_id" in
wma_extscan_cached_results_event_handler before invoking HDD callback

Change-Id: I457f39404436c54feb4b555f8101895d3c1ae5d7
CRs-Fixed: 2188297
2018-03-05 13:22:31 -08:00
nshrivas
9709de96f4 Release 5.2.0.68M
Release 5.2.0.68M

Change-Id: I44d2be06b34b4de718c3f1a0d4fa96aa5ebd9670
CRs-Fixed: 774533
2018-03-05 07:16:41 -08:00
Min Liu
22202b703a qcacld-3.0: Peer is not deleted when delete VDEV
Failure can be observed when waiting for peer deletion
before sending WMI command. Peer deletion in VDEV stop
timeout handler also need to be handled in the scheduler
queues.

Change the logic to wait for peer delete completion
before sending message to scheduler queue to delete VDEV.

Change-Id: I78d3070a73c85d212bc33c346b3e60edf3c016f8
CRs-Fixed: 2187430
2018-03-05 07:16:41 -08:00
nshrivas
cda75202eb Release 5.2.0.68L
Release 5.2.0.68L

Change-Id: Ib7e3e22fa65af08ab8e75496356fcae8c7b8d088
CRs-Fixed: 774533
2018-03-05 05:25:21 -08:00
Yeshwanth Sriram Guntuka
d1f8ca7325 qcacld-3.0: Return error if channel list is NULL
Hostapd sends channel list as NULL in do_acs request
when country mode is set to world and hw mode is 11a.
This results in scan to be triggered on all 5g channels
and driver to choose 5g channel as best channel.

Fix is to return error to hostapd if channel list
received is NULL.

Change-Id: I17aacfdbeea9803023a66f54de7b596612ea97c3
CRs-Fixed: 2192858
2018-03-05 05:25:21 -08:00
nshrivas
de08617366 Release 5.2.0.68K
Release 5.2.0.68K

Change-Id: I92e57245d60a0958e7cc5ad88f924639f12bf03c
CRs-Fixed: 774533
2018-03-05 04:28:09 -08:00
Sourav Mohapatra
001cfaf94a qcacld-3.0: Extend scan cleanup API to support netdev level cleanup
In the present scenario the function wlan_cfg80211_cleanup_scan_queue
does the code scan queue cleanup during radio detach, leading to access of
freed vdev netdev.

Extend cfg80211 scan cleanup API to support netdev level cleanup. The
second parameter if NULL cleans up all the queues or only the queue of
the specific net dev given.

Change-Id: I2a6b350fe5102b2a5d772dd9a075003ccf3b684c
CRs-Fixed: 2197309
2018-03-05 04:28:09 -08:00
Abhinav Kumar
c93e5ad6c5 qcacld-3.0: Prioritize connection req frames in pe queue
If multiple auth req comes, it added to the header of message queue
but in between mc thread could be processing some beacon frame. while
processing beacon, SAP gets assoc req and adds it to head of message
queue and will be processed first instead of auth req. After sending
of accoc rsp, mc thread will start to process queued auth req, which
is at the top of message queue which will result in deauthentication.

Reverts commit 360c5d590ec8 ("qcacld-3.0: Prioritize connection req
frames in pe queue")

Change-Id: Iaf511be1160e05cfcd9d60f18be4339587308089
CRs-Fixed: 2192836
2018-03-05 04:28:05 -08:00
nshrivas
f121472f38 Release 5.2.0.68J
Release 5.2.0.68J

Change-Id: I7d04df97b3a745dd7b203ade45e3210a51f24707
CRs-Fixed: 774533
2018-03-02 21:48:37 -08:00
Jeff Johnson
e0847ba99e qcacld-3.0: Add missing blank lines after declarations in HDD
The checkpatch script has identified instances of "Missing a blank
line after declarations" in HDD, so add them.

Change-Id: I289072b26e0c9c1f8392616438e304b018d9ecd2
CRs-Fixed: 2198555
2018-03-02 21:48:36 -08:00
Jeff Johnson
321069fee3 qcacld-3.0: Remove empty hdd_roam_deregister_sta() test
Currently hdd_roam_deregister_sta() tests the STA to see if it is in
the eConnectionState_IbssDisconnected state, but then doesn't actually
do anything if it is true. Since this is obviously an obsolete test
where the action code has been previously removed, now remove the
actual test.

Change-Id: I6a0077088d87f91b8d8f220049de05a19232995b
CRs-Fixed: 2198554
2018-03-02 21:48:33 -08:00
nshrivas
a4f156fe65 Release 5.2.0.68I
Release 5.2.0.68I

Change-Id: Ica672622760343bd23a3a9ac0105b15474c5ff49
CRs-Fixed: 774533
2018-03-02 20:37:21 -08:00
Dustin Brown
f2e2fac99e qcacld-3.0: Remove pmo_core_wow_[enter|exit]()
pmo_core_wow_enter(), pmo_core_wow_exit() and struct
pmo_wow_enter_params are all dead code. Remove them.

Change-Id: I254a0bad794ffc1170a2799918e1627a3e01e340
CRs-Fixed: 2199462
2018-03-02 20:37:21 -08:00
nshrivas
bf1077559d Release 5.2.0.68H
Release 5.2.0.68H

Change-Id: I1a6547154f306ce6765093cfc1bd70690f0628f1
CRs-Fixed: 774533
2018-03-02 18:28:26 -08:00
Rajeev Kumar
d056536a27 qcacld-3.0: Nuke HDD and SME obsolete wow enter and exit APIs
WoW is always enabled on ROME and ADRASTEA platforms and wow
wake up pattern configuration is dynamic based on vdev type.
All wow wake up patterns are configured at the time of vdev
creation. HDD and SME has obsolete wow enter and exit logic
and hence nuke it.

Change-Id: I228ff5b77a7f9dac579448ada4ebee591d5a0c38
CRs-Fixed: 2198644
2018-03-02 18:28:26 -08:00
nshrivas
8af954527b Release 5.2.0.68G
Release 5.2.0.68G

Change-Id: I80b242b234e34449b246f32cb528fd52b86ab815
CRs-Fixed: 774533
2018-03-02 16:52:33 -08:00
Abhishek Singh
1d1d3e3970 qcacld-3.0: Stop the vdev rsp timer as soon as vdev req is removed
In wma_vdev_delete_handler() once vdev req is removed from the
vdev_resp_queue the vdev rsp timer is stopped and freed after
releasing the wake lock and vdev detach callback.

So before vdev rsp timer is stopped it may get expired and
post msg in MC thread. Now once this timer msg is processed it
access the already freed memory.

To fix it stop vdev rsp timer first before releasing the wake
lock and vdev detach callback.

Change-Id: Iface6d1faaa9f801d0da7a70d548eafbd082dc48
CRs-Fixed: 2196338
2018-03-02 16:52:31 -08:00
nshrivas
557e179854 Release 5.2.0.68F
Release 5.2.0.68F

Change-Id: I37712a8d5f50ac131f63dba15c13cf07b8224128
CRs-Fixed: 774533
2018-03-02 16:52:29 -08:00
Jingxiang Ge
b897656a5d qcacld-3.0: Register IPA Tx desc free callback
IPA tx desc free callback function is missed here.
Add it back.

Change-Id: Ic29857816d6d749e1a90219e78f198e7adaaddc0
CRs-Fixed: 2189751
2018-03-02 16:52:27 -08:00
nshrivas
f30a6d960a Release 5.2.0.68E
Release 5.2.0.68E

Change-Id: Id11ca11e5e64c5459b85646745c0aca141c24c15
CRs-Fixed: 774533
2018-03-02 16:51:52 -08:00
Prakash Manjunathappa
e73e3b57db qcacld-3.0: Add INI to control tcp_limit_output_bytes tuning
Current driver posts the high and low Tx TPUT indications to cnss-daemon to
tune  the tcp_limit_output_byte system parameter. Add option to disable it.

Change-Id: Ic65fe0bd762024425cabf2f1f07123211dce5dce
CRs-Fixed: 2197112
2018-03-02 16:33:34 -08:00
snandini
a63fc0c2e3 Release 5.2.0.68D
Release 5.2.0.68D

Change-Id: I959955cfe8e42aa13efe209690507baf1eb3a014
CRs-Fixed: 774533
2018-03-01 09:48:19 -08:00
Himanshu Agarwal
e994970c2a qcacld-3.0: Update band to ICM module
ICM does not support hw_mode=any at present. When hw_mode is
set to any in hostapd.conf, HOST driver choose one band out of
2.4Ghz and 5Ghz based on "acs_freq_band" ini item and update the
ACS and PCL channel list accordingly. But currently driver does
not send updated band to ICM and so ICM still gets BAND_ALL from
HOST driver which is INVALID for ICM module. As a result ICM
algorithm does not run and channel selection fails.

Send Updated band to ICM and also update channel width accordingly
for 2.4Ghz band as it does not support 80/160/80PLUS80 Mhz.

Change-Id: I13593a3c59c204d1ff7677e67d96d039c9456568
CRs-Fixed: 2196247
2018-03-01 17:30:45 +05:30
snandini
e126751324 Release 5.2.0.68C
Release 5.2.0.68C

Change-Id: I9be8f7003d6f7397f38d2ce69d68f020f3c22bae
CRs-Fixed: 774533
2018-02-28 23:35:44 -08:00
gaurank kathpalia
85f8a61cf9 qcacld-3.0: Periodically update host time stamp to firmware for sync
qcacld-2.0 to qcacld-3.0 propagation

Send host timestamp to firmware, so that firmware can print the
logs timestamp in sync with host.

Change-Id: I1d4d223aa1c8e207941ab659f69b72a855e3a604
CRs-Fixed: 2193976
2018-02-28 23:35:44 -08:00
Kiran Kumar Lokere
0923ad8015 qcacld-3.0: Fix capability parsing in service ready event
Check the total supported mac and phy count for capability
parsing in service ready extension event.

Change-Id: Ibde9040e5adf97d53645f714e5e8981dd1a9d22a
CRs-Fixed: 2194602
2018-02-28 23:35:40 -08:00
snandini
b13b0bc130 Release 5.2.0.68B
Release 5.2.0.68B

Change-Id: I81c688eb10d65b55c3706672c04e6aacb94d0112
CRs-Fixed: 774533
2018-02-28 19:16:02 -08:00
Dustin Brown
fbe4e7d67b qcacld-3.0: Add pmo_psoc_with_ctx() macro
It is really common to want to update or read from the PMO private
context, but doing so requires several lines boilerplate code. Because
this boilerplate is in so many places, mistakes like using the wrong
lock operation, or forgetting to use locks at all, are a always a
danger. Add pmo_psoc_with_ctx() to address this deficiency, which
retrieves the private context pointer, locks on entry, and unlocks on
exit. Usage is like so:

	struct pmo_psoc_prov_obj *psoc_ctx;

	pmo_psoc_with_ctx(psoc, psoc_ctx) {
		/* use psoc_ctx */
	}

Which is equivalent to:

	struct pmo_psoc_prov_obj *psoc_ctx;

	psoc_ctx = pmo_psoc_get_priv(psoc);
	qdf_spin_lock_bh(&psoc_ctx->lock);
	/* use psoc_ctx */
	qdf_spin_unlock_bh(&psoc_ctx->lock);

Change-Id: I6a3ccbfbfb57c589d44c7eae57e2ed8272dae3ee
CRs-Fixed: 2197722
2018-02-28 19:16:02 -08:00
snandini
ad48da603d Release 5.2.0.68A
Release 5.2.0.68A

Change-Id: Ic9cf6ae8d39faf08605bf5a3d0f465f9819e2db0
CRs-Fixed: 774533
2018-02-28 18:02:41 -08:00
Jeff Johnson
153f0263ea qcacld-3.0: Fix bad block comment in wlan_hdd_main.h
The checkpatch script has identified an instance of a non-conformant
block comment in wlan_hdd_main.h, so fix it.

Change-Id: Ie76156601021e2b5e503280337b38792217b7dbc
CRs-Fixed: 2197711
2018-02-28 18:02:41 -08:00
snandini
36b274da0f Release 5.2.0.68
Release 5.2.0.68

Change-Id: Ia2eac3e19561d04f907c14dbd43cf4f316210030
CRs-Fixed: 774533
2018-02-28 17:12:30 -08:00
Jeff Johnson
c66d31077c qcacld-3.0: Fix instances of "else after return" in HDD
The checkpatch script has identified instances of "else after return"
that is not conformant with the Linux coding style, so fix them.

Change-Id: Ica4ccb1ef1c865089851e928ddeaa27ea54bcb4a
CRs-Fixed: 2197681
2018-02-28 12:03:12 -08:00
snandini
74f1c2637b Release 5.2.0.67Z
Release 5.2.0.67Z

Change-Id: I0f74687ec7898ee8ead8041041c92b90a1701786
CRs-Fixed: 774533
2018-02-28 08:50:15 -08:00
Jeff Johnson
b8adae49a1 qcacld-3.0: Fix instances of bad indentation in HDD
The checkpatch script has identified multiple instances of non-conformant
indentation in HDD, so fix them.

Change-Id: Icb28911e54324198d50018fcaf6d6662c9dc161c
CRs-Fixed: 2197006
2018-02-28 08:50:14 -08:00
Jeff Johnson
109e79d599 qcacld-3.0: Fix instances of bad brace placement in HDD
The checkpatch script has identified two instances of non-conformant
brace placement in HDD, so fix them.

Change-Id: I0c8bbf2258b24c4876c6a8749633b90873980e95
CRs-Fixed: 2196976
2018-02-28 08:50:11 -08:00
snandini
384d0598ce Release 5.2.0.67Y
Release 5.2.0.67Y

Change-Id: I66b1ecffa6f68923343c606dc334208c48bc87b7
CRs-Fixed: 774533
2018-02-28 05:29:40 -08:00
Nirav Shah
eb017befbd qcacld-3.0: Add support for QCA9379 on x86 platform
Add support for QCA9379 chip on x86 platform for
USB and SDIO attach.

Change-Id: I2de81794cd16521097ffa6956a18b4b0fe981d36
CRs-Fixed: 2196757
2018-02-28 05:29:39 -08:00
snandini
b45a07658c Release 5.2.0.67X
Release 5.2.0.67X

Change-Id: I4500389fe9d00e70899d1db7e1090a547a4eb3f8
CRs-Fixed: 774533
2018-02-28 01:29:51 -08:00