Commit Graph

9176 Commits

Author SHA1 Message Date
Dustin Brown
7bd76330b1 qcacld-3.0: Disable Packet Filter by default
The Android Packet Filter (APF) is the preferred method for filtering
packets, but the legacy Packet Filter may also be used. In order to
encourage the use of APF over Packet Filter, disable Packet Filter by
default. Customers may still enable Packet Filter via setting
gDisablePacketFilter=0 via ini configuration.

Change-Id: I581a4001167571efbc7c1c1738c5585e4bde0611
CRs-Fixed: 2195111
2018-02-23 13:26:05 -08:00
snandini
4d6d6425a6 Release 5.2.0.67G
Release 5.2.0.67G

Change-Id: I905b803bf77015551905e11fe9e74205c76cceb6
CRs-Fixed: 774533
2018-02-22 23:30:49 -08:00
Tushnim Bhattacharyya
087bff3a13 qcacld-3.0: Trim ACS channel list based on the concurrent connections
If force SCC is enabled and there is a STA connection, trim the
ACS channel list on the band on which STA connection is present.

Change-Id: Ibd580a7afdcdfc5fb4398ada547565e229d59c70
CRs-Fixed: 2191792
2018-02-22 23:30:48 -08:00
snandini
428897d9a5 Release 5.2.0.67F
Release 5.2.0.67F

Change-Id: I2d96905bfc53819ea0d5a1df7074756ad83be543
CRs-Fixed: 774533
2018-02-22 17:46:20 -08:00
Rajeev Kumar
69ddd852e5 qcacld-3.0: Free nested set link state response msg buffer in PE
PE is not freeing the second level of allocated memory during MC
thread message queue flush logic and hence leaking the memory.
Free second level of allocated memory in pe_free_message such
that message posted from WMA is still freed even if MC thread is
shutdown during driver unload/SSR.

Change-Id: I6a88d3b331c29496bc7c1d9e451c97206a2b85cf
CRs-Fixed: 2192884
2018-02-22 17:46:20 -08:00
snandini
e87a2f2ae5 Release 5.2.0.67E
Release 5.2.0.67E

Change-Id: If570eb39936d37b031455ad4e0ff96f0e7c29b39
CRs-Fixed: 774533
2018-02-22 14:05:23 -08:00
Hanumanth Reddy Pothula
3862ca9efa qcacld-3.0: Flush scan results on interface down
After successful connection, if interface down(STA) happens on DUT
and if AP changes data rates before interface up happens, there
is a possibility of STA to send packets at older data rates, because
of holding older scan results in SME scan cache. This results in using
stale scan result even after wifi turn off and on. If stale scan result
is used and if AP has updated some params like rates DUT will not be
using those supported rates for tx which is an issue.

To mitigate this issue, flush scan results on STA interface down.
Also, make sure there are no other STA interfaces before flushing
scan results.

Change-Id: I3505c128276fa8e5e05ea5d9110eb75275a746e9
CRs-Fixed: 2171523
2018-02-22 14:05:22 -08:00
snandini
5241871c2f Release 5.2.0.67D
Release 5.2.0.67D

Change-Id: I9b4ec401b24d2f448c03167e738f11e8a647f12c
CRs-Fixed: 774533
2018-02-22 12:38:41 -08:00
Yun Park
f1684eced9 qcacld-3.0: Add BUG_ON when uC ready failed
When uC ready fails while WDI init, get a dump for uC debugging.

Change-Id: I87b635bf4644b54d47bee65307d7484c9e328885
CRs-Fixed: 2194383
2018-02-22 12:38:40 -08:00
snandini
02421a0f38 Release 5.2.0.67C
Release 5.2.0.67C

Change-Id: I2d38380de19afaddc8a30adc0e7c1f4e3375ebea
CRs-Fixed: 774533
2018-02-22 07:25:52 -08:00
Abhishek Singh
221cf99fdf qcacld-3.0: Cleanup unused scan code
Cleanup the unused legacy scan code.

Change-Id: Ia664f815759142e7f4ad8e648a469c63ddd003f5
CRs-Fixed: 2193917
2018-02-22 07:25:52 -08:00
snandini
0781b178fb Release 5.2.0.67B
Release 5.2.0.67B

Change-Id: I900548626a55931a34620fcf7746aca1e524a368
CRs-Fixed: 774533
2018-02-22 06:01:23 -08:00
Abhishek Singh
edb7360d92 qcacld-3.0: Match all encryption type in case of testbed STA
If force rsne is set i.e testbed STA mode, the auth type and
encryption type set in RSNE provided, may not match with the AP.
In this case driver will not find the AP in filtered scan result
using the encryption and auth type provided in RSNE.

Thus no Assoc req is sent to AP and the test case fails.

As part of the fix set all authtype and RSN encryptions in filter
so that driver is able to find the AP and send Assoc request.

Change-Id: If99df221b10c5276f902df2f0a52b87e4df1be2c
CRs-Fixed: 2192174
2018-02-22 06:01:22 -08:00
snandini
eaf915d1e0 Release 5.2.0.67A
Release 5.2.0.67A

Change-Id: I655925546f715a9097f148b9c1d070feb2fe604e
CRs-Fixed: 774533
2018-02-22 04:04:01 -08:00
Ashish Kumar Dhanotiya
191d164636 qcacld-3.0: Add ini parameter for chain selection optimization
Add ini support to Enable/Disable chain selection optimization
for one chain dtim.

Change-Id: I95999a4204f2d978abc9951688332400b9670f0e
CRs-Fixed: 2189150
2018-02-22 04:04:00 -08:00
snandini
659acb30da Release 5.2.0.67
Release 5.2.0.67

Change-Id: Iaf45ce1cea97b087c61c6a8a21ec2e9cf7032008
CRs-Fixed: 774533
2018-02-22 02:15:09 -08:00
Abhishek Singh
f723e3d31a qcacld-3.0: Cleanup the legacy scan code
Cleanup the unused legacy scan code.

Change-Id: Ia45cf0310c506d3cf6b897b31f9d28b4fac3197c
CRs-Fixed: 2193917
2018-02-22 09:57:12 +05:30
snandini
658b2c74e4 Release 5.2.0.66Z
Release 5.2.0.66Z

Change-Id: Id8707e1e3313485ad96feb07a8c12e589c276201
CRs-Fixed: 774533
2018-02-21 19:27:40 -08:00
Kiran Kumar Lokere
a934561748 qcacld-3.0: Add support to configure BA operating mode
Add support to configure BA operating mode using nl command

Change-Id: Ibc566d7e090b5f54636b8029e0e8eef9d26c9ad8
CRs-Fixed: 2181889
2018-02-21 19:27:40 -08:00
snandini
e98e97774b Release 5.2.0.66Y
Release 5.2.0.66Y

Change-Id: I50e32e73e377cf83658e74b5971dc24c592319b4
CRs-Fixed: 774533
2018-02-21 17:12:23 -08:00
Kabilan Kannan
b867c313fe qcacld-3.0: Fix TDLS memory leak in SSR and driver unload
In SSR or driver unloading case, directly exit may cause obj
leak. Free the objects in those cases, regardless of
sme_close_session status

Change-Id: Iaf0500aca23917f84c37848cd3abade66b7d7456
CRs-Fixed: 2187579
2018-02-21 17:12:22 -08:00
snandini
567e109c81 Release 5.2.0.66X
Release 5.2.0.66X

Change-Id: I9ded909060f9b327a14f334f0471d9cc2aa661a8
CRs-Fixed: 774533
2018-02-21 15:24:24 -08:00
Yeshwanth Sriram Guntuka
273889e7cc qcacld-3.0: Update bss count based on channel offset only for same band
In sap_update_rssi_bsscount, bss count for channels is
incremented based on offset only and does not consider
if channel on which scan result is received and the
offset channel belong to same band. This could result
in incorrect increment of bss count for some channels
when channels from both bands are present.

Fix is to increment bss count based on channel offset
only if both channels belong to same band and also
choose channel with lower bss count among the channels
having least weight.

Change-Id: Icee978fc40047782c79fe36cba29e3feed3c90aa
CRs-Fixed: 2191324
2018-02-21 15:24:23 -08:00
Vignesh Viswanathan
a842b94f04 qcacld-3.0: Free LIM Deauth/Disassoc requests during lim cleanup
If Deauth/Disassoc timer is currently running when lim_cleanup
happens due to SSR, the memory allocated for Disassoc/Deauth Req in
mac context is not freed leading to memory leak.

Free Deauth/Disassoc Requests stored in mac context in lim_cleanup
Also check for existing Deauth/Disassoc Request pointers stored in
mac context and free it before assigning it to point to the
current request.

Change-Id: Id7e221bd9d5061ecaa9b73a4fe1dc0f465f68aa9
CRs-Fixed: 2191131
2018-02-21 15:24:21 -08:00
Vignesh Viswanathan
08ad8a0a34 qcacld-3.0: Add vdev_id sanity check in wma_vdev_stop_resp_handler
In function wma_vdev_stop_resp_handler, resp_event->vdev_id is
received from the FW and is used to access the interfaces array in
wma_handle. This could lead to OOB read/write if the vdev_id
received from the FW is greater than or equal to max_bssid.

Add check to return failure if resp_event->vdev_id is greater than
or equal to max_bssid in wma_vdev_stop_resp_handler

Change-Id: I1af5312e6c45db3b9ba03fbf45de3d3c2a7fab20
CRs-Fixed: 2185477
2018-02-21 15:24:18 -08:00
snandini
e2e29b170f Release 5.2.0.66W
Release 5.2.0.66W

Change-Id: I629bf73393d560579a9dff5d8265f40a53d32938
CRs-Fixed: 774533
2018-02-20 21:47:55 -08:00
Arunk Khandavalli
2859fa1f8b qcacld-3.0: Add fw down check to validate context
Is firmware down check is added explicity in some api's and insome
northbound interfaces it is not added resulting in waiting for
firmware response even when the firmware is down.

Move firmware down check to validate context umbrella where
other driver states are validated.

Change-Id: I42a520f8a573825fde55a40dd03bb942f8a34b9c
CRs-Fixed: 2188938
2018-02-20 21:47:55 -08:00
snandini
64a17137ca Release 5.2.0.66V
Release 5.2.0.66V

Change-Id: I519db774a9b61c46ef85f3df9d373573ad2b5355
CRs-Fixed: 774533
2018-02-20 17:54:57 -08:00
Sachin Ahuja
16904db4ef qcacld-3.0: Avoid reinitialization of wlan_start_comp event
Currently in case of static driver, wififtmd which writes into the
bootwlan and wifi-service which writes into the state_ctrl_param
executes in parallel. The handler of boot_wlan and state_ctrl_param
in driver intialize this wlan_start_comp variable and wait for its
completion. If one handler is already waiting on this event and other
handler reinitalize the event then it leads to the instability.

To mitigate this issue
1) set the driver loaded state to true and then complete the
wlan_start_comp event.
2) create the state_ctrl_param fs only once the boot_wlan handler
wait is completed for probe.

CRs-Fixed: 2158126
Change-Id: Ia51811a0dd2c5b52f7eee781c4d4620174de3649
2018-02-20 17:54:57 -08:00
snandini
b4ad53d198 Release 5.2.0.66U
Release 5.2.0.66U

Change-Id: I5a3a7af592f66d2a61457a331f3ba6508941b7fb
CRs-Fixed: 774533
2018-02-20 17:05:46 -08:00
Abhinav Kumar
9449269c04 qcacld-3.0: Fix to pass appropriate buffer length to unpack RSN IE
In lim_set_rs_nie_wp_aiefrom_sme_start_bss_req_message, length passed
to unpack RSN IE is total length of WPA and RSN IE. So if only WPA IE
is present in assoc request, the RSN IE parser will try to validate the
buffer beyond the RSN IE and might fail as the buffer belongs to WPA IE.

Pass appropriate length to unpack RSN IE.

Change-Id: Ie679e67061e7ac622e8e76b285a32135a60ca6e8
CRs-Fixed: 2189926
2018-02-20 11:12:38 +05:30
snandini
cf6099f206 Release 5.2.0.66T
Release 5.2.0.66T

Change-Id: I1d77c390e3893495c23f8360de33700e0b48229e
CRs-Fixed: 774533
2018-02-16 19:46:25 -08:00
Naveen Rawat
368858c54f qcacld-3.0: Switch order of phymode and ch_width
As part of csa or opmode IE handling program phymode param after
ch_width since firmware expects channel width to be programmed
before phymode.

Change-Id: I46e3a5e1ce94fa53e27f821e70c29e209e591865
CRs-Fixed: 2186030
2018-02-16 19:46:25 -08:00
snandini
e9ff3fc419 Release 5.2.0.66S
Release 5.2.0.66S

Change-Id: I667afd67466b0e4280d7602bb1178c88f822e42b
CRs-Fixed: 774533
2018-02-16 18:58:35 -08:00
Arif Hussain
55aaaad921 qcacld-3.0: Set copy_to_user flag on ftm rsp command
If command type is FTM_IOCTL_UNIFIED_UTF_RSP set copy_to_user
flag to return proper data to userspace.

Change-Id: I5f4a1e147f3d1dc162001ceb69fa6823b3158787
CRs-Fixed: 2191046
2018-02-16 18:58:34 -08:00
snandini
1dd309b9b8 Release 5.2.0.66R
Release 5.2.0.66R

Change-Id: I2d60da2db850f27e41b7a33209337c38ae53ffb0
CRs-Fixed: 774533
2018-02-15 20:59:51 -08:00
Rajeev Kumar
1117fcf2af qcacld-3.0: Fix memory leak in HDD API iw_setnone_getint
HDD IOCTL __iw_setnone_getint is not releasing SME config memory
in error case properly and hence leading to memory leak. Fix this
SME config memory leak by properly freeing it before returning from
__iw_setnone_getint.

Change-Id: Ie50259a639edb2cfa63cd3bbe7cac8bb8ebb7654
CRs-Fixed: 2191041
2018-02-15 20:59:50 -08:00
snandini
56e3c3c7e7 Release 5.2.0.66Q
Release 5.2.0.66Q

Change-Id: I85ceb49e8aff16bec3b4e6078bede83a292c3ec1
CRs-Fixed: 774533
2018-02-15 19:35:00 -08:00
Varun Reddy Yeturu
85090c94e9 qcacld-3.0: Cancel scans during roaming
Upon receiving a ROAM_START from the firmware,
cancel the current scans which is similar to
initial connection which will avoid unnecessary
frames to the host during the connection process.

Change-Id: I0c9a4dd7cd4d58e0583cc44b5e33e88728eb70bb
CRs-Fixed: 2174921
2018-02-15 19:35:00 -08:00
snandini
df63a809a1 Release 5.2.0.66P
Release 5.2.0.66P

Change-Id: I8e25194a67393e3216e3149d273fe91fbd2e0911
CRs-Fixed: 774533
2018-02-15 18:45:45 -08:00
Naveen Rawat
2eb4c8309f qcacld-3.0: Fix suBFormee/suBFormer in handling assoc request
In handling assoc request make sure to use VHT IE or vendor VHT IE
appropriately for suBFormee/suBFormer calculation.

Change-Id: I3934a0c7229a8a400d1aa54fe3bf0bc3513d4d70
CRs-Fixed: 2159206
2018-02-15 14:38:59 -08:00
snandini
819e218bf2 Release 5.2.0.66O
Release 5.2.0.66O

Change-Id: I523c94c5fba1aab6aad54d5501fe2a085f7c2d7d
CRs-Fixed: 774533
2018-02-15 14:10:45 -08:00
Abhinav Kumar
5eda62d43c qcacld-3.0: Fix to avoid race condition during acs scan
Currently, driver allows multiple acs scan requests at a time. Due to this
race conditions can occur and causes "use after free" issue for variable
channelList. To avoid race condition, driver should allow only one acs scan
request at a time.

Add a new atomic variable to make sure that if one acs scan request
is in process, the driver should reject all further acs scan requests.

Change-Id: I7aa2f4df0dd4c6ca8ff791fe462d142fc7b3e691
CRs-Fixed: 2176354
2018-02-15 14:10:44 -08:00
snandini
0d86b5c428 Release 5.2.0.66N
Release 5.2.0.66N

Change-Id: Iccc9c63b8b19d2142a998324dfdad60418908b1d
CRs-Fixed: 774533
2018-02-15 10:15:11 -08:00
Hanumanth Reddy Pothula
855f7ef72f qcacld-3.0: Add txrx_get_pldev API to get packetlog object
Packetlog initialization is failing as txrx_get_pldev API is missing,
which returns paketlog object from the given pdev.

Add txrx_get_pldev API to get packet log object for the given pdev.

Change-Id: I2219a5c0964e76637ff8dbef92661b98cd22fb28
CRs-Fixed: 2189211
2018-02-15 10:15:11 -08:00
snandini
6de76520a6 Release 5.2.0.66M
Release 5.2.0.66M

Change-Id: I307d047aaf90fa89efc4d49a0c66408fc1c96603
CRs-Fixed: 774533
2018-02-15 09:20:28 -08:00
Yun Park
84c0cebe87 qcacld-3.0: Add IPA WDI Unified API support
Support for WDI2 in the Unified IPA WDI APIs.

Change-Id: Ife42a6a96ce80070de51f994e29ded252b3dd980
CRs-Fixed: 2183498
2018-02-15 09:20:27 -08:00
snandini
1b4e3017e8 Release 5.2.0.66L
Release 5.2.0.66L

Change-Id: I8aa68677a42ee82e539ff6ee5197e3497eee9bb4
CRs-Fixed: 774533
2018-02-15 01:49:23 -08:00
Vignesh Viswanathan
0a569299e8 qcacld-3.0: Check for SME state in hdd_get_sta_connection_in_progress
Currently in hdd_get_sta_connection_in_progress, conn_info.uIsAuthenticated
is used to check if the STA connection is in progress. However, this might
not reflect the actual state and might still lead to the deadlock scenario
fixed in I23ad1fc96882abeaae2d1b051659ea6d24b07428.

Add new API to check for SME state for key exchange in progress and
use it in hdd_get_sta_connection_in_progress.

Change-Id: I7d6199ed8c81a113c4e3f30538d74fb675e730ff
CRs-Fixed: 2189814
2018-02-15 01:49:23 -08:00
snandini
54cdde0c73 Release 5.2.0.66K
Release 5.2.0.66K

Change-Id: Ideaca7a6e6d59def4e7210fa33f0f6de590c3bda
CRs-Fixed: 774533
2018-02-14 21:12:15 -08:00