Commit Graph

10821 Commits

Author SHA1 Message Date
Dustin Brown
5f8955a994 qcacld-3.0: Add dispatcher_psoc_open() error handling
The error handling in cds_open(), in the event that the call to
dispatcher_psoc_open() fails, is currently empty. Add appropriate error
handing for this case by referencing cds_open() and cds_close().

Change-Id: I2b0d328e365efd67099bb8e6b529720c7b1904c5
CRs-Fixed: 2303785
2018-08-28 18:27:56 -07:00
nshrivas
814eb54845 Release 5.2.0.94B
Release 5.2.0.94B

Change-Id: I4750f2989c2810e47137f4ced327cba63aa32e99
CRs-Fixed: 774533
2018-08-28 14:46:24 -07:00
Krunal Soni
6c3859f433 qcacld-3.0: Add iwpriv command to set and get BA aging timeout value
Add new iwpriv command to set BA aging timeout value to hardware.

e.g. "iwpriv wlan0 set_ba_timeout <ac> <duration>" which should set
given duration in msecs for given access class.

"iwpriv wlan0 get_ba_timeout" which should get duration
value for each access class and display.

CRs-Fixed: 2254891
Change-Id: I79f79191c47376e414dceeb73b736a0a9610e3ae
2018-08-28 14:46:24 -07:00
Dustin Brown
da0262a36f qcacld-3.0: Add mac_open() error handling
The error handling in cds_open(), in the event that the call to
mac_open() fails, is currently stubbed out. Add appropriate error
handling for this case by referencing cds_open() and cds_close().

Change-Id: I6103050d5f2323250c9254a5a3add01fd0d34de3
CRs-Fixed: 2302968
2018-08-28 14:46:21 -07:00
nshrivas
bfa79e902c Release 5.2.0.94A
Release 5.2.0.94A

Change-Id: I308645077d6567bf7e5000a7e7d5264b8e13a1f1
CRs-Fixed: 774533
2018-08-28 13:09:43 -07:00
Vignesh Viswanathan
6b89ab57b5 qcacld-3.0: Fix psoc ref and memory leaks in mac_open
psoc ref count and mac_context memory is leaked in failure cases
of mac_open API.

Fix the psoc ref count and memory leaks in failure cases.

Change-Id: I39eaa7bef5e5c50b9b1a8833bec5e6da8cdf0d72
CRs-Fixed: 2302187
2018-08-28 13:09:42 -07:00
nshrivas
9658cff303 Release 5.2.0.94
Release 5.2.0.94

Change-Id: If60f4468068c9f4290ec0a876c57051617972bb9
CRs-Fixed: 774533
2018-08-28 09:14:54 -07:00
Dundi Raviteja
ffa9bf4798 qcacld-3.0: NULL pointer dereference in assoc completion handler
BSS description is dereferencing in hdd_association_completion_handler
without checking for NULL, which may cause NULL pointer dereference.

To address this, add check for BSS description before dereferencing.

Change-Id: I24f728fb6d66b4c07dfe39f3ac426f3d2153b917
CRs-Fixed: 2299797
2018-08-28 09:14:53 -07:00
nshrivas
fcbfbbe408 Release 5.2.0.93Z
Release 5.2.0.93Z

Change-Id: I4a9a834cc16b4c37759045d62c194d7ac39edc43
CRs-Fixed: 774533
2018-08-27 23:51:34 -07:00
Jianmin Zhu
c39613c592 qcacld-3.0: Enhance SAP concurrency check to cover AP channel switch case
SAP(Go) concurrency check is mainly used for two purposes:

1) When new GO/SAP session is coming up and needs to check if
this session's channel can co-exist with existing GO/SAP
sessions. For example, in case of single radio platform, MCC for
SAP/GO+SAP/GO is not supported, in such case this API should
prevent bringing the second connection.

2)There is already existing SAP+GO combination but due to upper
layer notifying LTE-COEX event or sending command to move one of
the connections to different channel. In such cases before moving
existing connection to new channel, check if new channel can
co-exist with the other existing connection. For example, one
SAP1 is on channel-6 and second SAP2 is on channel-36 and lets
say they are doing DBS, and lets say upper layer sends LTE-COEX
to move SAP1 from channel-6 to channel-149. In this case, SAP1
and SAP2 will end up doing MCC which may not be desirable result.

Add vdev_id check while checking for 2nd case. If connection with
given vdev_id exist then it is confirmed that it's a case of
channel switch rather than a new connection case.

Change-Id: I2535b38af353be2abd9c2ff636c06f3c5869969d
CRs-Fixed: 2300451
2018-08-27 23:51:34 -07:00
Lin Bai
5dc8ddb6ab qcacld-3.0: Remove redundant MACRO for lim_set_protected_bit
There are two lim_set_protected_bit() implementation with/without
WLAN_FEATURE_11W defined.
So no need to wrap this function with macro WLAN_FEATURE_11W.

Change-Id: I719f623d17ed0db655d33bda04b51937f1c1c5f4
CRs-Fixed: 2298804
2018-08-27 23:51:30 -07:00
nshrivas
f2e4eac572 Release 5.2.0.93Y
Release 5.2.0.93Y

Change-Id: I4e08002ba3673959e3ee98e29c29909a72e9d9f6
CRs-Fixed: 774533
2018-08-27 16:43:11 -07:00
Dustin Brown
35008baacb qcacld-3.0: Stop bus bandwidth work with timer
The bus bandwidth compute timer is a periodic timer which computes bus
bandwidth usage of associated adapters over a period of time. When the
last adapter disassociates, this timer is stopped. However, the timer
starts a work that is not stopped or flushed at this time. When the
device is under load from external subsystems, this work can get pushed
out past what is safe. When the bus bandwidth timer is stopped, also
stop and flush the bus bandwidth work to ensure safe memory access.

Change-Id: I32c15b42c9756341d1ecf534c05f87738fd24edb
CRs-Fixed: 2300697
2018-08-27 16:43:10 -07:00
Sourav Mohapatra
a5c7a26207 qcacld-3.0: Set recovery_in_progress flag for all the fw down events
Presently, recovery inprogress flag is set only when PLD_RECOVERY
is received but in cases of rejuvenate only PLD_FW_DOWN is received.

Set for the recovery in progress for all the firmware down events
so the unneccessary bug_on's will be avoided.

Change-Id: I654e9e5b02925ac21857369f87af6ca40d8dc815
CRs-Fixed: 2285278
2018-08-27 16:43:06 -07:00
Abhinav Kumar
cc959f1b44 qcacld-3.0: Possible use of un-initialized var while changing interface
Currently, driver calls hdd_alloc_station_adapter to initialize the
completion variables for a particular adapter only if mode of interface
is STA or P2P. In case when driver changes its STA + SAP mode to
STA + STA mode by calling hdd_open_concurrent_interface, driver is not
able to initialize init_completion variable for new STA interface. So
while processing fw commands (for new STA interface) which uses
completion variables, driver leads to the use of uninitialized
variables issue.

Create new function cmn_init_completion to initialize completion
variables for all interfaces while opening the HDD adapter.

Change-Id: Iae8ec1a86dd4084c9f5b39ec0d90e16182212df9
CRs-Fixed: 2288919
2018-08-27 16:43:03 -07:00
nshrivas
f183a2e746 Release 5.2.0.93X
Release 5.2.0.93X

Change-Id: I4186f28a68a64f9659bbcff9e07ee9793201cf5f
CRs-Fixed: 774533
2018-08-27 08:53:23 -07:00
Jingxiang Ge
ec11359f6d qcacld-3.0: Fix session can't be closed issue
There is race condition for a small window. The scenario
as below.

1 SAP is starting, and dfs cac begins but without finished.
2 SSR happens, wlan begins to call hdd_reset_all_adapters.
  In hdd_reset_all_adapters, sap_ctx->sessionId is reset to invalid.
3 In hdd_hostapd_sap_event_cb, adapter sessionId is set to
  sap_ctx->sessionId, after this step, adapter sessionId is changed
  from valid sessionId to 0xff.
  In hdd_reset_all_adapters->hdd_vdev_destroy, vdev is released
  but session can't be clean up as invalid sessionId. adapter->event_flags
  can't be clear which cause hdd_vdev_destroy can be called multi times.

Change as below.
1 cancel cac timer at the beginning of hdd_reset_all_adapters and
  before wlansap_set_invalid_session.
2 before send eSAP_START_BSS_EVENT, check if sap_ctx->sessionId
  is valid.

Change-Id: Ifaad62cd008f7769b059f36530455d4e734522e4
CRs-Fixed: 2293072
2018-08-27 08:53:22 -07:00
nshrivas
eb839f15af Release 5.2.0.93W
Release 5.2.0.93W

Change-Id: Ia3b84ca855b26c8a294111801aea913e86126f22
CRs-Fixed: 774533
2018-08-27 07:00:35 -07:00
Nachiket Kukade
989bb351cb qcacld-3.0: Advertise NAN support only if INI is enabled
Under get_supported_features vendor command driver is advertising
NAN capability by checking only the Firmware support. If NAN is
disabled through INI it should not advertize this support.

Add an INI parameter check before advertizing NAN capability.

Change-Id: Ib48044a04500d6619b97d5ca1c3431ee64d7e096
CRs-Fixed: 2288204
2018-08-27 07:00:35 -07:00
nshrivas
9d39f27edf Release 5.2.0.93V
Release 5.2.0.93V

Change-Id: Ib8967c32fd6a0442cee8f2390426feb4db8ebe2f
CRs-Fixed: 774533
2018-08-27 04:47:41 -07:00
Sourav Mohapatra
b1260134ad qcacld-3.0: Rectify deinit sequence leading to NULL ptr dereference
In function hdd_wlan_de_init, the hdd_context is fetched via
cds_get_context. This context is then NULL checked. In the failure case
of this check, the hdd_context is still dereferenced which shall lead to
null pointer dereference.

Add proper jump statement to take care of the proper order of init and
deinit

Change-Id: Ied0ac42371315d0286cdcc71e6e0e10ed2ff5fa1
CRs-Fixed: 2299794
2018-08-27 04:47:41 -07:00
nshrivas
f0fd7d2dc0 Release 5.2.0.93U
Release 5.2.0.93U

Change-Id: I5b347b89f69d79d5373e7a5cec22c19092c1d02b
CRs-Fixed: 774533
2018-08-27 03:09:44 -07:00
Abhinav Kumar
2c0b342950 Revert "qcacld-3.0: Host sends VDEV_DELETE cmd to fw before stop_bss"
While handling IPA event in case if, __wlan_ipa_wlan_evt() queue
WLAN_AP_DISCONNECT cmd for later processing in work-queue context and
in the meanwhile sme close session deletes vdev then, as part of work
queue context driver process WLAN_AP_DISCONNECT and sends
WMA_IPA_OFFLOAD_ENABLE_DISABLE cmd to firmware for the VDEV which is
already deleted by sme_close_session. This result asserts in firmware.

This reverts commit Ief9318bb476b480fd52f4155a0788a34c1e2ed53

Change-Id: I6128fb489fc40cc7ed01cbdf9c419a6a6b20c6d4
CRs-Fixed: 2295672
2018-08-27 03:09:43 -07:00
Bala Venkatesh
b13a3c24f5 qcacld-3.0: Do not Teardown tdls links if new interface is p2p device
As part of any change interface TDLS links are toredown and tdls
state set to disabled in FW. The assumption here is before adding
new interface disable TDLS mode as TDLS is not supported in
concurrency. Due to recent changes in framework,
Driver may receive the change interface to P2P Device mode
after STA connection then teardown is not expected as
STA + P2P Device modes does not comes under concurrent operation.

Check for current and new interface types before disabling TDLS.

Change-Id: I26cfab077b3f83c64687479fba5c7a7c01491a52
CRs-Fixed: 2301650
2018-08-27 03:09:39 -07:00
nshrivas
95bab38b2b Release 5.2.0.93T
Release 5.2.0.93T

Change-Id: I6b598c13cba67c0f7d3bc3cb4a7bd66514d13662
CRs-Fixed: 774533
2018-08-27 01:31:59 -07:00
Liangwei Dong
5b25e3418b qcacld-3.0: Change RSNOpaque Min len to 2
WPA2 Security Improvements test plan case 4.2.2
Scenario F: RSN version Field is truncated to 1
octet. That means the test bed will send assoc
request with RSN ie total size 3.
Current driver unpack_core will return
DOT11F_INCOMPLETE_IE and doesn't extract the
incomplete RSN ie data.

lim_check_wpa_rsn_ie will have no chance to
run dot11f_unpack_ie_rsn to reject the assoc
request frame because the assoc_req->rsnPresent
is 0.

Change RSN Opaque Min Len to 2 (data min len 0),
so that the unpack_core can extract the RSN ie
even though it is "INCOMPLETE", and then
the later lim_check_wpa_rsn_ie can reject such
assoc request.

Change-Id: Icba37840ea6eb1cc1c2c225efd9ec58757606eea
CRs-Fixed: 2297852
2018-08-27 01:31:58 -07:00
nshrivas
c49255ad5a Release 5.2.0.93S
Release 5.2.0.93S

Change-Id: I6b1fdd36e6e5786f3aa8f0a3bf883d01c399967e
CRs-Fixed: 774533
2018-08-25 02:11:32 -07:00
Rajeev Kumar Sirasanagandla
4133d86be3 qcacld-3.0: Use CSA to change SAP DFS channel
If STA interface is added after softap is started on DFS channel,
then SAP is stopped and re-started on non-dfs channel which is selected
using driver internal acs. But, internal acs is now obsolete. Therefore,
select non-dfs channel from preffered channel list and use SAP CSA
instead of restart.

Change-Id: I95e50c3ffbce35cf30cc9a06f0f14c9e60eb3e3f
CRs-Fixed: 2301895
2018-08-25 02:11:31 -07:00
nshrivas
8e142dd6b0 Release 5.2.0.93R
Release 5.2.0.93R

Change-Id: Id84014a0dcfc11d3f214ee2634736caf81d04862
CRs-Fixed: 774533
2018-08-24 18:35:33 -07:00
Mohit Khanna
7032200a77 qcacld-3.0: Support for DP RX Threads
Add support for DP RX Threads as a part of the FR. Multiple RX threads
can be enabled from the ini. The code is added in a new DP module
outside of the cmn project.

Change-Id: Ief6ee955f13c5e527986307371b8e45677cb9700
CRs-Fixed: 2256446
2018-08-24 18:35:32 -07:00
Arif Hussain
eec28b5d97 qcacld-3.0: Add validation code in wma_set_pmo_caps()
Make sure wma is not null before dereferencing.

Change-Id: Ie6b8d3c48257de12ae45ffe0a15079642c29cb30
CRs-Fixed: 2299789
2018-08-24 18:35:25 -07:00
Liangwei Dong
433a8dbfad qcacld-3.0: Reject Invalid RSN IE Assoc Request
If SAP configured with RSN security IE, peer should
include compatible RSN parameters.
Reject the Assoc request if peer include invalid RSN
IE.

Change-Id: I10083d7feb669fe5d1c2650ae3c3092e5b28169e
CRs-Fixed: 2294876
2018-08-24 18:35:21 -07:00
Jeff Johnson
c58612a792 qcacld-3.0: Remove first_scan_done from the MAC context
The MAC context first_scan_done flag is a remnant from a prior version
of the driver which is initialized but then never read or written.
Since it is obsolete, remove it.

Change-Id: I81b371cb768bd2d042d3f3bf0991d2b27b953b3c
CRs-Fixed: 2298274
2018-08-24 18:35:16 -07:00
nshrivas
14518e2388 Release 5.2.0.93Q
Release 5.2.0.93Q

Change-Id: I301cfcaa8ebc95ecacf07fffba5bb28e45b9a48d
CRs-Fixed: 774533
2018-08-24 15:15:55 -07:00
Abhinav Kumar
1a15ed2800 qcacld-3.0: Add SRD channel check in restart SAP
Currently the driver doesn't have a check to bring
up a SAP on STA SCC channel if its a SRD channel
and does force SCC on it, even if SRD master mode
is not supported.

Fix is to check the SRD ini before SAP bringup
on the STA channel

Change-Id: I17f7df9ed973ecc6669f0d36a8c390c71624019b
CRs-Fixed: 2302737
2018-08-24 15:15:55 -07:00
nshrivas
e5d42d7d18 Release 5.2.0.93P
Release 5.2.0.93P

Change-Id: Ifa5a8932b66c66652864238b0b1860b56ac0c587
CRs-Fixed: 774533
2018-08-23 15:25:35 -07:00
Arunk Khandavalli
1574505022 qcacld-3.0: Send the correct error to HDD if self peer creation fails
During the vdev attach if the self peer creation fails from the protocol
stack the correct vdev delete is sent to the firmware but the success error
is propogated back to the HDD and the wmi vdev set commands are sent
to the firmware with invalid vdev id.

Change-Id: Ida3964e5a629f53e41ffc50b53216762727fd33d
CRs-Fixed: 2299941
2018-08-23 15:25:34 -07:00
nshrivas
e031272a7c Release 5.2.0.93O
Release 5.2.0.93O

Change-Id: I85f25e7269204903f191312b6632a8bca6376bf1
CRs-Fixed: 774533
2018-08-23 13:50:15 -07:00
Bala Venkatesh
be1f59f0d2 qcacld-3.0: Initialize SAP mandatory chan list
Initialize SAP mandatory chan list.

CRs-Fixed: 2301749
Change-Id: I126d67da1bfe8426cd3a7b031e97aba907e6155a
2018-08-23 13:50:14 -07:00
nshrivas
2145a37ff5 Release 5.2.0.93N
Release 5.2.0.93N

Change-Id: I464cbbfa18b714c8d52a5fcd80fc53b5ec2628c8
CRs-Fixed: 774533
2018-08-23 09:38:35 -07:00
Krunal Soni
fa6c7f5f9e qcacld-3.0: Move set/get timestamp logic from Datapath to Control path
As part of Iab0862eda2392bd516c8ba0b913441b8e0d4c493 , timestamp of
last received frames was introduced to block excessive mgmt frames
being sent as part of Denial of service.

Move that logic to control path to remove dependency on data-path.

CRs-Fixed: 2280235
Change-Id: Idd7617782e71ee187eef7fcb3523c05b49f82094
2018-08-23 09:38:34 -07:00
nshrivas
be622fb896 Release 5.2.0.93M
Release 5.2.0.93M

Change-Id: I627ae7bf9a1447d8164930f274792980306bcacf
CRs-Fixed: 774533
2018-08-22 07:46:44 -07:00
Kai Liu
aa88d2f9c2 qcacld-3.0: Define macro WLAN_SYSFS for feature sysfs interface
Disable this feature for MOBILE_ROUTER product, since some MOBILE_ROUTER
platform will attach two wlan cards with separate wlan driver,
during second driver loading process, it will report a warning of
"cannot create duplicate filename" as node with same name has been
created after first driver was loaded.

Change-Id: I9e06439b3a6dacdf4eb5ae87898338ab1eeb8b16
CRs-Fixed: 2295391
2018-08-22 07:46:43 -07:00
nshrivas
50fdbbd9f3 Release 5.2.0.93L
Release 5.2.0.93L

Change-Id: I578cb43f5f778f635f8f183d36bb6badce8aeafa
CRs-Fixed: 774533
2018-08-22 06:08:45 -07:00
Kiran Kumar Lokere
e37c8559a1 qcacld-3.0: Update dfs region enum names
Update dfs region enum names to fix the compilation
due to name change.

Change-Id: If3ed7c5d2eb9ce855f62df98301196395e7febf9
CRs-Fixed: 2300595
2018-08-22 06:08:45 -07:00
nshrivas
16796952eb Release 5.2.0.93K
Release 5.2.0.93K

Change-Id: I8857d3d427f4345ea1e9648b5ea49089c821d466
CRs-Fixed: 774533
2018-08-22 03:52:41 -07:00
Varun Reddy Yeturu
692eed125d qcacld-3.0: Check for WMA context before sending TWT command
Check for WMA context before sending the TWT enable
command to the firmware.

Change-Id: I27c131773506c89fc7ba3e95fa58daa1258733fc
CRs-Fixed: 2299786
2018-08-22 03:52:41 -07:00
nshrivas
c7a369d642 Release 5.2.0.93J
Release 5.2.0.93J

Change-Id: I0a7a451ba8f76cc2358834c3e2b87e67f5618b9d
CRs-Fixed: 774533
2018-08-21 20:51:04 -07:00
Dustin Brown
ffd584f1c2 qcacld-3.0: Check recovery enabled before unloading
In cds_trigger_recovery(), we avoid recovery if the wlan driver is
unloading. While this is ideal for production devices, we would like to
panic in debug builds for offline analysis. Move the check to see if the
wlan driver is unloading to immediately after the check to see if we
should panic or not.

Change-Id: I07cc624295416ca555eb4d847f709cf30e6672bb
CRs-Fixed: 2299903
2018-08-21 20:51:03 -07:00
nshrivas
c98e9b8f1d Release 5.2.0.93I
Release 5.2.0.93I

Change-Id: I053ff0778b5166a2624021d993dd9f5550557eec
CRs-Fixed: 774533
2018-08-21 14:16:27 -07:00
Dustin Brown
3111677bb2 qcacld-3.0: Reduce SNR monitoring log
Reduce an SNR monitoring log in HDD to prevent spamming dmesg.

Change-Id: If2779ef469894f1c7982cda7e7b48ddc1c0e5b7c
CRs-Fixed: 2297425
2018-08-21 14:16:27 -07:00
nshrivas
54e5106397 Release 5.2.0.93H
Release 5.2.0.93H

Change-Id: I9cd9a80721118463887ff504d97784c40db7ab45
CRs-Fixed: 774533
2018-08-21 01:51:19 -07:00
Vignesh Viswanathan
a03a58e9f5 qcacld-3.0: Drop Probe Requests on Scan Queue if queue is full
Drop Probe request frames before posting on Scan Queue if the queue
is already having too many beacon/probe frames to process.

Change-Id: Iaad3d3ea0b50edf7ae7a9c5437ac5c210fe6a97f
CRs-Fixed: 2298581
2018-08-21 01:51:19 -07:00
nshrivas
91ad4c374b Release 5.2.0.93G
Release 5.2.0.93G

Change-Id: Ifb112df1d60adcca00af9f8edbdfdb762b5f5b92
CRs-Fixed: 774533
2018-08-21 00:17:11 -07:00
Jeff Johnson
83144ce3f3 qcacld-3.0: Remove fMiracastSessionPresent from MAC context
The MAC context fMiracastSessionPresent flag is only referenced by
macro IS_MIRACAST_SESSION_PRESENT(), and this macro is unused. Since
the fMiracastSessionPresent flag is obsolete, remove it and the macro.

Change-Id: I5ad6e5b56bd0476e7894c431b56b9ad5730923d4
CRs-Fixed: 2300050
2018-08-21 00:17:11 -07:00
nshrivas
52f2b8e737 Release 5.2.0.93F
Release 5.2.0.93F

Change-Id: I5eebbbee9900b2e7c4f1402081380182ef7b1253
CRs-Fixed: 774533
2018-08-20 22:32:28 -07:00
Jeff Johnson
9743eb7f49 qcacld-3.0: Refine the extscan stop BSSID hotlist logic
Make the following updates to the extscan stop BSSID hotlist logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: I01e29a96fded829c734532b021aeea1960bba641
CRs-Fixed: 2294273
2018-08-20 22:32:28 -07:00
Jeff Johnson
bacb4804c4 qcacld-3.0: Fix mac_handle test in hdd_set_dwell_time()
Recently change "qcacld-3.0: Use mac_handle_t in wlan_hdd_ioctl"
updated the nomenclature used in HDD. During the implementation of
this change a NULL check of mac_handle in hdd_set_dwell_time() had a
"!" removed, incorrectly changing the logic. Restore the correct logic
for NULL-checking mac_handle.

Change-Id: I2bb8393d5adb3156795b3b722d839812419e4995
CRs-Fixed: 2299812
2018-08-20 22:32:23 -07:00
nshrivas
81f2599153 Release 5.2.0.93E
Release 5.2.0.93E

Change-Id: Ia57ac5d3b131153c600d406e65800fafd2456805
CRs-Fixed: 774533
2018-08-20 16:55:01 -07:00
Dustin Brown
485bbad241 qcacld-3.0: Fix cds_trigger_recovery PERF build issue
QDF_DEBUG_PANIC() is stubbed out for PERF builds, leading to a warning
in cds_trigger_recovery() because @call_info is unused. Extract the
trigger recovery handling into its own function with proper types
instead of void*, and make cds_trigger_recovery_work() a thin wrapper
over this to do the type conversion. This will address the unused
variable warning, and provide stronger type checks via the compiler.

Change-Id: Idf712bdf30d2c6c338219a0327221fe6a0b0b27a
CRs-Fixed: 2299813
2018-08-20 16:55:01 -07:00
nshrivas
03b6363540 Release 5.2.0.93D
Release 5.2.0.93D

Change-Id: I024baa0af811d97c85b93884fd829f965d49b29f
CRs-Fixed: 774533
2018-08-20 15:15:11 -07:00
Vignesh Viswanathan
c6812821f7 qcacld-3.0: Add support for wildcard OUI in Action OUI framework
Add support for wildcard OUI 0xFFFFFF in action OUI framework.
When the OUI FFFFFF is defined for some action OUI ini and bit 0
of info_presence bit is set to 0 then the check for vendor OUI
in vendor specific IEs and the vendor IE data checks are skipped
and other checks like MAC, Capabilities are done during connection.

Change-Id: I6e996c5d79f4f7bd91e11134b1b8ba69a1ff0253
CRs-Fixed: 2293167
2018-08-20 15:15:11 -07:00
nshrivas
8f0f7dc641 Release 5.2.0.93C
Release 5.2.0.93C

Change-Id: I15abdcd2b05df123abce69ea63fb114a0a4bad24
CRs-Fixed: 774533
2018-08-20 10:16:42 -07:00
Will Huang
7049baea18 qcacld-3.0: Fix ACS delayed worker running after adapter stopped
While ACS delayed worker scheduled and is running the function
wlan_hdd_cfg80211_start_acs(), ACS_PENDING has already been cleared by
wlan_hdd_cfg80211_start_pending_acs() before it, so the later coming
stop sap event can't cancel the running delayed worker and free the
sap context which need access by delayed worker.

Fix by clear ACS_PENDING after wlan_hdd_cfg80211_start_acs(), and move
cancel ACS delayed worker before cancel any scan, it can cancel ACS
scan invoke by delayed worker and avoid race condition.

CRs-Fixed: 2289364
Change-Id: Ibd771fc199a0778ac1d8f1f04ba22b49014437de
2018-08-20 10:16:41 -07:00
Jeff Johnson
57b264e259 qcacld-3.0: Remove ftm_msg_processor_callback from MAC context
The MAC context ftm_msg_processor_callback is a remnant from the
legacy FTM support. Since this callback is no longer used, remove it.

Change-Id: Ibd375bcd91900654315681f7f9b56bf100090942
CRs-Fixed: 2298895
2018-08-20 10:16:38 -07:00
nshrivas
e3ee841970 Release 5.2.0.93B
Release 5.2.0.93B

Change-Id: Iec0fbfae11539631e92a075d31869175926605d2
CRs-Fixed: 774533
2018-08-20 05:29:46 -07:00
Vignesh Viswanathan
21c58cb8c3 qcacld-3.0: Add MLME CFG items and APIs
Add the basic infra for MLME CFG items and the APIs to be used from
other components.

Change-Id: I39654de8f7266089d574b85437a19e8d21f91249
CRs-Fixed: 2293825
2018-08-20 05:29:46 -07:00
nshrivas
2455337736 Release 5.2.0.93A
Release 5.2.0.93A

Change-Id: Ibd94db911ea7af608c5819d60d62b5ce84346aa6
CRs-Fixed: 774533
2018-08-20 03:12:36 -07:00
Abhishek Singh
f06214b902 qcacld-3.0: Remove vdev stop during hidden ssid restart
During ssid restart currently driver send vdev stop and then
restart. There is no need to send vdev stop in this scenario and
direct vdev start is enough to set hidden ssid.

Thus remove vdev stop during hidden ssid restart.

Change-Id: Ide6826f73ecd51bbafa875ed547efeff4a410397
CRs-Fixed: 2298636
2018-08-20 03:12:35 -07:00
nshrivas
a5ca0c1060 Release 5.2.0.93
Release 5.2.0.93

Change-Id: I187d14c287329535b0c9a4cea5f1ab504e00db98
CRs-Fixed: 774533
2018-08-18 03:42:40 -07:00
gaurank kathpalia
d88ef885e5 qcacld-3.0: Add check for DBS mode in start bss
Currently the driver doesn't handle the nss update
if a prior connection is already present in DBS
mode. Suppose if a STA is already connected in
5ghz and the SAP comes up in 2.4ghz, the beacon
template should be updated with NSS = 1

Fix is to check whether the current hw_mode is in
DBS or not, and change the nss in the beacon template
accordingly

Change-Id: I54ead1fd26d705a821160b5bc5d816df1d2ab8f4
CRs-Fixed: 2288307
2018-08-18 03:42:39 -07:00
nshrivas
6d2579ba49 Release 5.2.0.92Z
Release 5.2.0.92Z

Change-Id: I52dd284ef90f88123a6b1c4c3e493ac10dd3a219
CRs-Fixed: 774533
2018-08-17 19:17:17 -07:00
Vignesh Viswanathan
74f6fc1d31 qcacld-3.0: Force cleanup vdev for FW down case in vdev_detach
Currently VDEV Force cleanup happens only if FW is in recovery state
and not if target_ready is set to false. However, since FW down flag
is set for recovery case also, even during SSR, the VDEV Force clean up
is not triggered.

Force cleanup vdev for FW down case also in wma_vdev_detach.

Change-Id: I3ba6dc92c1c5ea1090f9f5dc9062775de6db1954
CRs-Fixed: 2298278
2018-08-17 19:17:16 -07:00
nshrivas
a53b5cab0a Release 5.2.0.92Y
Release 5.2.0.92Y

Change-Id: Ic57096ae35da49565e2269f0060f3291c90449db
CRs-Fixed: 774533
2018-08-17 17:44:50 -07:00
Dustin Brown
a7bb6ae8f1 qcacld-3.0: Reduce excessive HDD logs
Several HDD logs have been identified as being excessive. Reduce the
logging level of these logs to avoid spamming dmesg.

Change-Id: I49e0f91c5d66051f9e6ffd991d86505a11faa346
CRs-Fixed: 2298385
2018-08-17 17:44:49 -07:00
nshrivas
4c6eeb72d0 Release 5.2.0.92X
Release 5.2.0.92X

Change-Id: I6a0a3226e7f9024afa53c7021e2fbdef26c382cf
CRs-Fixed: 774533
2018-08-17 16:13:13 -07:00
Dustin Brown
2a24d7c1d9 qcacld-3.0: Add caller/line info to recovery log
To speed up recovery trigger debugging, pass the caller's function name
and line number, such that the group needing to do the initial triage
can be easily identified via the panic message.

Change-Id: Ibac141a62a990adf7a781d7ef64544d92ff4e31b
CRs-Fixed: 2298194
2018-08-17 16:13:13 -07:00
Manjunathappa Prakash
1bc742d65e qcacld-3.0: Do not log DP info logs on the console
Reduce the log level so that logs appear on cnss-diag log instead on
console.

Change-Id: I66ba3a941b9c6be9ec4fb04af39f9362822787d2
CRs-Fixed: 2296841
2018-08-17 16:13:06 -07:00
nshrivas
4d35c2e7b7 Release 5.2.0.92W
Release 5.2.0.92W

Change-Id: I6e63acfafd06273801c70ce6e11e2a034df8b26a
CRs-Fixed: 774533
2018-08-17 11:02:58 -07:00
Yeshwanth Sriram Guntuka
e7303b8db6 qcacld-3.0: Reduce log level for few prints to debug
Reduce log level for few prints to debug to avoid flooding
of prints to console.

Change-Id: I514585cc87d51ead15fb1f40d45f62023628d9bb
CRs-Fixed: 2295815
2018-08-17 11:02:57 -07:00
nshrivas
d10434794d Release 5.2.0.92V
Release 5.2.0.92V

Change-Id: Ida3b718ecd5f724e11a6bcb4102f89236a0294ee
CRs-Fixed: 774533
2018-08-17 08:48:34 -07:00
Alok Kumar
3dd311dd48 qcacld-3.0: Add support to check if LRO is enabled or not
Add an API to validate if LRO is enabled or not based on
FEATURE_LRO flag.

Change-Id: I85bce60d3f7b47a57fba1122d058d17c474c456c
CRs-Fixed: 2298731
2018-08-17 08:48:34 -07:00
nshrivas
6489f95545 Release 5.2.0.92U
Release 5.2.0.92U

Change-Id: I2aeb4fde7e780189355d4d4547c01f3147dcdce4
CRs-Fixed: 774533
2018-08-17 06:21:18 -07:00
Liangwei Dong
32b1bfcbe0 qcacld-3.0: Release sap_ctx for DFS event handling
Do sap_ctx release for all DFS "Ignore" case.
Otherwise, the ref count may mismatch.

Change-Id: Ib3d7c416ec3942f4d0317825fa504bc2b5abd968
CRs-Fixed: 2297787
2018-08-17 06:21:17 -07:00
nshrivas
e37e7f88c4 Release 5.2.0.92T
Release 5.2.0.92T

Change-Id: I4371c40c4fd324f5245dfc36ec872ff23411f54e
CRs-Fixed: 774533
2018-08-17 04:40:08 -07:00
Lihua Liu
8944216d43 qcacld-3.0: Fix an OOB issue in bmi_sign_stream_start()
Remaining may be greater than its original value when
(remaining & 0x3)!=0, then OOB occurs when memcpy.To address
this, align the remaining after doing memcpy.

Change-Id: I3e39a791a76a272e82beb6561375e26ca84ec0f4
CRs-Fixed: 2259721
2018-08-17 04:40:05 -07:00
nshrivas
daf40e37c6 Release 5.2.0.92S
Release 5.2.0.92S

Change-Id: I61756cc024bae6cdd39c2a25a40003a062a909d8
CRs-Fixed: 774533
2018-08-16 21:20:51 -07:00
Dustin Brown
7dede43bec qcacld-3.0: Fix misleading indent
lim_process_ap_ecsa_timeout() contains a misleading indent. Reduce the
indentation of the affected code.

Change-Id: Ic18ebf88b0a754c8088005d22a9cec94313fa550
CRs-Fixed: 2297513
2018-08-16 21:20:50 -07:00
Dustin Brown
64204d2ddc qcacld-3.0: Abort hdd_update_tgt_cfg on pdev failure
Currently, hdd_update_tgt_cfg() continues execution if allocation of the
pdev object fails. Unsurprisingly, this leads to numerous access issues.
Abort hdd_update_tgt_cfg() if allocation of the pdev fails.

Change-Id: I1c820994510a10949ef546cac06a8eb97ca0adf1
CRs-Fixed: 2297412
2018-08-16 21:20:46 -07:00
nshrivas
fee4f18e6f Release 5.2.0.92R
Release 5.2.0.92R

Change-Id: Ib0540d396eca2b7c2e71b94c356875a524c4a509
CRs-Fixed: 774533
2018-08-16 19:39:43 -07:00
Jeff Johnson
549bcc7b34 qcacld-3.0: Remove struct ani_scan_req
struct ani_scan_req is obsolete and no longer used, so remove it.

Change-Id: Ia21ddef67412d86295ab76deb2ed02a91d2c917f
CRs-Fixed: 2296765
2018-08-16 19:39:43 -07:00
nshrivas
c82e6177af Release 5.2.0.92Q
Release 5.2.0.92Q

Change-Id: I12aff955d2778ec3be261280743c54d1d7341ae4
CRs-Fixed: 774533
2018-08-16 00:47:53 -07:00
Qiwei Cai
16b98589f9 qcacld-3.0: Allocate csr_roam_roam_session dynamically
Allocate csr_roam_roam_session dynamically to reduce build size.

Change-Id: Ic11cc40ca47077ac18f944bd0e62b40e520b9b74
CRs-Fixed: 2290519
2018-08-16 00:47:53 -07:00
nshrivas
7b89326509 Release 5.2.0.92P
Release 5.2.0.92P

Change-Id: I22857ce828ad2a84896399055e9184a947d76747
CRs-Fixed: 774533
2018-08-15 19:40:50 -07:00
Liangwei Dong
98e8cf68ed qcacld-3.0: Ignore Radar event for non-dfs SAP
For SAP (2.4G) + SAP (5g dfs chan), the radar event
will be posted to all vdevs. 2.4 SAP will run into
failure in random chan selection.
Fix by ignoring radar event for Non dfs channel SAP.

Change-Id: I739f2a84f17941e501dfe52c9cd12afc6a42425f
CRs-Fixed: 2294077
2018-08-15 19:40:49 -07:00
nshrivas
871c6abaa4 Release 5.2.0.92O
Release 5.2.0.92O

Change-Id: I13bc22d25e6e3245df5b3b7daa8e124e345bc398
CRs-Fixed: 774533
2018-08-15 12:37:51 -07:00
Pragaspathi Thilagaraj
934275cc0a qcacld-3.0: Enhance SAP beacon template updation during DFS CSA
The hosts sends the beacon template to firmware through the
command WMI_BCN_TMPL_CMDID. The firmware sends a TX complete
indication via the WMI_OFFLOAD_BCN_TX_STATUS_EVENT and upon
receiving this host decrements the CSA count.
The hosts waits until the csa count becomes zero and then sends
vdev restart to firmware. There are some issues with this
implementation when 10 beacons with CSA are taking more time
than 1 sec. This is because in STA+SAP case sometime the
WMI_OFFLOAD_BCN_TX_STATUS_EVENT is received after in 200-300ms.
If the host doesn't receive the channel change event, it gets
struck in the channel change.

To avoid this scenario, send the beacon template to the firmware
for every beacon interval without waiting for the beacon TX
complete indication from FW except for the first beacon template
updation. Introduced a new timer (ap_ecsa_timer) to update the
firmware with the beacon template.

Change-Id: I377768b87c96fd5064aa04d1ed5434a475e656ef
CRs-Fixed: 2294661
2018-08-15 07:44:41 -07:00
nshrivas
6cc2224d2e Release 5.2.0.92N
Release 5.2.0.92N

Change-Id: I71aa432883c4858e030a2977b7f346c0788ccbc7
CRs-Fixed: 774533
2018-08-15 01:17:48 -07:00
Dustin Brown
e5fa197b07 Revert "qcacld-3.0: Collect F/W dump when host F/W out of sync"
Revert I457c20f6ba908cac32cfc9b27fbaf980f1ec174d, which removes the
check to ensure recovery has been enabled via configuration before
starting the recovery process. This is a critical feature for internal
debugging. The check was moved into cds_trigger_recovery() to prevent
callers from bypassing this configuration and unconditionally asserting
the target firmware. Restore that check now.

Change-Id: Ieb347cfcd0eecd24f005d374c0fead07c34f3705
CRs-Fixed: 2296038
2018-08-15 01:17:47 -07:00
Dustin Brown
83044c26d3 qcacld-3.0: Remove redundant recovery-enabled checks
cds_trigger_recovery() already checks for various conditions before
actually triggering recovery. One of these checks ensures that recovery
is enabled, but some callers are checking to see if recovery is enabled
before calling cds_trigger_recovery() as well. Because of this, some
important checks are skipped, and crashes can occur when they should
not. Remove the redundant checks at the call sites for
cds_trigger_recovery() so that all of the recovery conditions are
properly handled, and the wlan driver avoids crashing when it should
not.

Change-Id: I8c26a002b66496a1eb06263f3f8b91ead739e3ac
CRs-Fixed: 2296008
2018-08-15 01:17:42 -07:00
Qiwei Cai
50a2108ab3 qcacld-3.0: Allocate g_dph_node_array dynamically
Allocate g_dph_node_array dynamically to reduce build size.

Change-Id: Iffd9c2e205f9ee6b5365ab2e326198677fa57de2
CRs-Fixed: 2290501
2018-08-15 01:17:38 -07:00
nshrivas
0b7542a2b7 Release 5.2.0.92M
Release 5.2.0.92M

Change-Id: Ia126fd98ff4a073777e7a9666276dc8d592cc98f
CRs-Fixed: 774533
2018-08-14 23:32:53 -07:00
Qiwei Cai
7b9f9e5fe2 qcacld-3.0: Allocate sme_qos_cb dynamically
Allocate sme_qos_cb dynamically to reduce build size.

Change-Id: Ia51b9b6b96fb239198fcab256b955cd4a4b4da5f
CRs-Fixed: 2290541
2018-08-14 23:32:52 -07:00
Dustin Brown
6a8d39b6ed qcacld-3.0: Reduce excessive logging
Reduce or removed several excessive log in order to avoid spamming
dmesg.

Change-Id: I818c8f88f66ad11a3c3bc5d5a12799e83c02e5ff
CRs-Fixed: 2296680
2018-08-14 23:32:49 -07:00
Qiwei Cai
880fd27972 qcacld-3.0: Allocate cfgIniTable dynamically
Allocate cfgIniTable dynamically to reduce build size.

Change-Id: I6cc3ea8c20978abfd89829279ed3694301aeed56
CRs-Fixed: 2292494
2018-08-14 23:32:45 -07:00
nshrivas
c094ad02ac Release 5.2.0.92L
Release 5.2.0.92L

Change-Id: I603f4f067de0d36fddbd9470fbc84b3dbbb675a3
CRs-Fixed: 774533
2018-08-14 21:44:10 -07:00
hqu
b6441f2c72 qcacld-3.0: Initialize weight_copy when weight is SAP_ACS_WEIGHT_MAX
When channel 4 is unsafe channel in 2.4g LTE coex ACS case,
the weight for channel 4 will be calculated as 0 by function
sap_sort_chl_weight_ht40_24_g, it's wrong because weight_copy
doesn't be initialized in this case, so acs channel select
may choose wrong channel to start sap.

Fix is to add initialization for weight_copy when weight is
SAP_ACS_WEIGHT_MAX.

Change-Id: I4aa0fb133774d9980146a9ceae9b91154bd15bbc
CRs-Fixed: 2282371
2018-08-14 21:44:07 -07:00
nshrivas
bcc8b3abe3 Release 5.2.0.92K
Release 5.2.0.92K

Change-Id: Ib8cb15602da48b3659eef9c219bf5a8d3c09e480
CRs-Fixed: 774533
2018-08-14 20:02:23 -07:00
Dustin Brown
380cb4592f qcacld-3.0: Reject sched scan requests on non-STA ifaces
Scheduled scan (a.k.a Preferred Network Offload, PNO) is intended to be
used only for station interfaces. However, it has been observed that
userspace will send scheduled scan requests for non-station interfaces.
Reject requests to start or stop a scheduled scan on non-station
interfaces.

Change-Id: If5abd242f134518ac4e3d942c1513c66b5c50ff3
CRs-Fixed: 2295101
2018-08-14 20:02:22 -07:00
Tushnim Bhattacharyya
332b74c364 qcacld-3.0: Change the level of info level logs in PE
Change the level of info level logs in PE to avoid clutter on console log.

Change-Id: I185cc52f3deffe7cb7826d6d8375899a35ce459b
CRs-Fixed: 2294985
2018-08-14 20:02:18 -07:00
Abhinav Kumar
0a8461343d qcacld-3.0: Possible mem leak while handling WMA_DEL_STA_SELF_REQ
In wma_vdev_resp_timer(), while handling WMA_DEL_STA_SELF_REQ if
wma_crash_on_fw_timeout() is true, then wma_vdev_resp_timer initiate
SSR and memset iface structure without freeing iface->del_staself_req.
This results mem leak in wma_vdev_resp_timer().

Free all the dynamic memory from iface structure in wma_vdev_deinit()
instead of handling them separately.

Change-Id: I7b16ddc9dfb70638c6f895bd97cd9c106bfad595
CRs-Fixed: 2293099
2018-08-14 20:02:15 -07:00
nshrivas
70ef8f4a4d Release 5.2.0.92J
Release 5.2.0.92J

Change-Id: Ib082c46cc17ef755e28783743c03e404035255fe
CRs-Fixed: 774533
2018-08-14 16:50:05 -07:00
Qiwei Cai
c778c0853c qcacld-3.0: Allocate global_mac_context dynamically
Allocate global_mac_context dynamically to reduce build size.

Change-Id: I67e9f20f55d2289d9b97756adaea0666f64d6afc
CRs-Fixed: 2290537
2018-08-14 13:22:20 -07:00
Jeff Johnson
0c7b09020b qcacld-3.0: Clean up the WMA Context
Clean up the WMA context structure which currently has the following
issues:
1) Fields are defined that are unused
2) Fields are defined that are missing documentation
3) Fields are defined with documentation inline rather than in the
   documentation block
4) Documentation exists for fields that are no longer present

Change-Id: Ia9fb52c3967818c0a12ade7a15f0c353494f56de
CRs-Fixed: 2296105
2018-08-14 13:22:17 -07:00
nshrivas
a159c99595 Release 5.2.0.92I
Release 5.2.0.92I

Change-Id: I99485147d931557ffb779822a63fba3e9e6af3fb
CRs-Fixed: 774533
2018-08-14 02:15:43 -07:00
Rajasekaran Kalidoss
ef058525b9 qcacld-3.0: Add vdevId in tAggrAddTsParams
pe session_id should not be used as vdev_id.
Add a vdevId field to tAggrAddTsParams struct
and fill smeSessionId as vdevId and pass this
down.

Change-Id: Id021dda35a32f7870277d405c85a0878d7baa3f3
CRs-fixed: 2272126
2018-08-14 02:15:43 -07:00
Nirav Shah
e6194ac8ad qcacld-3.0: Update data path statistics log level
Do not required to print function and line number
for data path statistics function which is invoked
by ioctl.
Change data path statistics to info print so
that it can be printed in dmesg as well.

Change-Id: I4b5ea4202255ace71dbb6f9a4bbff6f93e496425
CRs-Fixed: 2278885
2018-08-14 02:15:39 -07:00
nshrivas
6482d612f6 Release 5.2.0.92H
Release 5.2.0.92H

Change-Id: Ib7e748ef77921e864c83a0013da33b72d9f109de
CRs-Fixed: 774533
2018-08-13 23:15:18 -07:00
Qiwei Cai
e689a26cd8 qcacld-3.0: Featurize some vendor commands
Featurize some vendor commands to compile out when not needed.

Change-Id: I6757b5764930efbd9cd1c7ab74e5990e96267421
CRs-Fixed: 2270461
2018-08-13 23:15:17 -07:00
nshrivas
2bc86209b8 Release 5.2.0.92G
Release 5.2.0.92G

Change-Id: I01ec99530f89863b24097f6a979a0d0a7662f1b0
CRs-Fixed: 774533
2018-08-13 21:37:32 -07:00
Pragaspathi Thilagaraj
210362a1c2 qcacld-3.0: Fix memory corruption in pe_free_nested_messages
When peer creation fails in wma_set_link_state, wma sends the
WMA_SET_LINK_STATE_RSP msg to LIM and Lim frees the msg->bodyptr
But there is a situation occurs where after this wma_peer_create
fails, mc thread stop sys event also occurs where the mac_stop
is invoked which calls the pe_free_msg -> pe_free_nested_messages
In pe_free_nested_messages, if the msg type is
WMA_SET_LINK_STATE_RSP, we free the msg->bodyptr->callbackArg.
This callbackArg points to the PE session. Trying to free the
PE session results in memory corruption.

Just pass the session id as callback argument when the callback
is lim_post_join_set_link_state_callback.

Change-Id: I27f9127685ac7ef8d215b135f1625e8e2f225fc0
CRs-Fixed: 2287827
2018-08-13 21:37:31 -07:00
nshrivas
534cd0868d Release 5.2.0.92F
Release 5.2.0.92F

Change-Id: I6954f59554d9e87d9e63b159910f02960fed6eb2
CRs-Fixed: 774533
2018-08-13 18:12:40 -07:00
Sandeep Puligilla
c3588e5f57 qcacld-3.0: Handle peer assoc failure
Peer assoc command expects a response from firmware so peer
assoc timer is started at wma once command sent to firmware.
In the failure scenario peer assoc command is dropped at wma due to
unavilable 11b rates but timer was not stopped. So at later point of
time timer got expired and it triggered timeout error handling.

Dont start the timer in failure scenario and send failure response to LIM
if the peer assoc command failed to send command to firmware.

Change-Id: Iaa644fbe7940502fc07b5110787c2dc5b58f4612
CRs-Fixed: 2292610
2018-08-13 18:12:40 -07:00
Jianmin Zhu
54cfab35b7 qcacld-3.0: Do concurrency check when change SAP channel by iwprv
After bring up SAP(2G)+SAP(5G) DBS mode, initiate CSA on SAP2
from 5G to 2G (DBS mode to SCC mode) with cmd:
	iwpriv wlan1 setChanChange X
assert will happen.

Fix: SAP+SAP on same band on Helium is not PORed case yet,
Do concurrency check for path: iwpriv wlan0 setChanChange X.

Change-Id: Iacd6f2b4c49f4bb52739f602e7ba1e8cd9be04bc
CRs-Fixed: 2289366
2018-08-13 18:12:36 -07:00
nshrivas
47c66ef668 Release 5.2.0.92E
Release 5.2.0.92E

Change-Id: I28e78c61f560989d736a71a4e47f38e61169e094
CRs-Fixed: 774533
2018-08-13 16:28:44 -07:00
Rajeev Kumar Sirasanagandla
301aacb4e3 qcacld-3.0: Avoid camel case notation for SAP FSM states
Kernel checkpatch is throwing style issues due to use of camel case
notation for SAP FSM states.

To fix this, rename states according to kernel coding guidelines.

Change-Id: Ia09cccb7c51a61436d067710a763bed7f2437820
CRs-Fixed: 2295580
2018-08-13 16:28:43 -07:00
nshrivas
49e73071b2 Release 5.2.0.92D
Release 5.2.0.92D

Change-Id: I5e020caf884baebecf830dfa6952535574c2d17b
CRs-Fixed: 774533
2018-08-13 14:41:55 -07:00
Varun Reddy Yeturu
a47f08f3dc qcacld-3.0: Do not attempt to delete peer when it is not created
In preassoc state, if the set link state has failed to create the
peer, then send back a failure status to the upper layers and
ensure that the set link state for failure is not called again
because this will eventually call vdev stop and lead to a vdev
stop response and then lead to a peer delete attempt which is
really not needed since the peer has not been created at all.

Change-Id: I265726000204bab51c429a2d00cdd599d8064170
CRs-Fixed: 2286684
2018-08-13 14:41:54 -07:00
Pragaspathi Thilagaraj
766c76f8db qcacld-3.0: Send DISCONNECT_DONE_IND from lim_send_sme_disassoc_ntf
When a station connected to one of the sap interface reassociates
to the other sap interface, the driver triggers internal
disconnect for that station with disassocTrigger =
eLIM_DUPLICATE_ENTRY. Once this station is deleted from firmware
we send add sta for the station lim_send_sme_disassoc_ntf on the
sap interface to which the station is to be connected. But the
first SAP interface doesn't send eWNI_SME_DISCONNECT_DONE_IND to
remove eSmeCommandWmStatusChange.

send eWNI_SME_DISCONNECT_DONE_IND from lim_send_sme_disassoc_ntf
in case eLIM_DUPLICATE_ENTRY.

Change-Id: Ibc3cc8121928fe83cc1d8cf3e98419bf5f7f7d1c
CRs-Fixed: 2286783
2018-08-13 14:41:50 -07:00
nshrivas
fba9ff69ed Release 5.2.0.92C
Release 5.2.0.92C

Change-Id: Ife5742efe7c1b90706514d706c56e5cd00382118
CRs-Fixed: 774533
2018-08-13 12:57:50 -07:00
Dustin Brown
3f0d7103fb qcacld-3.0: Fix misleading indent
hdd_parse_disable_chan_cmd() misleadingly indents code after a for loop
without brackets in such a way that it is easy to assume the code is
inside the for loop, but it is not. Not only does this cause build
failure for some configurations, but is dangerously confusing for future
readers. Remove the misleading indentation in
hdd_parse_disable_chan_cmd().

Change-Id: I4af2bd4b05719354db730ef39a3b6ec18d6f842b
CRs-Fixed: 2290196
2018-08-13 12:57:49 -07:00
Jeff Johnson
89cd1ff6aa qcacld-3.0: Remove scan_id_counter from WMA context
The scan_id_counter in the WMA context is initialized but never
incremented or read. Since it is not actually used, remove it.

Change-Id: Id159ba6ff36ae2a3977978f8799cf16aeee5300d
CRs-Fixed: 2294150
2018-08-13 12:57:46 -07:00
Jeff Johnson
b1a6806814 qcacld-3.0: Remove driver_type from WMA context
The driver_type field in the WMA context is written but never
read. Since it is not actually used, remove it.

Change-Id: I646fea6fc5f08bf090980de755055b58f6fec0cd
CRs-Fixed: 2294149
2018-08-13 12:57:42 -07:00
Jeff Johnson
0cbd0a7fd8 qcacld-3.0: Remove struct hw_mode_idx_to_mac_cap_idx
Change "qcacmn: Remove struct extended_caps" (Change-Id
I96fd072b7d6b58a9c237165fcba7ed8c8da0eae3) in the
qca-wifi-host-cmn project removed the only reference to
struct hw_mode_idx_to_mac_cap_idx. Since this struct is
now obsolete, remove it.

Change-Id: I1b57c09d18ec52574e34487122fe526b10b9f51f
CRs-Fixed: 2294148
2018-08-13 12:57:38 -07:00
nshrivas
5c6e604e10 Release 5.2.0.92B
Release 5.2.0.92B

Change-Id: I87a7e295490f8ec20c2c4fafde9ff8984a729034
CRs-Fixed: 774533
2018-08-11 06:18:08 -07:00
Abhishek Singh
809c41a5f6 qcacld-3.0: Reset wait for key before sending close session
If wait for key is set during close session, the request is dropped
in CSR and thus during SSR the BSS peer and SELF peer are not
deleted resulting in peer leakage.

Fix this by resetting wait for key before sending close session.

Change-Id: I139640ad5ad473372bce24413f7ace1cef32fbc3
CRs-Fixed: 2294417
2018-08-11 06:18:07 -07:00
nshrivas
d89e09f4e4 Release 5.2.0.92A
Release 5.2.0.92A

Change-Id: Ib546082cb1adbd7dd499cfd268ec9ac8811c2566
CRs-Fixed: 774533
2018-08-11 00:29:26 -07:00
Kiran Kumar Lokere
8d685d199d qcacld-3.0: Add support to override HE MU EDCA params
Add support to override HE MU EDCA params to defaults.

Change-Id: I43c51fe1022612ee7e2c6e8177727fa6cebe958c
CRs-Fixed: 2284457
2018-08-11 00:29:25 -07:00
nshrivas
4143c3937b Release 5.2.0.92
Release 5.2.0.92

Change-Id: Iad36107b8d1fa074a91af294695fe100ed28b448
CRs-Fixed: 774533
2018-08-10 20:45:17 -07:00
Manikandan Mohan
dcd0fdfcc0 qcacld-3.0: Update for converged NAN config params
Update driver to use NAN config params based converged CFG
component. Cleanup hdd config references to nan ini params.

Change-Id: I5af85d68ee53ad557e64523f7a1719e328536926
CRs-fixed: 2290360
2018-08-10 20:45:16 -07:00
nshrivas
7bab3b4886 Release 5.2.0.91Z
Release 5.2.0.91Z

Change-Id: I8546ee603ea3da8de6f06943e0864ef0532069cf
CRs-Fixed: 774533
2018-08-10 18:11:04 -07:00
Pragaspathi Thilagaraj
ad7a5f5b3c qcacld-3.0: Remove e_sme_delete_sta_session from active command list
The command e_sme_delete_sta_session command is serialized and
is not removed from the active command list in the response path
at csr_process_del_sta_session_rsp().

Remove the command e_sme_delete_sta_session from active command
list in csr_process_del_sta_session_rsp

Change-Id: Iff36460055bd73705575110d88c3eb75c8052afa
CRs-Fixed: 2292607
2018-08-10 18:11:03 -07:00
nshrivas
f082cd13ed Release 5.2.0.91Y
Release 5.2.0.91Y

Change-Id: I8fae6d63a4a8c6b83025bb37f16fc6a8f6b158ea
CRs-Fixed: 774533
2018-08-09 21:51:29 -07:00
Krunal Soni
05c914ff29 qcacld-3.0: Don't process excessive duplicate auth mgmt frames
When PEER sends auth mgmt frame to DUT and if DUT doesn't ACK
back, PEER sends auth frame again and again till it gets ACK or
timeout occurs.

It has been observed that in busy environment, PEER ends up sending
same AUTH frame almost 100+ times within 20ms apart due to ACK lost.
in such scenario DUT gets busy processing AUTH frames from PE queue
and other low priority queues suffer from starvation.

to fix the situation, drop duplicate auth frames by checking retry
field and sequence number.

CRs-Fixed: 2290133
Change-Id: I1b545dab4d416facc24c3762b86cd1e73981de5c
2018-08-09 21:51:29 -07:00
nshrivas
ac7382e150 Release 5.2.0.91X
Release 5.2.0.91X

Change-Id: I81d9c8ec325a4404a8ba6be749be62dd140ab676
CRs-Fixed: 774533
2018-08-09 16:24:44 -07:00
Dundi Raviteja
4016e93fdd qcacld-3.0: Remove unused variable from hdd_ctx structure
Remove set_antenna_mode_cmpl variable from hdd_ctx structure
as it is not using anywhere.

Change-Id: Ifc3395f944b10da9537815a94c5484312190141a
CRs-Fixed: 2289642
2018-08-09 16:24:43 -07:00
nshrivas
3c6d8d82a8 Release 5.2.0.91W
Release 5.2.0.91W

Change-Id: I2f8a019dc0eb10b811c26bbb23caa5b16b17488f
CRs-Fixed: 774533
2018-08-09 14:34:07 -07:00
Arif Hussain
8b54a03f96 qcacld-3.0: Refactor cp status callback handlers
Duplicate stats buffer in the callback so that all
allocations get freed by its owner, this will avoid
memory leak issue because of race condition between
umac and upper layer.

Change-Id: Id18d75eb9adc46a6147634eb5b1e0babe32c7c37
CRs-Fixed: 2292038
2018-08-09 14:34:07 -07:00
Vignesh Viswanathan
f9a704c92a qcacld-3.0: Add support for 1x1 connect with 1 Tx/Rx Chain action OUI
Add support for new 1x1 connect with 1 Tx/Rx Chain action OUI to be
parsed and sent to the FW. From host during connection, the behaviour
is same as existing connect 1x1 action OUI where nss is sent to 1 to
the FW, but the FW takes the decision to use only one Tx/Rx chain
based on the OUIs defined in the new action ID.

Change-Id: Ia464209043dc73bcc71577c43b28fbe13e780c23
CRs-Fixed: 2264326
2018-08-09 14:34:02 -07:00
Pragaspathi Thilagaraj
1e0e6db964 qcacld-3.0: Check for target ready before sending peer create
When modem shutdown is triggered and HOST driver is in the
middle of a connection attempt, it doesn't check if the fw target
is ready. Instead the driver tries to join multiple AP with same
ssid and for each connection it tries to send peer add as part
of wma_set_link_state.

Add check to see if FW is down in wma_create_peer. Return
failure to LIM instead of sending add peer to firmware.

Change-Id: I4642c844bcc1d7f32888b0f89db5c11ee84c41fe
CRs-Fixed: 2267967
2018-08-09 14:33:58 -07:00
Yeshwanth Sriram Guntuka
bde430efe6 qcacld-3.0: Check for target ready before sending wmi command
SAP stop is in progress when FW down event is received
from platform driver. Vdev_stop command is not sent to
firmware due to target ready check but same check is not
present for self peer_delete command. This results in
assert in firmware since vdev_stop command is not received
before self peer_delete command.

Fix is to set wmi_stopinprogress as part of wma shutdown
notifier callback.

Change-Id: I91fa6aaffe4f35b446a3c8748f168e83620bf4b0
CRs-Fixed: 2266786
2018-08-09 14:33:54 -07:00
nshrivas
3c5c29341d Release 5.2.0.91V
Release 5.2.0.91V

Change-Id: I5803736aee70a35ed42ba6476a5b1447ab9f6fe0
CRs-Fixed: 774533
2018-08-09 08:49:32 -07:00
Vignesh Viswanathan
1fb8d4409d qcacld-3.0: Send del_self_sta_resp during VDEV detach if target not ready
Currently if the target is not ready the WMA VDEV requests are not
sent to the FW. In SAP case where the target is not ready and the
VDEV Stop request has not been sent to the FW, when VDEV detach is
done after VDEV stop, since there is no VDEV stop request previously,
bug_on is triggered.

Send del_self_sta_resp to LIM with success status if target is not
ready.

Change-Id: I2e1d469b2beb05dd8fbb7b07976c65c0c7409d99
CRs-Fixed: 2252602
2018-08-09 08:49:28 -07:00
Vignesh Viswanathan
3d47803b30 qcacld-3.0: Stop Roaming before handing CSA for STA
Currently if the FW sends a Roam Start while the host is handling the
CSA Offload event and triggering a vdev_restart, the FW asserts
when the it receives the vdev_restart as it has already started the
Roam.

Disable roaming by sending RSO Stop when the CSA offload event is
received from the FW and restart RSO when channel switch is complete.

Change-ID: I33e9ce6307bc36994eb5f4a99434cb76ce5d3184
CRs-Fixed: 2289047
2018-08-09 08:49:24 -07:00
nshrivas
abc2b862b8 Release 5.2.0.91U
Release 5.2.0.91U

Change-Id: I712bd583cab3675820aedde85d6398ec6ed13385
CRs-Fixed: 774533
2018-08-09 06:38:37 -07:00
Rajeev Kumar Sirasanagandla
2759a00d80 qcacld-3.0: Change random scan mac attributes to be optional
Change random scan mac_addr and mac_addr_mask attributes
to be optional similar to the standard NL80211 scan trigger interface.
When these attributes are not present, configure default values in
such a way that the random addresses generated are not multicast
but locally administered.

Change-Id: I81acfe05d7f08d1b8f77179816da9df05f2eb233
CRs-Fixed: 2280250
2018-08-09 06:38:36 -07:00
wadesong
caad7c70bc qcacld-3.0: Clear privacy settings if concurrency check fails
Before STA connection starts, privacy settings are imposed to
HDD layer and then checked against concurrency settings. But
when the check for privacy/concurrency fails, the previously
populated privacy settings are not cleared because the CSR
roaming state machine doesn't goto privacy setting clearing
stage under such circumstances.

Add API to clear the privacy settings in HDD layer when
privacy checking against concurrency fails, so that old
privacy settings will not interfere with new settings when
connection starts next time.

Change-Id: Ic8eb28def3839195301e9bbb358f876dc3d46642
CRs-Fixed: 2274858
2018-08-09 06:38:33 -07:00
Liangwei Dong
3fa5cba537 qcacld-3.0: Limit concurrency of STA(WAPI)
When STA role is coexisting with other sessions(P2P, SAP or IBSS),
WAPI encryption mode is not allowed.
Add a new API to check if the connection/start request should
be rejected when:
1) A STA with WAPI encryption is to be connected while there
   is at least one concurrent session already running.
2) A new session is to be started while there is already a STA
   connection with WAPI encryption enabled.

Change-Id: Id3cc90a63a1b502a3a0783ebbc1af33f96620559
CRs-Fixed: 2271280
2018-08-09 06:38:31 -07:00
nshrivas
8832fbf957 Release 5.2.0.91T
Release 5.2.0.91T

Change-Id: I614d439c9f1c9ddd499bb6fa5ad09f948f277234
CRs-Fixed: 774533
2018-08-09 04:24:12 -07:00
gaurank kathpalia
859c936a02 qcacld-3.0: Avoid beacon parsing on channels not in scan list for ACS
When STA is already up on some 2.4Ghz channel and SAP needs to be started
on some 5Ghz channel through ACS, scan channel list contains only 5Ghz
channels. But scan results contains beacons on STA 2.4Ghz channel as well
which is getting parsed contributing to bsscount and rssi on that 2.4Ghz
channel which should not be the scenario as bsscount should be 0 and rssi
should be -100 on this 2.4Ghz channel as it is not present in the scan
channel list sent by HOST to fw.

Give max weight to those channles in the sap_compute_weight
but take the effect of those channels on the channels
present in the ACS scan list.

Change-Id: I51d14aa1bb9b280c6c4d9d0085de86cc7339a4f5
CRs-Fixed: 2290744
2018-08-09 04:24:10 -07:00
Jeff Johnson
1148cb0bb2 qcacld-3.0: Refine the extscan start BSSID hotlist logic
Make the following updates to the extscan start BSSID hotlist logic:
1) Exclusively use the Unified WMI data structures.
2) Use the new wmi_unified_extscan_start_hotlist_monitor_cmd() API.
3) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: I4d9f982177bc61a751ba0e7437fe55482dfd2723
CRs-Fixed: 2291946
2018-08-09 04:24:06 -07:00
nshrivas
f45f5b03f2 Release 5.2.0.91S
Release 5.2.0.91S

Change-Id: Ib396d360f5862b0bc6ea55d663aa205039bc0c0d
CRs-Fixed: 774533
2018-08-08 21:00:42 -07:00
Jeff Johnson
a1c6055996 qcacld-3.0: Remove obsolete data structures from wma.h
wma.h contains a large number of obsolete macros and data structures
which are unused, so remove them.

Change-Id: Ideb5e64b5486c3ea652777b27cbb5d1960b154d5
CRs-Fixed: 2292529
2018-08-08 21:00:41 -07:00
nshrivas
e83bb0127a Release 5.2.0.91R
Release 5.2.0.91R

Change-Id: I75f5d2176849495c72d6cfc401c43666282ee67e
CRs-Fixed: 774533
2018-08-08 14:50:38 -07:00
Alok Kumar
2d35a9e331 qcacld-3.0: Fix check_after_deref(REVERSE_INULL) issue
In __hdd_hard_start_xmit, Null-checking for skb under drop_pkt
suggests that it may be null, but it has already been dereferenced
on all paths.

Remove this Null-check for skb under drop_pkt as skb cannot be NULL.

Change-Id: I6c8e816652951a95cff26b26c48b8f39a096b095
CRs-Fixed: 2259256
2018-08-08 14:50:37 -07:00
Alok Kumar
3a6327d4e7 qcacld-3.0: Remove the logs during RX thread buffer post
APPS watchdog bark timeout happens due to continuous excessive
logging of "Not able to allocate context" in ol_txrx_offld_flush
and in ol_rx_data_process. Remove these extra logs.

Change-Id: Idf96ca584d77c68ad771a150604d1b9ca65ba3eb
CRs-Fixed: 2289492
2018-08-08 14:50:34 -07:00
nshrivas
9935d3b87c Release 5.2.0.91Q
Release 5.2.0.91Q

Change-Id: Id5720890839c370e6d7312ce06ab5b68c73808b9
CRs-Fixed: 774533
2018-08-08 12:53:43 -07:00
Venkata Sharath Chandra Manchala
9ac1620c82 qcacld-3.0: Add conditional QCA6390_HEADERS_DEF flag
Add a conditional compilation QCA6390_HEADERS_DEF flag to compile
htt_rx_restitch_mpdu_from_msdus.

Change-Id: I6b526f2dd5d56338e520ec138512b7cf2d849d0c
CRs-Fixed: 2275699
2018-08-08 12:53:42 -07:00
nshrivas
b21c3e0ff7 Release 5.2.0.91P
Release 5.2.0.91P

Change-Id: I65fa900ed74a5cb2620169826f9e732880c60103
CRs-Fixed: 774533
2018-08-08 09:11:46 -07:00
Dustin Brown
a8700cc8f5 qcacld-3.0: Add caller to validate adapter logs
The error logs in hdd_validate_adapter are mostly useless without
knowing where it was called from. To avoid adding additional logs at all
of the call sites, log the caller information from hdd_validate_adapter
itself.

Change-Id: If953412c8435069c0ab87649fbf54130eb81cd09
CRs-Fixed: 2292705
2018-08-08 09:11:41 -07:00
nshrivas
ef22a0610b Release 5.2.0.91O
Release 5.2.0.91O

Change-Id: I3fd5ae7597071bdc609642b2df9b58b5db169fa5
CRs-Fixed: 774533
2018-08-08 05:41:39 -07:00
Dustin Brown
6350061075 qcacld-3.0: Internalize validate session Id logs
Nearly all the callers of wlan_hdd_validate_session_id() log largely the
same message. Such copy-pasted code has poor maintainability. Instead,
internalize these failure logs into the function itself, which allows us
to control the logs driver-wide much more easily.

Change-Id: Ib7bfa8020492a5cb1df2283f99b827095dfb7578
CRs-Fixed: 2292702
2018-08-08 05:41:35 -07:00
nshrivas
810927e8d5 Release 5.2.0.91N
Release 5.2.0.91N

Change-Id: I678460b688d4e4b233d10ddb270a4296230db469
CRs-Fixed: 774533
2018-08-08 03:39:56 -07:00
Jianmin Zhu
16b94b1725 qcacld-3.0: Reject host suspend in driver open state
After insmod wlan.ko, don't ifconfig wlan0 up, driver will be in
DRIVER_MODULES_OPENED instead of DRIVER_MODULES_ENABLED state.
If host suspend at this time, PCIE will suspend too, when resume,
PCIE bus driver may reset ROME soc during link reconnection, copy
engine is reset too.
When host send wmi cmd to F/W, copy engine will access 0 address,
SMMU fault will happen.

There is logic inside ROME hardware&firmware, if PDEV_SUSPEND or
WOW_ENABLE WMI command is sent to firmware, firmware will decuple
the reset path between ROME pcie interface and ROME soc,
then ROME soc will not be reset if pcie bus driver toggle the
PERST pin to ENDP, only pcie interface part is reset.

Change-Id: I3b6344f69ea70248953af155efd00adf7914e98b
CRs-Fixed: 2243667
2018-08-08 03:39:55 -07:00
nshrivas
157f2c684d Release 5.2.0.91M
Release 5.2.0.91M

Change-Id: Ic3eb96d526f2e2044f5e5e58bce17860126ff516
CRs-Fixed: 774533
2018-08-07 22:35:42 -07:00
Dustin Brown
1e3ec6b86d qcacld-3.0: Reduce logs with high occurrence
Several logs show up repeatedly in dmesg. Reduce the following logs to
help avoid spamming dmesg:
 * wlan_ipa_wdi_meter_notifier_cb()
 * hdd_print_netdev_txq_status()
 * hdd_wlan_start_modules()
 * hdd_wlan_stop_modules()
 * csr_nonscan_pending_ll_peek_head()
 * sme_qos_statustype()

Change-Id: Ic5ca059f258dee92ffaa4b0ecca47df41b424c11
CRs-Fixed: 2292710
2018-08-07 22:35:41 -07:00
nshrivas
ce7c81d253 Release 5.2.0.91L
Release 5.2.0.91L

Change-Id: I83fba8b17b7d36eb929ce5e2f1e75ef22a0b41ac
CRs-Fixed: 774533
2018-08-07 18:10:27 -07:00
Tushnim Bhattacharyya
3f78053b87 qcacld-3.0: Do HW mode change based on all the candidate APs for STA
The driver currently changes the hw_mode based upon
the first candidate found in the scan list, and tries
to connect to it. It may happen that the connection
fails, and the STA then tries to connect to the AP
on same channel as the concurrent adapter.
It would result in hw_mode = DBS, as it is not
updated after  connection success/failure.
Also if the first AP channel is in same band as that
of concurrent adapter, and the connection fails,
and the STA tries to connect to an AP in a different
band, this too is not allowed as hw_mode is not DBS

Fix is to change the hw_mode based upon the scan list.
If the driver finds any scan result which may lead to
DBS connection, the hw_mode should be set to DBS.
Once the connection is done or failed, the driver
can check and update the hw_mode again.

Change-Id: I42ffe0c63371e048771e2b9b00b887e9c6c65d6c
CRs-Fixed: 2288572
2018-08-07 18:10:26 -07:00
Rajeev Kumar Sirasanagandla
4015d747a2 qcacld-3.0: Remove eSAP_CH_SELECT from SAP FSM
Since, internal channel select is no longer in use and is obsolete.
Therefore, remove eSAP_CH_SELECT state from SAP state machine.

Change-Id: I7960999b983ddc1b5f6048aacbe92c500350a49b
CRs-Fixed: 2288258
2018-08-07 18:10:22 -07:00
nshrivas
0487219431 Release 5.2.0.91K
Release 5.2.0.91K

Change-Id: Ib31e87d9f17d6d11656c9da607ce7073a4d4feac
CRs-Fixed: 774533
2018-08-07 15:57:32 -07:00
Zhu Jianmin
994174cf69 qcacld-3.0: Collect F/W dump when host F/W out of sync
When host F/W out of sync issue is found in driver, assert
command is needed to send to firmware to collect firmware dump
even self recovery isn't enabled on Rome,  or no enough
firmware info for debug.

Change-Id: I457c20f6ba908cac32cfc9b27fbaf980f1ec174d
CRs-Fixed: 2289539
2018-08-07 15:57:32 -07:00
Yeshwanth Sriram Guntuka
6c909ebd44 qcacld-3.0: Avoid queuing multiple WM status change cmd for same peer
In SAP mode, one peer sends multiple deauth frames which
results in queuing multiple WM status change cmd which
is added at head of queue. WM status change cmd is added
at head of queue for other peers which results in delay
in processing the cmd for first peer. The WM status cmd
is processed and peer is deleted and connection is
initiated by the same peer. The remaining WM status change
cmd is now processed and del_sta is triggered. On receiving
del_sta response, cleanup_trigger in sta_ds is checked
and eWNI_SME_DISASSOC_RSP message is posted to SME instead
of eWNI_SME_DISCONNECT_DONE_IND since the sta_ds entry is
added newly. This will result in active command timeout
since WM status change cmd is not removed from active queue.

Fix is to drop deauth or disassoc frame after the first one
is processed and use normal priority to queue WM status
change cmd.

Change-Id: Ib87fa7496d4adb6e25c30de657ce62101ca6f263
CRs-Fixed: 2291442
2018-08-07 15:57:28 -07:00
nshrivas
0026feb041 Release 5.2.0.91J
Release 5.2.0.91J

Change-Id: I7a3f0c207de4fe45629f5997c82b554e5e1d0b1e
CRs-Fixed: 774533
2018-08-07 08:41:24 -07:00
Min Liu
f2bc4850fa qcacld-3.0: Delete peer when vdev start timeout
When failure status is received in vdev start response from FW,
host will call wma_remove_peer to delete peer.
However, this operation is not done in the timeout handler of vdev
start request and it will lead to peer leak when vdev start response
failed to be received from FW.
Add peer deletion in vdev start request timeout handler accordingly.

Change-Id: I419369d09be1bd4b7e19e45b11256190fd2ec267
CRs-Fixed: 2288937
2018-08-07 08:41:24 -07:00
Sravan Kumar Kairam
a886120770 qcacld-3.0: Do rx inorder replenish for fragmented packets
Currently for fragment packets received legacy rx buffer replenish
is done which does not take in to account number of msdu count but
depends on fill count. Variable fill count is not protected and the
value becomes incorrect if AP sends both the fragmented and normal
packets at the same time. This leads to rx buffer replenish failure
and eventually data stall. To fix this do rx inorder replenish for
fragmented packets similar to normal ones if rx full reorder offload
is enabled.

Change-Id: I144c10be7b45268300b040e07ecb909a1ca113cc
CRs-Fixed: 2289797
2018-08-07 08:41:21 -07:00
Vignesh Viswanathan
d5a5f2e278 qcacld-3.0: Add support for OUI framework during join request in CSR
Add support to use the action OUI framework to identify vendor APs from
the ini and apply vendor AP specific WARs during CSR join request.

Change-Id: Icb6742bfeb9515c11d61034b795b95b92e833b64
CRs-Fixed: 2254532
2018-08-07 08:41:18 -07:00
nshrivas
ff909ba8e7 Release 5.2.0.91I
Release 5.2.0.91I

Change-Id: Ie97fad46c4ac5e2b8922c33095b7d0dcde67afac
CRs-Fixed: 774533
2018-08-07 02:19:19 -07:00
Tushnim Bhattacharyya
aececb20dc qcacld-3.0: Add ENABLE_DBS_CXN_AND_DISABLE_SIMULTANEOUS_SCAN
Add ENABLE_DBS_CXN_AND_DISABLE_SIMULTANEOUS_SCAN option for the ini
gDualMacFeatureDisable. This is to enable DBS support for the
connection and disable simultaneous scan from upper layer. But DBS
scan remains enabled in FW.

Change-Id: Ic280de2cc63a3775c0d9dd61985ff89df58a4a89
CRs-Fixed: 2288294
2018-08-07 02:19:18 -07:00
Nirav Shah
6a17618a8a qcacld-3.0: Replace MAX_SME_SESSIONS macro to SIR_MAX_SUPPORTED_BSS
Use SIR_MAX_SUPPORTED_BSS macro to decide max number of SME sessions
to avoid timer leak issue as SIR_MAX_SUPPORTED_BSS can be
configured through kbuild.

Change-Id: I86377d43ceb1b5cfcaa7c17a15a4fb300b79246b
CRs-Fixed: 2288864
2018-08-07 02:19:15 -07:00
nshrivas
00c7d9ea1c Release 5.2.0.91H
Release 5.2.0.91H

Change-Id: I3d52efdac3cb6dab04938466157aaae98ea249b1
CRs-Fixed: 774533
2018-08-06 20:55:19 -07:00
Kiran Kumar Lokere
782bb6cc73 qcacld-3.0: Fix the stability issue in wlan stop modules
wait for single event in umac_stop instead of wait for event
completion in which the events can be forcefully get reset
in the event of SSR.

Change-Id: I1925b820c7c292acbc019b058ff51297ad800b88
CRs-Fixed: 2289353
2018-08-06 20:55:18 -07:00
Jeff Johnson
4ea7974ce3 qcacld-3.0: Refine the mac_start() API
The mac_start() API currently specifies a void pointer for the "start
params" parameter. But both mac_start() and its caller must agree on
the type of this structure, so replace the void pointer with the
actual struct pointer. In the process rename that struct to comply
with the coding style and relocate it to be a part of the MAC Init
API.

Change-Id: I7fc62abbb17d214551ca6ff0cda8b76d218280e3
CRs-Fixed: 2290807
2018-08-06 20:55:14 -07:00
nshrivas
4af1cf4d6d Release 5.2.0.91G
Release 5.2.0.91G

Change-Id: If206553f7239ae5cdcbe8c5165b1bc35ea516329
CRs-Fixed: 774533
2018-08-06 19:03:12 -07:00
Dustin Brown
d0bf6403d2 qcacld-3.0: Reduce SMMU mapping logs
Reduce the number of logs during the SMMU mapping process in
cds_smmu_mem_map_setup by refactoring the logic to reduce the number of
branches.

Change-Id: I1a8b0ece31ab51eaf6f96232b284b61d77c83084
CRs-Fixed: 2291034
2018-08-06 19:03:12 -07:00
Dustin Brown
6099ddc417 qcacld-3.0: Add Driver Synchronization Core (enablement)
The Driver Synchronization Core (DSC) is a set of synchronization
primitives for use by the driver's orchestration layer. It provides APIs
for ensuring safe state transitions (including bring up and tear down)
of major driver objects: a single driver, associated psocs, and their
associated vdevs.

APIs are divided into two categories: mutual exclusion of conflicting
transitions, and operation tracking, blocking, and waiting capabilities.

For part 6, enable the DSC component.

Change-Id: I0ac37f479a4a38e346fb91ad041a4f51ccc6c879
CRs-Fixed: 2290260
2018-08-06 19:03:09 -07:00
nshrivas
f88b7f861f Release 5.2.0.91F
Release 5.2.0.91F

Change-Id: I9dee809b6b2e731603470f839b895ddb9faeb74b
CRs-Fixed: 774533
2018-08-06 06:28:03 -07:00
Yun Park
5fe20500cd qcacld-3.0: Check kernel scheduler APIs for wake up on idle CPU
Check PF_WAKE_UP_IDLE macro defined to determine the presence of
kernel scheduler APIs for wake up on an idle CPU.
If not, call dummy functions instead.

Change-Id: I34065aa244dc132e228c6e9f764c8eae90d81261
CRs-Fixed: 2168716
2018-08-06 06:28:03 -07:00
nshrivas
071a021a38 Release 5.2.0.91E
Release 5.2.0.91E

Change-Id: I06e90fc7eb69e269d6b0a6da07763a572f2de93a
CRs-Fixed: 774533
2018-08-06 04:21:25 -07:00
jitiphil
900e0e617a qcacld-3.0: Reuse preample type, vht_sig_a_1 and vht_sig_a_1
In monitor mode, current implementation
uses the preample type, vht_sig_a_1 and vht_sig_a_1
values associated with each mpdu, instead of reusing
the values from the first mpdu, to calculate data rates.

This is causing incorrect rates to be recorded in monitor mode logs
Reuse preample type, vht_sig_a_1 and vht_sig_a_1 of first
mpdu till the last mpdu is reached.

Change-Id: Ia6e5c1b3b0cc8d8b27f16cdfbd469fdba5c4a8f2
CRs-Fixed: 2276766
2018-08-06 04:21:25 -07:00
Nirav Shah
575282cd60 qcacld-3.0: Featurize DSRC(802.11p) implementation
Featurize DSRC(802.11p) implementation

Change-Id: I64baee9d26b2300b7a7282ad2eff031c0b02b0b2
CRs-Fixed: 2287352
2018-08-06 04:21:21 -07:00
Nirav Shah
6ebfe2419d qcacld-3.0: Separate out HL and LL RX data path
Separate out HL and LL Rx Data Path in different files
to compile out features cleanly

Change-Id: Ifc0e2d7e740142f0115d1fcd53db2936f7a30979
CRs-Fixed: 2287351
2018-08-06 04:21:18 -07:00
Nirav Shah
52d85aacf5 qcacld-3.0: Separate out HL and LL TX data path
Separate out HL and LL Tx Data Path in different files
to compile out features cleanly.

Change-Id: I9033a5bc83bbc95ff00be3f46dc6eda65eab9e71
CRs-Fixed: 2287346
2018-08-06 04:21:13 -07:00
nshrivas
39f150ce40 Release 5.2.0.91D
Release 5.2.0.91D

Change-Id: I0c5246f3c21266a19d6175c8a1fb8254b214ca0c
CRs-Fixed: 774533
2018-08-03 23:44:17 -07:00
Abhinav Kumar
87ccf7b34b qcacld-3.0: Update last_scan_reject_timestamp with proper value
When the scan is rejected, driver saves the scan reject reason and the
rejected time by converting the jiffies to msec. In case when
HZ is 100 while converting jiffies to msec, jiffies_to_msecs() return
wrapped value of jiffies(in msec). This result value of the current jiffies
(return value of jiffies_to_msecs API) becomes greater than scan reject
time (pHddCtx->last_scan_reject_timestamp) and __wlan_hdd_cfg80211_scan
trigger SSR in case of scan rejection.

Fix is to Use jiffiy directly instead of using jiffies_to_msecs()
while updating scan reject time(pHddCtx->last_scan_reject_timestamp).

Change-Id: Ib86830456fdc48143bf282779216ab94aed11923
CRs-Fixed: 2289992
2018-08-03 23:44:15 -07:00
nshrivas
7c258d6d6e Release 5.2.0.91C
Release 5.2.0.91C

Change-Id: I4b76aac33691fde2f9b0687df33389a28f9cf852
CRs-Fixed: 774533
2018-08-03 22:00:47 -07:00
Alok Kumar
90a73092e6 qcacld-3.0: Consider INI param LROEnable during advertising LRO
Currently in driver we are advertising LRO Support as part of
hdd_init_station_mode() with dev->features |= NETIF_F_LRO.

This is not tied up with INI param "LROEnable", to advertise LRO
to kernel. Add INI check for "LROEnable" before advertising LRO.

Change-Id: I6a3940b65e72ae12015d0303c573456d44e1ac9c
CRs-Fixed: 2269590
2018-08-03 22:00:46 -07:00
nshrivas
6d00fad947 Release 5.2.0.91B
Release 5.2.0.91B

Change-Id: I34f8bcb9381f67b08ba810132c2f80d2e0adc7c4
CRs-Fixed: 774533
2018-08-03 18:43:45 -07:00
Paul Zhang
9ffb043af4 qcacld-3.0: Remove the ssidlen check in get_sta_stats
Per protocol definition, the ssid length in OWE bss’s IE is zero
when in OWE transition mode. And the api wlan_hdd_get_sta_stats
thinks it is invalid ssidlen and returns directly. It causes the
uplayer can not get stats info.

Change-Id: I20eb7aa79ce25a4b66d9be093510eb414d4fca42
CRs-Fixed: 2285542
2018-08-03 18:43:44 -07:00
Arunk Khandavalli
a592bb6164 qcacld-3.0: Dont start the adapter from the change interface
With the latest android upgrade after the sap is turned off
change interface will switch netdev back to original mode and
starting the adapter in this state will create resources even
when the upper layer is not using the netdev.
Do not start the adapter from the change interface.

Change-Id: I763879ecc84dca4115bca0e4e805b8b4b6108bb8
CRs-Fixed: 2270730
2018-08-03 18:43:38 -07:00
nshrivas
14a4a40051 Release 5.2.0.91A
Release 5.2.0.91A

Change-Id: I5248a61dae532b393c4bcf039cfaf875a07d45af
CRs-Fixed: 774533
2018-08-03 14:28:41 -07:00
Dustin Brown
024c9cd510 qcacld-3.0: Split probe into probe and reinit
The PLD probe event handler does both probe and reinit. However, the
probe and reinit logics are quite different. Split this shared logic
into two handler functions, one for probe and one for reinit. Update the
PLD probe event handler to invoke the correct handler function based on
the reinit flag received as part of the event.

Change-Id: Id48d18aee0d449b6849297848c2bab96c6e008ae
CRs-Fixed: 2290221
2018-08-03 14:28:41 -07:00
Dustin Brown
86d196bacd qcacld-3.0: Normalize bus bandwidth init/deinit sequence
The HDD bus bandwidth infrastructure init/deinit sequence is currently
very sporadic. Startup and re-init initialize it at different point, and
failed to de-initialize it in the case of failure. Likewise, exit and
shutdown de-initialize it at different points. Update the HDD bus
bandwidth init/deinit sequence so that it is uniform and symmetrical in
all situations.

Change-Id: I5312bd340d885aafb8d4e809672eb02afc199781
CRs-Fixed: 2290237
2018-08-03 14:28:37 -07:00
nshrivas
f6e75c88de Release 5.2.0.91
Release 5.2.0.91

Change-Id: Ibc08ae0bc74d7e2332e515ce84a9831c3fc93ca1
CRs-Fixed: 774533
2018-08-03 12:39:58 -07:00
Dustin Brown
a31fa1103b qcacld-3.0: Validate adapter before sched scan stop
wlan_hdd_cfg80211_sched_scan_stop() currently does not validate the
given adapter or the hdd context. Validate both before performing a
scheduled scan stop operation on said adapter.

Change-Id: I4e0370ad059fbb0371a38300f33dfae7a9f8106d
CRs-Fixed: 2289411
2018-08-03 12:39:58 -07:00
nshrivas
af5a0e7212 Release 5.2.0.90Z
Release 5.2.0.90Z

Change-Id: Ib1788e1536b915088cf3603fb1287e1fc29134cb
CRs-Fixed: 774533
2018-08-02 20:36:03 -07:00
Ashish Kumar Dhanotiya
9fbe737fee qcacld-3.0: Increase ll_stats driver buffer size
Currently driver allocates buffer of size 10KB which is
getting filled completely in some cases when size of
ll_stats is more than 10KB. Because of this driver
ignores some of the stats and user space does not
get the complete stats.

To address this issue increase the size of the buffer
to 12 KB.

Change-Id: I8c5500545a3c69ecb5ba3b1bb3e7f3338a61714f
CRs-Fixed: 2279495
2018-08-02 20:36:03 -07:00
nshrivas
e0769cf1d1 Release 5.2.0.90Y
Release 5.2.0.90Y

Change-Id: I585f325fe8f63f4edf6afa90d08566b32101fe33
CRs-Fixed: 774533
2018-08-02 18:29:59 -07:00
Wu Gao
3365e780ff qcacld-3.0: Cleanup P2P and TDLS WNI configures
Use new cfg API for P2P and TDLS WNI configures, and cleanup related
legacy codes. Remove two not use P2P INI configures.

Change-Id: Ie37fd5e598ececba561581952a23601595607b2e
CRs-Fixed: 2286387
2018-08-02 18:29:58 -07:00
Kiran Kumar Lokere
8dba1899b8 qcacld-3.0: Fix the issue with HE MCS cfg with Nss setting
When the Nss is set to 2,MCS0-11 is used as default HE MCS config
for 2x2 mode which may not be same as 1x1 HE MCS config.
Use the 1x1 MCS config for Nss setting to 2 to keep the MCS
config same for both streams.

Change-Id: I76157357667696979976983e81f014182dfe769e
CRs-Fixed: 2284467
2018-08-02 18:29:55 -07:00
nshrivas
ba4125e5e8 Release 5.2.0.90X
Release 5.2.0.90X

Change-Id: I5b6c292e1c9def88b7dca81b9ba98ef0685fc987
CRs-Fixed: 774533
2018-08-02 15:00:24 -07:00
Yeshwanth Sriram Guntuka
25fa2c0792 qcacld-3.0: Don't fill any WMA request if target is not ready
If any WMA request is queued in wma hold req/vdev resp queue after fw
has crashed and sent the corresponding uevent to HOST, request will
timeout and if at the same time, SSR is also going on, it may lead to
various issues and crashes.

Check whether target is ready or not before queuing any request
in wma hold req/vdev resp queue.

Change-Id: I26b5746e9ba4f57f46b3a5a486bd85ef150d0ee7
CRs-Fixed: 2289004
2018-08-02 15:00:23 -07:00
Kiran Kumar Lokere
eac7fe9f27 qcacld-3.0: Fix issue with 256 BA buff size setting
Change the BA buffer size attribute value to 16-bit to set
the 256 BA buffer size. Define the max supported BA buffer
size and advertise the max supported buffer size if the
user configures the value greater than supported.

Change-Id: I5efdee60517e02572386e9751706722987f44261
CRs-Fixed: 2284461
2018-08-02 15:00:20 -07:00
nshrivas
2ce4b8a8a8 Release 5.2.0.90W
Release 5.2.0.90W

Change-Id: I0e4e68982b6e9eb3e1a2df2ee3daeb9eb264bc13
CRs-Fixed: 774533
2018-08-02 02:48:39 -07:00
Krunal Soni
d2136c7666 qcacld-3.0: Block Ack state machine enhancement
Add state machine changes to Addba request handling
in order to include IN_PROGRESS state until addba
response tx is not successfully completed. If response
tx is successful, move tid to ACTIVE state.

CRs-Fixed: 2254887
Change-Id: I09f9d8aa09bbb3fb98e0873657d1b8072371f0d8
2018-08-02 02:48:36 -07:00
nshrivas
8cd2124789 Release 5.2.0.90V
Release 5.2.0.90V

Change-Id: Id274361e24ad73acac138f5d9639bb1e22abec14
CRs-Fixed: 774533
2018-08-01 20:37:24 -07:00
Kiran Kumar Lokere
86e855955c qcacld-3.0: Set the TxBF CBF frame rate with NSTS setting
Set the TxBF CBF frame rates to FW with user NSTS configuration
setting.

Change-Id: I553c253bddb695f5c61d889cd7ef57694d00954f
CRs-Fixed: 2281265
2018-08-01 20:37:24 -07:00
Venkata Sharath Chandra Manchala
43cb55c5cf qcacld-3.0: Enable Per Peer REO stats
Add a command: iwpriv <interface> txrx_stats 28 <mac_id>
for printing REO Queue statistics.

Change-Id: Ic5001706a6682bec3e8170c1e96825161fb5fc9d
CRs-Fixed: 2217833
2018-08-01 20:37:20 -07:00
nshrivas
9ef11955d2 Release 5.2.0.90U
Release 5.2.0.90U

Change-Id: I74cd0ad5b75f08d2f9e2368bcf1ad37a06cb87df
CRs-Fixed: 774533
2018-08-01 02:15:11 -07:00
Jianmin Zhu
2f708f250d qcacld-3.0: Avoid buffer overflow when process SA query action frame
No frame length check when extract 11w transaction id from SA
query request and response action frame, if frame length is
shorter than expected,  buffer overflow will happen
Change-Id: Iddefa809023da244564cfd227ccfe8c2de5717c0
CRs-Fixed: 2263320
2018-08-01 02:15:11 -07:00
nshrivas
0e98185f04 Release 5.2.0.90T
Release 5.2.0.90T

Change-Id: I1d2fa01819dd62afb0077b1fa3ce033c589e944f
CRs-Fixed: 774533
2018-07-31 19:01:19 -07:00
Dustin Brown
7e761c71eb qcacld-3.0: Reduce hdd/ipa info logs
A number of HDD and IPA logs are generally unnecessary and have been
identified as contributing to log spam. Reduce these log messages to the
debug level.

Change-Id: I2f92bb4caec5adc65fdad0146298aa5f88b43def
CRs-Fixed: 2288430
2018-07-31 19:01:18 -07:00
nshrivas
bc7d718715 Release 5.2.0.90S
Release 5.2.0.90S

Change-Id: I42e9a0cd71eb68a8507289a05e248f07e2f5bff0
CRs-Fixed: 774533
2018-07-31 15:25:42 -07:00
Dustin Brown
aeb556490f qcacld-3.0: Reduce logging for hdd netdev notifier
Reduce error logs in __hdd_netdev_notifier_call which do not alway
indicate an error.

Change-Id: I7386cb26993877ed86802b60240cd04b85dd4e8b
CRs-Fixed: 2287681
2018-07-31 15:25:41 -07:00
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