Commit Graph

5797 Commits

Author SHA1 Message Date
snandini
17f925c415 Release 5.2.0.35K
Release 5.2.0.35K

Change-Id: I7f32f00743f40fae9c20ae437667256ce980bd6f
CRs-Fixed: 774533
2017-07-21 21:20:37 -07:00
Kabilan Kannan
703fc299e9 qcacld-3.0: Fix the incorrect error check in scan function
Due to incorrect error check wlan scan abort request
consistently fails.
Fix the error check statement.

Change-Id: I342f96596daaad9e6668059a7085dd215ff5241f
CRs-Fixed: 2049396
2017-07-21 21:20:37 -07:00
snandini
76174efb05 Release 5.2.0.35J
Release 5.2.0.35J

Change-Id: Ie1f0f800c615786f7d47476b167eac734484bc37
CRs-Fixed: 774533
2017-07-21 16:00:44 -07:00
CNSS_WLAN Service
dfbf506b15 Merge changes I87205d59,I91332da9 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  qcacld-3.0: fix a potential spinlock lockup issue
  qcacld-3.0: add device attribute 'tsf'
2017-07-20 20:47:16 -07:00
Linux Build Service Account
ec1af2c219 Merge "qcacld-3.0: time stamp msdu with precise rx/tx time" 2017-07-20 20:44:49 -07:00
Linux Build Service Account
6c1da11513 Merge "Release 5.2.0.35I" 2017-07-19 22:47:25 -07:00
Linux Build Service Account
4ad62144be Merge "qcacld-3.0: Mask sdio host controller interrupts in shutdown" 2017-07-19 21:51:48 -07:00
CNSS_WLAN Service
f451bb81f4 Merge "Release 5.2.0.34Z" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:45 -07:00
CNSS_WLAN Service
91d5689c2c Merge "qcacld-3.0: Do RX packet aggregation for every 16th packet" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:44 -07:00
CNSS_WLAN Service
91281c75af Merge "Release 5.2.0.34Y" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:43 -07:00
CNSS_WLAN Service
8488750adc Merge "qcacld-3.0: Add changes for Napier flow control" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:41 -07:00
Rajeev Kumar
d9a43cfbe4 qcacld-3.0: Add vdev validity check before sending vdev set param
If vdev is deleted FW can assert if host sends any vdev set param command.
Add vdev validity sanity check and reject vdev param set request after
vdev is deleted.

Change-Id: I65c303ef2e2a941cb2629f3fbc0862acf6e306d3
CRs-Fixed: 2079273
2017-07-19 16:28:43 -07:00
snandini
b884999812 Release 5.2.0.35I
Release 5.2.0.35I

Change-Id: Icb85ac525b37c63a82310a292bf7fd936ccae95b
CRs-Fixed: 774533
2017-07-18 15:49:39 -07:00
Dustin Brown
fe7aa8780a qcacld-3.0: Add gPreventLinkDown ini item
Add a configuration item, gPreventLinkDown, to disable putting the bus
link to sleep during suspend/resume.

Change-Id: Id52c6319cafaef60e6f4e562010615361eb831cd
CRs-Fixed: 2066718
2017-07-18 15:49:39 -07:00
Tushnim Bhattacharyya
825b0f7ac6 qcacld-3.0: preferred_rx_streams to reflect correct NSS value
preferred_rx_streams to reflect the NSS value with which association to the
AP happened in STA mode.

Change-Id: Ia2ecfb7ba055c3644410b0ff908812f0f94ba4c7
CRs-Fixed: 2077040
2017-07-18 15:49:37 -07:00
snandini
8c76505521 Release 5.2.0.35H
Release 5.2.0.35H

Change-Id: I5177a1bc0b6acd0787e913d8307f9b0fdb5283f9
CRs-Fixed: 774533
2017-07-18 07:43:32 -07:00
Jiachao Wu
08719b0c38 qcacld-3.0: iwpriv set_txchainmask 0 shouldn't change mode
If user set invalid txchainmask, driver shouldn't change the value.

Change-Id: Ifd600e439e967845bfa874220a3e1508bc26a3ba
CRs-Fixed: 2070620
2017-07-18 07:43:32 -07:00
snandini
697888b35a Release 5.2.0.35G
Release 5.2.0.35G

Change-Id: If59b328a5c5510b1dc6847db2a6e8aed174d2e59
CRs-Fixed: 774533
2017-07-18 05:54:26 -07:00
Will Huang
558f8085c4 qcacld-3.0: Add support of request peer stats info(part 2)
qcacld-2.0 to qcacld-3.0 propagation

FW has limitation to support old WMI_REQUEST_STATS_CMDID and
WMI_UPDATE_STATS_EVENTID interface on AP vDev. FW suggest to use new
WMI_REQUEST_PEER_STATS_INFO_CMDID and WMI_PEER_STATS_INFO_EVENTID to
get tx/rx rate.

This checkin is about LIM/SME/SAP layer, provide SME APIs/callbacks
to HDD layer to get SAP's peer station tx/rx related information,
fill these information from wma layer get-peer-stat-info APIs and
peer station's association request frame. It also fixed function
csr_send_assoc_ind_to_upper_layer_cnf_msg when copy information
between different structures and using offset style.

Change-Id: Icb1aaa126663af7eaedd1c4db86ca25c40ce6ee9
CRs-Fixed: 2051628
2017-07-18 05:54:26 -07:00
Selvaraj, Sridhar
57ce4dfde2 qcacld-3.0: Add ini params to avoid roam ping pong
In roaming scenario, to avoid ping pong with bad AP’s around, fw
blacklist certain Ap’s based on timestamps and penalize certain
AP’s of the same channel so they won’t be selected and back and
forth roaming could be avoided. This change adds the following
INI parametres to configure the parametres of this fw feature.

1) groam_disallow_duration    - Amount of time LCA[Last Connected AP]
                                will be disallowed before it can be a
                                roaming candidate again.
2) grssi_channel_penalization - RSSI to be penalized if
                                candidate(s) are found in the same
                                channel as disallowed AP's.
3) groam_num_disallowed_aps   - number of AP's the target should
                                maintain in its LCA list.

Change-Id: I41cb36caf1b42caeb2bf77846bd0279eb43d2018
CRs-Fixed: 2054188
2017-07-18 05:54:24 -07:00
Sreelakshmi Konamki
2972b6e3cb qcacld-3.0: Do not remove addts/delts command in csr_roam_sync_callback
Currently addts and delts commands are removed as part of
csr_roam_sync_callback. After successful roaming add_tspec of
old connection is not processed in SME (entry of addts command is NULL
in smeCmdActiveList). As there is no active add tspec in SME,
VO data is downgraded to BE.

To fix above issue, do not remove addts/delts commands from SME queue and
in PE layer do the error handling for addts to send resp for all
failure cases.

Change-Id: Ibc7364d188c3002dd8067738f6bcc8fee2af2126
CRs-Fixed: 2076713
2017-07-18 05:54:23 -07:00
snandini
7810c77082 Release 5.2.0.35F
Release 5.2.0.35F

Change-Id: I1bb3517717e520a09a8ea4faeb422d984f30e719
CRs-Fixed: 774533
2017-07-18 03:49:25 -07:00
Ashish Kumar Dhanotiya
41a5a77621 qcacld-3.0: Fix out of bound memory access
There is a possibility of OOB memory access within api
wlan_hdd_qcmbr_command.
To resolve this issue add appropriate buffer length check before
using the buffer.

Change-Id: I3bc0bb74e07fbf4b5c1f2163c9fb0b80d8839d0d
CRs-Fixed: 2075278
2017-07-18 03:49:25 -07:00
snandini
2a54dc402b Release 5.2.0.35E
Release 5.2.0.35E

Change-Id: I4cbd0656dcea0068e181b06eb648e696e2a87089
CRs-Fixed: 774533
2017-07-18 01:58:53 -07:00
Rajeev Kumar
f46083e0e5 qcacld-3.0: Move CLD components outside core folder
Core is legacy module folder in CLD. Hence move MCL specific
components folder outside core.

Change-Id: Iba3f9fdb06ad10dc4a5b19f3ff1ffa23f7372605
CRs-Fixed: 2077963
2017-07-18 01:58:53 -07:00
snandini
5c84bf7916 Release 5.2.0.35D
Release 5.2.0.35D

Change-Id: I3c91be28c44c18af7ac4ded98397605311356626
CRs-Fixed: 774533
2017-07-17 21:48:06 -07:00
Zhang Qian
303ebe9dbf qcacld-3.0: Add mac counters for per-antenna TX/RX stats
qcacld-2.0 to qcacld-3.0 propagation

New MAC counters are added to count MPDUs received and transferred
on each antenna.

Change-Id: Ia7fbf7642922f006882619848459192dcfca3c40
CRs-Fixed: 2043156
2017-07-17 21:48:05 -07:00
Lin Bai
ceb4d64b3e qcacld-3.0: Fix fragile code in dphInitStaState
qcacld-2.0 to qcacld-3.0 propagation

In dphInitStaState function, it will implicitly assume that, the last
member of structure tDphHashNode is *next* pointer, which is fragile and
risky.

Save the *next* pointer in local variant and restore after whole
structure zeroed.
This will need additional CPU ticks but eliminate the risk.

CRs-Fixed: 2055505
Change-Id: I6baf3eddea965eda4e7f7ca88fef54709964febc
2017-07-17 21:48:03 -07:00
Houston Hoffman
77bf407f75 qcacld-3.0: free memory in csr_get_snr error path
Free allocated message container when csr_roam_get_session_id_from_bssid
fails.

Change-Id: I088d3866d2c8052ef65ce5a719dd6c478d98e293
CRs-Fixed: 2077460
2017-07-17 21:48:01 -07:00
snandini
4aa3e5aac4 Release 5.2.0.35C
Release 5.2.0.35C

Change-Id: Ic7f6c518fd011ddeee896d070c1b08e79a5b5925
CRs-Fixed: 774533
2017-07-17 20:55:27 -07:00
Srinivas Girigowda
fc8b4ffc0f qcacld-3.0: Move the logs to appropriate log levels
Move the logs to appropriate log levels.

Change-Id: I184a8a58541daa1b29f042db9bcbeadc254b5c38
CRs-Fixed: 2063642
2017-07-17 20:55:27 -07:00
Srinivas Girigowda
11c28e0022 qcacld-3.0: Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ and
NL80211_BAND_5GHZ with HDD_NL80211_BAND_5GHZ.

Change-Id: I15a905a599b87fc1a876c5f1b7bd6d69b2ba0f15
CRs-Fixed: 2055487
2017-07-17 20:55:22 -07:00
Srinivas Girigowda
38f1deda4e qcacld-3.0: Fix clang warnings implicit enum nl80211_band
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Change-Id: I084e015626611ae90be00b11a599ae82f9bf6f60
CRs-Fixed: 2055487
2017-07-17 20:55:20 -07:00
Srinivas Girigowda
d3b31e205a qcacld-3.0: Fix clang warnings in LIM
qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_req_messages.c:487:10:
warning: implicit conversion from enumeration type 'enum eSirRetStatus'
to different enumeration type 'tSirResultCodes'
(aka 'enum eSirResultCodes') [-Wenum-conversion]

qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c:459:37:
warning: implicit conversion from enumeration type 'tLimSmeStates'
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I649618105b220d69c8b79dcae0983ae6d75746c0
CRs-Fixed: 2055487
2017-07-17 20:55:19 -07:00
Srinivas Girigowda
7f8cb144b8 qcacld-3.0: Fix clang warnings implicit conversion from enum tLimSmeStates
warning: implicit conversion from enumeration type 'tLimSmeStates
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I659776ce18feaf1e566d6c9ff5cbd6d348016d65
CRs-Fixed: 2055487
2017-07-17 20:55:17 -07:00
snandini
d0072c5516 Release 5.2.0.35B
Release 5.2.0.35B

Change-Id: I9e5594851d10f1fda5274f6a638b5d6a7f7494d6
CRs-Fixed: 774533
2017-07-17 20:05:16 -07:00
Varun Reddy Yeturu
9e0032c720 qcacld-3.0: Use API to change the connection state
Use the API hdd_conn_set_connection_state to change the
HDD connection state

Change-Id: I3635cec841a3788c9576e8e49ab859e21d89e32d
CRs-Fixed: 2076017
2017-07-17 20:05:14 -07:00
snandini
9c9e34211d Release 5.2.0.35A
Release 5.2.0.35A

Change-Id: I46f1e1103bdaea51e6724ba4a1eb1b3389ce2a90
CRs-Fixed: 774533
2017-07-17 18:29:15 -07:00
Will Huang
48701e295f qcacld-3.0: Move short name redefinitions from qca_vendor.h
These short name redefinitions should just be used in source file for
convenience, should not exist in qca_vendor.h where interfaces are
defined there.

To avoid checkin two way dependencies, add ifndef/define in source file
and first checkin qcacmn head file which remove these redefinitions,
then remove these ifndef/define from source file in another change.

Change-Id: I5318de88b569085f26212e960b79048e8a2481a8
CRs-Fixed: 2076521
2017-07-17 18:29:15 -07:00
Wu Gao
3545e64d4a qcacld-3.0: Cleanup DFS CAC timer when SSR and reset all adapters
In SAP and SSR case, it won't cleanup DFS CAC timer until up layer
kill hostapd. It will call wlansap close when hostapd exit. If
enable sap internal restart in this case, it will double init DFS CAC
timer, which cause abnormal in kernel. Solution is cleanup DFS CAC
timer when reset all adapters.

Change-Id: I96962349af548074e226976c8c01cd5a8710ed3f
CRs-fixed: 2075904
2017-07-17 18:29:13 -07:00
snandini
421838aae6 Release 5.2.0.35
Release 5.2.0.35

Change-Id: I2f0bc975e4ac5432fb265f0086585b800d87765a
CRs-Fixed: 774533
2017-07-17 17:39:00 -07:00
Varun Reddy Yeturu
0648801140 qcacld-3.0: Do not send RSO Stop when roam sync is in progress
Avoid sending a RSO stop because of a disconnect when roam
sync is in progress. It is not needed to send a RSO stop
since the host would eventually trigger a disconnect and
send down an RSO stop anyways. Sending a RSO stop woould lead
to unnecessary complication where the firmware would send
a HO_FAIL and then this would be queued and the host disconnect
would be handled first and as part of processing the user
disconnect, a peer delete would be sent down to firmware,
which has already been cleaned up by the firmware earlier.

Change-Id: Ic89f97308c3d63977dda61fcadc450432fb16524
CRs-Fixed: 2052449
2017-07-17 17:39:00 -07:00
Zhang Qian
65e2e8d072 qcacld-3.0: Add sap operation mode to MAC global context
SAP operation mode is not updated to MAC global context once
user layer APP updates STA roaming policy. This will make
unsafe channel ignoring ineffective.

Change-Id: I5727e950e2097d55daf6745b4f443b89cc681dc8
CRs-Fixed: 2074237
2017-07-17 17:38:58 -07:00
Dustin Brown
12a960213e qcacld-3.0: Populate stats_mask when requesting stats
wma_get_stats_req does not populate the requested statistics bitmask
before forwarding the request to WMI. Popluate the given statistics
bitmask into the WMI request in wma_get_stats_req, so firmware can
provide the desired statistics.

Change-Id: I6dbf7bf1fb2cf6b20bcd4f2fb91f9add5dd3d779
CRs-Fixed: 2075379
2017-07-17 17:38:57 -07:00
Deepak Dhamdhere
64bfe97415 qcacld-3.0: Schedule work for peer_unmap_timer_handler actions
Mutex cannot be used when peer_unmap_timer_handler() calls
cds_trigger_recover() because it runs in soft_irq. Schedule work
to perform the recovery instead.

CRs-Fixed: 2060775
Change-Id: I9a9554ef0aa9288bf5abe22cd2513d8cc41c29d4
2017-07-17 17:38:55 -07:00
bings
5f0ae149d9 qcacld-3.0: Mask sdio host controller interrupts in shutdown
Driver should mask the sdio host controller interrupts in ssr
shutdown callback, or routine mmc_signal_sdio_irq is called
unexpectedly and causes crash.

Change-Id: I8551a7d809bf115d2df9735c8c7a30045f717cd1
CRs-Fixed: 2076658
2017-07-17 17:38:52 -07:00
snandini
775378deef Release 5.2.0.34Z
Release 5.2.0.34Z

Change-Id: I1e11c828b26397b7ac0f98339a286ef11422b6f7
CRs-Fixed: 774533
2017-07-17 01:48:24 -07:00
tfyu
0380a97ccc qcacld-3.0: Do RX packet aggregation for every 16th packet
Do RX packet aggregation for every 16th packet except the ICMP packets,
if the platform is not SMP platform. This change will contribute to improve
standalone SAP/STA RX TPUT when IPA uC offload is enabled by reducing
CPU utilization.

And this change is progagated from CLD2.0 driver with below commits:

bfaad0cb3b0f77d1940eb1d782bd8d125c557bbc
5d960eac83008cad60ff3e7abe1bbebb00b53cf6
c7d2405d7e8e4ba3a5eecbbaa177f4895036a4eb

Change-Id: I256e65ec2399b9b24eec4ccca7fdd662e326838f
CRs-Fixed: 2075793
2017-07-17 01:48:23 -07:00
Linux Build Service Account
8c92314963 Merge "Release 5.2.0.34X" 2017-07-16 22:44:05 -07:00
Linux Build Service Account
a57b5b9067 Merge "qcacld-3.0: Fix memory leak in lim_send_assoc_req_mgmt_frame" 2017-07-16 20:42:49 -07:00
snandini
d16e80f153 Release 5.2.0.34Y
Release 5.2.0.34Y

Change-Id: I90874e55148075fa12fdedd337643bc717261b4d
CRs-Fixed: 774533
2017-07-16 07:01:28 -07:00
Manjunathappa Prakash
6c54736903 qcacld-3.0: Add changes for Napier flow control
Adds support for flow control on convergence branch.
We will have global pool and each vdev coming up will have the
descriptors allocated from global pool. Tx queue is paused and unpaused
internally in host based on the stop and start thresholds.
Changes are added under compilation flag QCA_LL_TX_FLOW_CONTROL_V2.

Change-Id: I0ccb80b0099f39efad52ccd7d47f2709fdee2a93
CRs-Fixed: 2040457
2017-07-16 07:01:28 -07:00
snandini
ca529d56e4 Release 5.2.0.34X
Release 5.2.0.34X

Change-Id: I42e3fabbdcee46d366f3285dbad26af406a88b01
CRs-Fixed: 774533
2017-07-14 23:51:56 -07:00
Abhishek Singh
e9a1701052 qcacld-3.0: Update addr3 in beacon if addr3 is 0 during roam sync ind
During roam sync indication if the addr3 of the beacon is 0, the
PE session is created with bssid 0. Now if disconnect is received
from AP or heartbeat failure happens, LIM is not able to find the
session from the BSSID and thus VDEV delete is not sent to firmware
but sme session is cleaned up.

If a new connect req is received from supplicant it tries to disconnect
the existing session, but as sme session is not connected, disconnect
is dropped and connect req is processed and thus VDEV start is sent
without VDEV stop leading to firmware crash.

To fix this, if the addr3 of the received beacon/probe in roam sync is
0, update it to BSSID from bssid provided by firmware in the sync
indication.

Change-Id: I9b7e7b6059fbd0e1bb9a59ce28acff469c2ed97b
CRs-Fixed: 2076012
2017-07-14 23:51:56 -07:00
Abhishek Singh
001306866e qcacld-3.0: Use scan reject count along with time to detect scan failure
qcacld-2.0 to qcacld-3.0 propagation

If scan is scheduled after long interval there is a chance that driver
is busy with same reason. i.e if scan is scheduled after 5 min there is
a chance that driver is busy in reassoc both time but this will give false
alarm that driver is stuck.

To reduce this condition include number of scan failures as well
along with time interval.

Change-Id: I6fdd0813541aa5d3d069fe8bf3934cfa47425550
CRs-Fixed: 2064605
2017-07-14 23:51:54 -07:00
Abhishek Singh
4c1ec99d15 qcacld-3.0: Add MBO IE in assoc response for RSSI based assoc reject
Add MBO IE in assoc response to extract params for RSSI based
assoc reject.

Change-Id: I426e99e490c58aff5e1fa90b763dd5f788d63fa5
CRs-Fixed: 2063865
2017-07-14 23:51:52 -07:00
CNSS_WLAN Service
1a2395016f Merge "qcacld-3.0: Fix clang warnings in SME" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:45 -07:00
CNSS_WLAN Service
a3406cb134 Merge "qcacld-3.0: Fix clang warnings in P2P" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:44 -07:00
CNSS_WLAN Service
8d04396a93 Merge "qcacld-3.0: Move initialization of Green AP to start modules" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:43 -07:00
CNSS_WLAN Service
f26f372a45 Merge "Release 5.2.0.34P" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:42 -07:00
CNSS_WLAN Service
4b83a3daf2 Merge "qcacld-3.0: Add macros to inc/dec peer->ref_cnt" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:42 -07:00
CNSS_WLAN Service
8517f31b10 Merge "qcacld-3.0: use adaptive method to cleanup qdf list" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:40 -07:00
CNSS_WLAN Service
9df5270e88 Merge "qcacld-3.0: reset reference count of bss if memory alloc fail" into wlan-cld3.driver.lnx.2.0-dev 2017-07-14 20:58:39 -07:00
snandini
3f1acb12fe Release 5.2.0.34W
Release 5.2.0.34W

Change-Id: I118492124a0458a2f9b05fbe4de0aece948bfd0d
CRs-Fixed: 774533
2017-07-14 18:34:13 -07:00
Krishna Kumaar Natarajan
85cdd6bb15 qcacld-3.0: Update lim_compute_crc32() to pass uint16_t
Update lim_compute_crc32() to pass uint16_t as a length type.
Currently uint8_t is being passed as length and there will be type
mismatch when authentication frame to be encrypted will be larger
than 255 bytes.

Change-Id: Ic009197c13a2d70c9015a184acff2e82bf80eaba
CRs-Fixed: 2060959
2017-07-14 18:34:12 -07:00
Krishna Kumaar Natarajan
218693aa5a qcacld-3.0: Update SIR_MAC_AUTH_CHALLENGE_LENGTH as per IEEE spec
Update SIR_MAC_AUTH_CHALLENGE_LENGTH to 253 as per IEEE spec.
Currently value of SIR_MAC_AUTH_CHALLENGE_LENGTH is set to 128.
This may result in potential buffer overflow since frame parser
allows challenge text of length upto 253 but driver can not handle
challenge text longer than 128 bytes.

Change-Id: I7baf860fdde51a14a6573b4f0f26817f5071193e
CRs-Fixed: 2060959
2017-07-14 18:34:11 -07:00
snandini
9e63360070 Release 5.2.0.34V
Release 5.2.0.34V

Change-Id: I5d87779aad89507c39d4b3b9882a60badd37b38a
CRs-Fixed: 774533
2017-07-14 17:36:11 -07:00
Mukul Sharma
d75a667472 qcacld-3.0: Move PMO from CMN to CLD
Move PMO from CMN to CLD.

Change-Id: I31380da668ac3305731b8c9906d343a829777591
CRs-fixed: 2071528
2017-07-14 17:36:11 -07:00
Arunk Khandavalli
ba3d558cc3 qcacld-3.0: Add support to load the driver in FTM mode
In Emulation setup its difficult to load the driver in the mission
mode and change the mode to FTM mode because of certain hardware
limitations.
Add support to load the driver in FTM mode.

Change-Id: I7e313d1234a8a01fc601c3f7edd75ca3070302d1
CRs-Fixed: 2074551
2017-07-14 17:36:09 -07:00
snandini
6a868e1065 Release 5.2.0.34U
Release 5.2.0.34U

Change-Id: I1e977d2788a1142dd6d717165faad348f7996c0e
CRs-Fixed: 774533
2017-07-13 18:03:11 -07:00
Kiran Kumar Lokere
75d636fe15 qcacld-3.0: Fix CSA handling to the same channel
Currently CSA event is ignored if the new channel is same as
current channel and there is no check for the BW comparison.
CSA can be done to the same channel with different BW. Allow the
CSA processing with same channel if the CSA has the different BW

Change-Id: Ib12c86dccf1c745dfa66c9e712d283af2df7809e
CRs-Fixed: 1102539
2017-07-13 18:03:11 -07:00
Vidyullatha Kanchanapally
be0ebb3807 qcacld-3.0: Add handler for new WMI BT event
Add handler for the new WMI BT activity event and propagate the BT
event till HDD. These BT activity events will be used for MBO
enhancements to decide whether to accept the BTM request from
AP or not.

Change-Id: I687819fd28c693964b42bfb24eb9dae1858b10a5
CRs-Fixed: 2023728
2017-07-13 18:03:08 -07:00
snandini
41fda32789 Release 5.2.0.34T
Release 5.2.0.34T

Change-Id: I1c6977258081e761f0299796aee41ef1657e57f0
CRs-Fixed: 774533
2017-07-13 03:38:08 -07:00
Abhishek Singh
6451c23fef qcacld-3.0: Use time_after api to take care of jiffies wrap around
jiffies wrap around can cause the confusion that the threshold
time has has elapsed and thus raise false alarm for scan reject.

To fix this use time_after api to take care of jiffies wrap around.

Change-Id: I20c0abbcaab0bea8054c2f497f41e50572008a8c
CRs-Fixed: 2075451
2017-07-13 03:38:07 -07:00
snandini
45e49cbfd3 Release 5.2.0.34S
Release 5.2.0.34S

Change-Id: I1ad316beb2ca220a4d6bcbcdf6cec6f6ec93f812
CRs-Fixed: 774533
2017-07-13 02:46:36 -07:00
Zhu Jianmin
e5594d1410 qcacld-3.0: Fix issue that can't pass Passpoint TC5.2.A
After iwpriv wlan0 reassoc, reassoc resp with status OK, but
csr_roam_state_change doesn't become eCSR_ROAMING_STATE_JOINED,
Keeps JOINING. When disconnect from AP or key timeout, CSR can't
handle eWNI_SME_DISCONNECT_DONE_IND event, no disconnect event
sent to wpa supplicant,  so no reconnect

CRs-Fixed: 2073481
Change-Id: I4966bac1998af95973b5247779fa5e83ad14db93
2017-07-13 02:46:35 -07:00
snandini
0f75e08cba Release 5.2.0.34R
Release 5.2.0.34R

Change-Id: I961c7a60001b2c344b9ecb6c91d6bf6024c5013f
CRs-Fixed: 774533
2017-07-13 01:48:02 -07:00
Srinivas Girigowda
eaf136a65e qcacld-3.0: Fix clang warnings 'taking address of packed member'
warning: Taking address of packed member 're_list' of class or
structure 'dfs_event' may result in an unaligned
pointer value [-Waddress-of-packed-member].

Change-Id: I498aebc7631854774302379a96e844fa11be3ea6
CRs-Fixed: 2055487
2017-07-13 01:48:01 -07:00
Srinivas Girigowda
5fc12a5e27 qcacld-3.0: Fix clang warnings implicit enum tHiddenssId
warning: implicit conversion from enumeration type 'tHiddenssId'
to different enumeration type 'enum nl80211_hidden_ssid'.

Change-Id: I0d6ec78be4d1c9561ee1d3ed1252ed9eb8fdd8ac
CRs-Fixed: 2055487
2017-07-13 01:47:59 -07:00
Srinivas Girigowda
5a1da622ea qcacld-3.0: Advertise set tx power limit capability
Advertise set tx power limit capability.

Change-Id: Ib07ee86079f98f33da3e6e559f04abb6031cc08e
CRs-Fixed: 2074653
2017-07-13 01:47:58 -07:00
Srinivas Girigowda
d06f2cf4e9 qcacld-3.0: Fix clang warnings implicit enum dfs_region
warning: implicit conversion from enumeration type 'enum dfs_region'
to different enumeration type 'enum nl80211_dfs_regions' [-Wenum-conversion]

Change-Id: I742e767ce72cc8507aaadcacec3f0cefd4147791
CRs-Fixed: 2055487
2017-07-13 01:47:56 -07:00
Srinivas Girigowda
74a66d627b qcacld-3.0: Fix clang warnings implicit enum type tAniBool
warning: implicit conversion from enumeration type 'tAniBool'
(aka 'enum eAniBool') to different enumeration type
'eSapBool' [-Wenum-conversion]

Replace tAniBool/eSapBool with bool.

Change-Id: I919488d2accc094049375fffe8b54a5d7dea621e
CRs-Fixed: 2055487
2017-07-13 01:47:55 -07:00
CNSS_WLAN Service
bf512893dd Merge "Release 5.2.0.34O" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 16:51:33 -07:00
CNSS_WLAN Service
29dccae340 Merge "qcacld-3.0: Fix SAP omit send action frame issue" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 16:51:32 -07:00
CNSS_WLAN Service
4be5d550c1 Merge "qcacld-3.0: update default wep index for group key" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 16:51:31 -07:00
yeshwanth sriram guntuka
078310190d qcacld-3.0: Fix memory leak in lim_send_assoc_req_mgmt_frame
Assoc request buffer is not freed in
lim_send_assoc_req_mgmt_frame in failure cases

Fix is to free memory in the failure cases.

Change-Id: I12c350131baff31e2c761d3480abccdf6d78fe0a
CRs-Fixed: 2063965
2017-07-12 15:42:51 -07:00
snandini
00c495d844 Release 5.2.0.34Q
Release 5.2.0.34Q

Change-Id: I39b9e78936c9370668d75222f83c0bb17f5d33f5
CRs-Fixed: 774533
2017-07-12 15:42:51 -07:00
Varun Reddy Yeturu
7b2a657361 qcacld-3.0: Fix clang warnings in SME
Fix implicit conversion from enumeration type 'tSirRetStatus' (aka 'enum
eSirRetStatus') to different enumeration type 'QDF_STATUS'
Fix implicit conversion from enumeration type 'QDF_MODULE_ID' to
different enumeration type 'CDS_MQ_ID'
Fix implicit conversion from enumeration type 'enum eSirResultCodes' to
different enumeration type 'eCsrRoamResult'
Fix implicit conversion from enumeration type 'enum eSirRetStatus' to
different enumeration type 'tSirMacStatusCodes'
Fix implicit conversion from enumeration type 'sme_QosStatusType' to
different enumeration type 'QDF_STATUS'
Fix implicit conversion from enumeration type 'tSirResultCodes' (aka
'enum eSirResultCodes') to different enumeration type 'QDF_STATUS'

Change-Id: I133992192b797619c7bc593fb65e4ca5ca87702b
CRs-Fixed: 2063149
2017-07-12 15:42:49 -07:00
Varun Reddy Yeturu
d97e8f8fd8 qcacld-3.0: Fix clang warnings in P2P
Fix implicit conversion from enumeration type 'tSirResultCodes' (aka
'enum eSirResultCodes') to different enumeration type 'QDF_STATUS'

Change-Id: I693a7cd5213b5dc58395bbeee04292cf4960c36e
CRs-Fixed: 2063149
2017-07-12 15:42:48 -07:00
Nachiket Kukade
fbd1afcbdb qcacld-3.0: Move initialization of Green AP to start modules
Currently during wlan startup, driver initializes Green AP with
EGAP param. If the interface timer expires driver sends command
to disable EGAP. This causes failure when interface is created
and start modules attempts to start Green AP.
Move initialization of Green AP to start modules.

Change-Id: Id08a1d61c69aeb9096d8eb4bf67fd8c2b5c8822f
CRs-Fixed: 2074556
2017-07-12 15:42:46 -07:00
snandini
00a696368d Release 5.2.0.34P
Release 5.2.0.34P

Change-Id: Ib2ce41b0eed1927bd59491c6c161e4199339d0b0
CRs-Fixed: 774533
2017-07-12 14:44:30 -07:00
Mohit Khanna
b04dfcd09a qcacld-3.0: Add macros to inc/dec peer->ref_cnt
Currently peer ref_cnt increments and decrements are done by the caller
function. Wrap peer->ref_cnt increment and decrement into MACRO calls so
they can be tracked.

Change-Id: I64d8b85d5898545bbc5a4b81101d1fd306de3fc9
CRs-Fixed: 2005652
2017-07-12 14:44:27 -07:00
Wu Gao
1eabdb6027 qcacld-3.0: use adaptive method to cleanup qdf list
It just enumerates qdf list but do not remove element when cleanup
vdev response queue or hold request queue in wma layer, which cause
element duplicate free. Use adaptive method to cleanup them.

Change-Id: I85f71252c6452d31649295cb13aa0eeef2323b5a
CRs-Fixed: 2073394
2017-07-12 14:44:26 -07:00
Kapil Gupta
8731e8124a qcacld-3.0: reset reference count of bss if memory alloc fail
In case of reassoc event handler, it may be possible that driver
doesn't inform kernel about the new bss as well as doesn't reset
the reference count of this bss due to memory allocation failure.

Add changes to reset bss reference count if memory allocation
failed.

Change-Id: I6844d9387dd018e24a4d15bd567294e08ae43941
CRs-Fixed: 2075074
2017-07-12 14:44:24 -07:00
CNSS_WLAN Service
ed20b5c9a8 Merge changes I25716e84,I6c42bc7d,Ic3e10162 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  Release 5.2.0.34N
  qcacld-3.0: Fix roam start not being sent to firmware
  Release 5.2.0.34M
2017-07-12 13:17:29 -07:00
CNSS_WLAN Service
71a5ffb918 Merge "qcacld-3.0: Cleanup the sme session if sme open session times out" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:28 -07:00
CNSS_WLAN Service
6bafe5c51e Merge "Release 5.2.0.34L" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:26 -07:00
CNSS_WLAN Service
5467ec3fba Merge "qcacld-3.0: Fix buffer overflow in wmi roam scan filter cmd" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:25 -07:00
CNSS_WLAN Service
6f77951b0e Merge "qcacld-3.0: Address mScanPending issues" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:24 -07:00
CNSS_WLAN Service
078ad0a134 Merge "Release 5.2.0.34K" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:23 -07:00
CNSS_WLAN Service
5ded9b61d4 Merge "qcacld-3.0: Changes to retain value of snr_monitor_enabled" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:22 -07:00
CNSS_WLAN Service
e6759477ec Merge "qcacld-3.0: Changes to correct channel flags for vendor ACS" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:21 -07:00
CNSS_WLAN Service
7716466070 Merge "Release 5.2.0.34J" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:20 -07:00
CNSS_WLAN Service
8bb758bfb6 Merge "qcacld-3.0: Fix clang warning implicit conversion enum type QDF_STATUS" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:19 -07:00
CNSS_WLAN Service
beb51023d2 Merge "qcacld-3.0: Fix clang warning implicit conversion enum hdd_wmm_user_mode" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:18 -07:00
CNSS_WLAN Service
5c2ac22793 Merge "qcacld-3.0: Fix clang warnings implicit conversion enum pkt_filter_action" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:17 -07:00
CNSS_WLAN Service
90e942fed5 Merge "Release 5.2.0.34I" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:16 -07:00
CNSS_WLAN Service
b06ee3eecd Merge "qcacld-3.0: At TSO segment free set owner TX desc to NULL" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:15 -07:00
CNSS_WLAN Service
22f6ab8e10 Merge "Release 5.2.0.34H" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:14 -07:00
CNSS_WLAN Service
de5fb5aa01 Merge "qcacld-3.0: Remove debug logging LRO context" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:14 -07:00
CNSS_WLAN Service
aa2108788a Merge "qcacld-3.0: Add support to simulate host driver initiated recovery" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:13 -07:00
CNSS_WLAN Service
8b5a236b72 Merge "qcacld-3.0: Add support for host initiated recovery for QCA6290" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:12 -07:00
CNSS_WLAN Service
21013f22cb Merge "qcacld-3.0: get statistics code path cleanup" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:11 -07:00
CNSS_WLAN Service
ffcd57fa66 Merge "Release 5.2.0.34G" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:08 -07:00
CNSS_WLAN Service
cc87e811e4 Merge "qcacld-3.0: Set LA bit and reset multicast bit in the mac addr" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:07 -07:00
CNSS_WLAN Service
0edd188955 Merge "Release 5.2.0.34F" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:06 -07:00
CNSS_WLAN Service
f32f1c753c Merge "qcacld-3.0: Use cnss_utils APIs" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:05 -07:00
CNSS_WLAN Service
729e1ff1ca Merge "Release 5.2.0.34E" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:04 -07:00
CNSS_WLAN Service
bca38fbd18 Merge "qcacld-3.0: Modify regulatory apis to pdev level" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:03 -07:00
CNSS_WLAN Service
7c7755d0f7 Merge "Release 5.2.0.34D" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:02 -07:00
CNSS_WLAN Service
28e731f361 Merge "qcacld-3.0: update attribute validation policy" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:01 -07:00
CNSS_WLAN Service
bb5caaa598 Merge "Release 5.2.0.34C" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:17:00 -07:00
CNSS_WLAN Service
29e0fecfab Merge "qcacld-3.0: Avoid concurrent matrix max param overread" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:59 -07:00
CNSS_WLAN Service
70a2b7f0cc Merge "Release 5.2.0.34B" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:58 -07:00
CNSS_WLAN Service
5ef840007e Merge "qcacld-3.0: Update DBS capability in vendor command" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:58 -07:00
CNSS_WLAN Service
b0d0657b09 Merge "Release 5.2.0.34A" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:57 -07:00
CNSS_WLAN Service
cdd5c45ee2 Merge "qcacld-3.0: Cleanup CBMode in SME" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:56 -07:00
CNSS_WLAN Service
34e14d5bb7 Merge "qcacld-3.0: Fix clang warnings in PE" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:55 -07:00
CNSS_WLAN Service
e17ccef45b Merge "qcacld-3.0: Fix CLANG warning for driver_type" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:54 -07:00
CNSS_WLAN Service
27aab92fd8 Merge "Release 5.2.0.34" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:53 -07:00
CNSS_WLAN Service
fcabc08635 Merge "qcacld-3.0: Enable Napier monitor mode configuration" into wlan-cld3.driver.lnx.2.0-dev 2017-07-12 13:16:52 -07:00
snandini
cb21c5daed Release 5.2.0.34O
Release 5.2.0.34O

Change-Id: I357cee60807da504076b6e7ac05a4bda48563b00
CRs-Fixed: 774533
2017-07-12 12:55:57 -07:00
gaolez
3b07a2cdbd qcacld-3.0: Fix SAP omit send action frame issue
qcacld-2.0 to qcacld-3.0 propagation

Checking every node in STA hash table when sending action frame. When
sending action frame, the driver will loop through the STA info hash
table to find all the STA need to recv unicast action frame. The STA
info stored in hash table from the second node to the last, the first
node is empty. But the current loop through policy lost the last node,
so change the loop count to fix this issue.

Change-Id: I323d7af5ea0871677ebf8bebe88eaff072efdac8
CRs-Fixed: 1098738
2017-07-12 12:55:56 -07:00
gaolez
8a61fd27a0 qcacld-3.0: update default wep index for group key
For encryption mode is WEP40 or WEP104, the default key index should
be set. if not set, the group key index will be zero always.

Change-Id: I3f2dae9d7b6cd4fbb7aa2882e6a5e89cf759cd11
CRs-Fixed: 2065988
2017-07-12 12:55:55 -07:00
Yu Wang
70757d54d1 qcacld-3.0: fix a potential spinlock lockup issue
When time stamping RX packets, spinlock
host_target_sync_lock will be hold if it's
now in TSF capturing state; if TSF-captured
IRQ happened at this moment, it will also
try to get host_target_sync_lock; if it's
handled on the same CPU, lockup will happen.

In the use-case, to update the current host
time, it's no need to get the spinlock in
this TSF-captured IRQ context, so move
host-time updating out of the lock.

Change-Id: I87205d5935bd2063c80ce7cf767cbc36dde55236
CRs-Fixed: 2057693
2017-07-12 00:22:57 -07:00
Yu Wang
0ea10177f5 qcacld-3.0: add device attribute 'tsf'
It will show the current host time and
the corresponding tsf when cat
'/sys/class/net/<iface_name>/tsf'
in the following format:
<tsf> <host time> <bssid>

Change-Id: I91332da950840433cf1b7e71f4add2249c8c21c4
CRs-Fixed: 2057693
2017-07-12 00:22:51 -07:00
Yu Wang
ceb357b964 qcacld-3.0: time stamp msdu with precise rx/tx time
Get tx/rx tsf time for each msdu, and then
time stamp the msdu with the corresponding
host time.

Change-Id: I7af80318b60c28d53e95fbe545e82da4191544b6
CRs-Fixed: 2057693
2017-07-12 15:21:47 +08:00
snandini
b9bfb9e0dc Release 5.2.0.34N
Release 5.2.0.34N

Change-Id: I25716e84fc57d9d3c02b5875375b28515e1fadb3
CRs-Fixed: 774533
2017-07-11 19:58:04 -07:00
Varun Reddy Yeturu
66899fe9e7 qcacld-3.0: Fix roam start not being sent to firmware
Fix the restriction of not sending ROAM_START command if the
previously sent command was an UPDATE_CFG command. There is
no such requirement.If the framework sends a BLACK_LIST update
command, then it is sent to firmware even in case of disconnected
state for the sake of PNO. The subsequent connection triggers a
ROAM_START command and it is not sent to the firmware due to
the current restriction

Move the global flag of saving the status of roam start sent to
firmware into the session

If a ROAM STOP is being sent to the firmware directly to WMA, then
update the relevant flags in the session

Change-Id: I6c42bc7d1e10352883edc7e715ea1418835cd142
CRs-Fixed: 2074836
2017-07-11 19:58:03 -07:00
snandini
7daf96a5e5 Release 5.2.0.34M
Release 5.2.0.34M

Change-Id: Ic3e1016233b3cf3dc0df37726b616e269d6809ea
CRs-Fixed: 774533
2017-07-11 12:56:59 -07:00
Abhishek Singh
7e95dbc9f6 qcacld-3.0: Cleanup the sme session if sme open session times out
Call sme close session if sme open session times out, to clean up
the vdev created.

Change-Id: Icd718138d0198a6285243a15eb56ce912149f038
CRs-Fixed: 2043263
2017-07-11 12:56:58 -07:00
snandini
4e5c5dfc2e Release 5.2.0.34L
Release 5.2.0.34L

Change-Id: I2dde52343c354f3c79c70e3dc8c1fd8663f400f1
CRs-Fixed: 774533
2017-07-11 12:08:09 -07:00
Abhishek Singh
2e1a11a6b0 qcacld-3.0: Fix buffer overflow in wmi roam scan filter cmd
The length of buffer used to send wmi roam scan filter cmd is not
properly calculated and the length is less than the data to be copied.

Fix it by properly calculating the length of the buffer.

Change-Id: I971ff3c1313d617cc3174150c738ba20f931d2a1
CRs-Fixed: 2072064
2017-07-11 12:08:09 -07:00
Dustin Brown
a7e6a5c19d qcacld-3.0: Address mScanPending issues
Address the following issues identified for mScanPending:

* Do not ensure mScanPending is set in hdd_cfg80211_scan_done_callback
* Always set mScanPending to false in hdd_start_all_adapters

Change-Id: I233b8208cea0661c1d8834704e44a311e662dc47
CRs-Fixed: 2073232
2017-07-11 12:08:07 -07:00
snandini
def07eb4fa Release 5.2.0.34K
Release 5.2.0.34K

Change-Id: I51259c13d3e7e3b8927149d49b7c0211e82251e0
CRs-Fixed: 774533
2017-07-11 07:27:14 -07:00
Kapil Gupta
ab7961d7f9 qcacld-3.0: Changes to retain value of snr_monitor_enabled
snr_monitor_enabled in the mac context can be overwritten while
applying sme config again.
Add changes to retain value of snr_monitor_enabled from initial
configuration.

Change-Id: I60522fa27407506522efb45a9c5d3e7a5ac04ef2
CRs-Fixed: 2056870
2017-07-11 07:27:14 -07:00
Kapil Gupta
c1224bf234 qcacld-3.0: Changes to correct channel flags for vendor ACS
In the reg channel info which is sent to external channel
selection daemon, Some channel flags are missing which causes
application to select wrong channel.

Add changes to correct channel flags.

Change-Id: I80834dd7f5f4bfbd2fce88084a938356a741140c
CRs-Fixed: 2068354
2017-07-11 07:27:12 -07:00
snandini
a325d47b46 Release 5.2.0.34J
Release 5.2.0.34J

Change-Id: I5f0ef64d3bb160a293dca3d964a2e2bed50e1e9f
CRs-Fixed: 774533
2017-07-11 05:47:39 -07:00
Srinivas Girigowda
aa6852824a qcacld-3.0: Fix clang warning implicit conversion enum type QDF_STATUS
warning: implicit conversion from enumeration type 'QDF_STATUS' to
different enumeration type 'enum tSirRetStatus' [-Wenum-conversion].

Change-Id: I4627325a927c36f3c4f9bb6d89f04146784d458a
CRs-Fixed: 2055487
2017-07-11 05:47:38 -07:00
Srinivas Girigowda
3ea486def5 qcacld-3.0: Fix clang warning implicit conversion enum hdd_wmm_user_mode
warning: implicit conversion from enumeration type 'enum hdd_wmm_user_mode'
to different enumeration type 'eCsrRoamWmmUserModeType' [-Wenum-conversion].

Add a utility function to convert enum hdd_wmm_user_mode to
eCsrRoamWmmUserModeType.

Change-Id: Iefbe7dd55bd51da2e019b528d64f9889abfd4d32
CRs-Fixed: 2055487
2017-07-11 05:47:36 -07:00
Srinivas Girigowda
bbbecad526 qcacld-3.0: Fix clang warnings implicit conversion enum pkt_filter_action
warning: implicit conversion from enumeration type 'enum pkt_filter_action' to
different enumeration type 'eSirReceivePacketFilterType' [-Wenum-conversion]

Change-Id: Idc819573712a54676ed0ba84d2032d80fd78b3b7
CRs-Fixed: 2055487
2017-07-11 05:47:34 -07:00
snandini
762baecfa6 Release 5.2.0.34I
Release 5.2.0.34I

Change-Id: I12123283cef5f21cfd4afb6d55f3ca9589c009be
CRs-Fixed: 774533
2017-07-11 03:51:59 -07:00
Sravan Kumar Kairam
3d5c118ec6 qcacld-3.0: At TSO segment free set owner TX desc to NULL
Currently at TSO segment free it's debug information is not
cleared. TSO segment TX descriptor owner is part of the debug
information. As a result even after segment free still its
point to stale TX descriptor as it's owner. In this change at
TSO segment free set TX desc owner to NULL.

Change-Id: I09f927d78c7b3aa4691aa69acbd4cef5002cf11d
CRs-Fixed: 2063433
2017-07-11 03:51:58 -07:00
snandini
677f1ce0ea Release 5.2.0.34H
Release 5.2.0.34H

Change-Id: I172c9559b72a9f5b75fa04c90ecbfa6b67cdea43
CRs-Fixed: 774533
2017-07-10 21:46:09 -07:00
Manjunathappa Prakash
c446853fc2 qcacld-3.0: Remove debug logging LRO context
"hdd_lro_rx 159: ctx " debug log was added for Napier emulation
LRO feature verification. Remove debug logging as the feature is
merged now.

Change-Id: Ib49ce9275dee1579e24c5de25ca6ff29e50a21df
CRs-Fixed: 2074005
2017-07-10 21:46:09 -07:00
Yue Ma
0615235c4c qcacld-3.0: Add support to simulate host driver initiated recovery
Expand crash_inject command so that it can be used to simulate host
driver initiated recovery.

Change-Id: Ia29a528c7153ea2ca62094909cb535f218f7bf88
CRs-fixed: 2068035
2017-07-10 21:46:07 -07:00
Yue Ma
63d360abdc qcacld-3.0: Add support for host initiated recovery for QCA6290
Add the interface that host driver can trigger FW assert and do
recovery for QCA6290.

Change-Id: I03a9c374fd2ddc5cc46b9b0a98ce05bcf80a53ec
CRs-fixed: 2068035
2017-07-10 21:46:05 -07:00
Naveen Rawat
d0ca44133d qcacld-3.0: get statistics code path cleanup
HDD always sets periodicity=0 and cache=false so all logic
that exists to support these options can be removed from SME/CSR.

Change-Id: Ica9848badd09d14f50c44998ce830568e2b76024
CRs-Fixed: 2063484
2017-07-10 16:59:07 -07:00
snandini
761f1f35d8 Release 5.2.0.34G
Release 5.2.0.34G

Change-Id: Ie6bd53a3e040f30a4f4daeb783e02ba4dc881385
CRs-Fixed: 774533
2017-07-10 13:36:30 -07:00
Ravi Joshi
04a1c99c32 qcacld-3.0: Set LA bit and reset multicast bit in the mac addr
Locally administered bit needs to be set and multicast bit
needs to be reset in the interface/vdev mac address.

Change-Id: Ifdc39a8137617ebf2d09434deba13767f0c7cf34
CRs-Fixed: 2059150
2017-07-10 13:36:30 -07:00
snandini
d079abf308 Release 5.2.0.34F
Release 5.2.0.34F

Change-Id: If9724fa5e91482b98d5b9e154192822b1cd2e5b8
CRs-Fixed: 774533
2017-07-10 11:42:09 -07:00
Yuanyuan Liu
321ac91edb qcacld-3.0: Use cnss_utils APIs
Use cnss_utils APIs to set/get wlan info as these APIs are platform
independent.

CRs-Fixed: 2071683
Change-Id: Ia35a648a1d4dff308b830bce3b4e9992de2a2834
2017-07-10 11:42:08 -07:00
snandini
7e8340bd32 Release 5.2.0.34E
Release 5.2.0.34E

Change-Id: I0d429366a508e93ede9158a7b7c0e45bbfb9317b
CRs-Fixed: 774533
2017-07-10 09:37:08 -07:00
Amar Singhal
7f55e34ea7 qcacld-3.0: Modify regulatory apis to pdev level
To support reg-domain at pdev level, modify the usage of some
apis to pdev level.

Change-Id: I37c504f77c7704553714cc74cba6c5ef882e774c
CRs-Fixed: 2048784
2017-07-10 09:37:08 -07:00
snandini
51f6b3d2b1 Release 5.2.0.34D
Release 5.2.0.34D

Change-Id: I4166d3950265284314545e5c67c8f891a7bbf0b0
CRs-Fixed: 774533
2017-07-10 05:51:33 -07:00
Ganesh Kondabattini
099e6e8d6a qcacld-3.0: update attribute validation policy
Update attribute validation policy for
QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST vendor attribute

CRs-Fixed: 2069917
Change-Id: Iea67767d9dc324f4cf87cc0838c7f34a6e47d75c
2017-07-10 05:51:33 -07:00
snandini
ce63183d35 Release 5.2.0.34C
Release 5.2.0.34C

Change-Id: I3d31b1e691c911e3ff6e005f8b24d016d9962bfe
CRs-Fixed: 774533
2017-07-10 03:30:30 -07:00
Rajeev Kumar Sirasanagandla
bff450c4e7 qcacld-3.0: Avoid concurrent matrix max param overread
Currently there is no nl policy defined for vendor sub command
QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX which may result in
buffer overread error.

To resolve this, add nl policy.

Change-Id: I155efdbb07f1c5fe300bb2be0c2a3fe07c7e134b
CRs-Fixed: 2054690
2017-07-10 03:30:29 -07:00
snandini
7dbe7e46b9 Release 5.2.0.34B
Release 5.2.0.34B

Change-Id: Ia09a4ac08592374408d98ab6b20cd677034340b0
CRs-Fixed: 774533
2017-07-10 02:45:52 -07:00
Ganesh Kondabattini
d921ed9fb4 qcacld-3.0: Update DBS capability in vendor command
Update the DBS capability of HW in vendor attribute
'QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA' of vendor sub command
'QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES'.

CRs-Fixed: 2064411
Change-Id: I79ddd50a31c7627706684ddb1e5dbab667bf028d
2017-07-10 02:45:52 -07:00
snandini
65f2549bdc Release 5.2.0.34A
Release 5.2.0.34A

Change-Id: I6e8351c29219b7e99652eda9e016abdb0901710e
CRs-Fixed: 774533
2017-07-09 23:41:17 -07:00
Varun Reddy Yeturu
0d3d9916c4 qcacld-3.0: Cleanup CBMode in SME
Cleanup the variable CBMode as there is no usage of
the variable in the code

Change-Id: I4e63a0f6f1cddd639f324c177b198e4b5c18e9e0
CRs-Fixed: 2063149
2017-07-09 23:41:17 -07:00
Varun Reddy Yeturu
8c68b47fa6 qcacld-3.0: Fix clang warnings in PE
Fix implicit conversion from enumeration type 'enum eSirMacStatusCodes'
to different enumeration type 'tSirResultCodes' (aka 'enum
eSirResultCodes')
Fix implicit conversion from enumeration type 'QDF_MODULE_ID' to
different enumeration type 'CDS_MQ_ID'
Fix implicit conversion from enumeration type 'enum eSirRetStatus' to
different enumeration type 'tSirResultCodes'
Fix implicit conversion from enumeration type 'QDF_STATUS' to different
enumeration type 'tSirResultCodes'
Fix implicit conversion from enumeration type 'tSirMacReasonCodes' (aka
'enum eSirMacReasonCodes') to different enumeration type
'tSirResultCodes'

Change-Id: I2e769dcf34a54959082d8154b1e9377b356d2f5e
CRs-Fixed: 2063149
2017-07-09 23:41:15 -07:00
Varun Reddy Yeturu
ba1942a040 qcacld-3.0: Fix CLANG warning for driver_type
Fix implicit conversion from type 'enum driver_type' to different
enumeration type 't_wma_drv_type'

Remove duplicate data structure

Change-Id: Iccf1bed796c0a67109788ce434ab9115b378dd43
CRs-Fixed: 2063149
2017-07-09 23:41:13 -07:00
CNSS_WLAN Service
c8436b1a14 Merge changes I4cc41267,Ic4f87c20,Ie4713a18 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  Release 5.2.0.33Z
  qcacld-3.0: Increase scan ageing value for emulation
  Release 5.2.0.33Y
2017-07-09 08:03:23 -07:00
Linux Build Service Account
111c5563e8 Merge "qcacld-3.0: Add .ini configuration for max number of AMSDU" 2017-07-09 07:58:25 -07:00
snandini
af30dc461b Release 5.2.0.34
Release 5.2.0.34

Change-Id: I5c1328409ded3ed0cb04d983d50a8b7f961514dc
CRs-Fixed: 774533
2017-07-09 01:40:06 -07:00
Ravi Joshi
4f095955f4 qcacld-3.0: Enable Napier monitor mode configuration
Host is required to send HTT messages to firmware to configure
and enable monitor mode. The HTT message requests the firmware
to subscribe the TLVs, packet types and also monitor mode type.

CRs-Fixed: 2071621
Change-Id: If2da5de01f3a7eb594e25b421bc17f97498c8a92
2017-07-09 01:40:05 -07:00
snandini
862cc56693 Release 5.2.0.33Z
Release 5.2.0.33Z

Change-Id: I4cc412671dca02162d7c97a7c60af634196af7f8
CRs-Fixed: 774533
2017-07-08 23:41:18 -07:00
Varun Reddy Yeturu
c4631fb7f1 qcacld-3.0: Increase scan ageing value for emulation
Increase the scan ageing timer value from 30 seconds
to 90 seconds for the configuration item
gScanAgingTime

Change-Id: Ic4f87c20601f753c71710d20ed98bdb774538f82
CRs-Fixed: 2072461
2017-07-08 23:41:17 -07:00
Linux Build Service Account
462b577db1 Merge "qcacld-3.0: Fix invalid challenge text sent out by SAP" 2017-07-08 21:48:52 -07:00
Linux Build Service Account
2280ab1ddb Merge "qcacld-3.0: Do not invoke panic on mode request failure" 2017-07-08 21:48:52 -07:00
CNSS_WLAN Service
207bc59bfd Merge changes I1e3cf186,I4614ec38,I1440706c,I8b194fb0,I4391f2ef,Ib99bbd4f,Ie532a898,I9d239ceb,I964520dc,Idc775274,Ib4fea9c6,Idc3c4f48 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  Release 5.2.0.33X
  qcacld-3.0: Add 11d scan event to wow statistics
  Release 5.2.0.33W
  qcacld-3.0: Randomize NDI mac address
  qcacld-3.0: Enable support for multiple NAN Data Interfaces
  Release 5.2.0.33V
  qcacld-3.0: Free callback arg of set link state while discarding WMA msg
  Release 5.2.0.33U
  qcacld-3.0: Add support of request peer stats info(part 1)
  qcacld-3.0: Free hif recv buffers in cds_flush
  Release 5.2.0.33T
  qcacld-3.0: Ensure SNR/RSSI fits int8 before passing to UMAC
2017-07-08 21:16:40 -07:00
Linux Build Service Account
aa76a34cd9 Merge "qcacld-3.0: Update valid rssi value to upper-layer" 2017-07-08 21:14:00 -07:00
CNSS_WLAN Service
a1c3d1c445 Merge "Release 5.2.0.33S" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:17 -07:00
CNSS_WLAN Service
0ab4536548 Merge "qcacld-3.0: Address excessive logging during PE frame parsing" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:16 -07:00
CNSS_WLAN Service
9dd1662e8a Merge "qcacld-3.0: Add option to avoid timestamp in version string" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:14 -07:00
CNSS_WLAN Service
2ad3eba6dc Merge "Release 5.2.0.33R" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:13 -07:00
CNSS_WLAN Service
daf58e98e8 Merge "qcacld-3.0: Refactor __wlan_hdd_cfg80211_get_station" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:12 -07:00
CNSS_WLAN Service
499ab16651 Merge "qcacld-3.0: Refactor wlan_hdd_get_station_stats" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:11 -07:00
CNSS_WLAN Service
b2a18aa494 Merge "Release 5.2.0.33Q" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:08 -07:00
CNSS_WLAN Service
a67a2ad43e Merge "qcacld-3.0: Add support for attributes in MBO-OCE IE" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:07 -07:00
CNSS_WLAN Service
584a0f0e75 Merge "Release 5.2.0.33P" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:05 -07:00
CNSS_WLAN Service
8565de6531 Merge "qcacld-3.0: Fix memory leak issues in HDD" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:04 -07:00
CNSS_WLAN Service
d327eda091 Merge "Release 5.2.0.33O" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:03 -07:00
CNSS_WLAN Service
a7ed251b0d Merge "qcacld-3.0: Move IPA SSR deinit after CDS Sched close" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:46:02 -07:00
CNSS_WLAN Service
bf88b0531d Merge "Release 5.2.0.33N" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:59 -07:00
CNSS_WLAN Service
ed8e2ccf54 Merge "qcacld-3.0: Configure scan burst duration when NDI is active" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:58 -07:00
CNSS_WLAN Service
a30ecd54a0 Merge "qcacld-3.0: Fix stability issue while freeing NDI session" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:57 -07:00
CNSS_WLAN Service
1021f2b888 Merge "Release 5.2.0.33M" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:56 -07:00
CNSS_WLAN Service
253a73ec5e Merge "qcacld-3.0: Fix NAN peer addition/deletion with all-zero mac addr" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:55 -07:00
CNSS_WLAN Service
919a89c3f1 Merge "qcacld-3.0: Fix build errors generated by gcc 6" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:54 -07:00
CNSS_WLAN Service
cd0082ff92 Merge "qcacld-3.0: Fix cds_mc_thread getting stuck in infinite loop" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:53 -07:00
CNSS_WLAN Service
962f696816 Merge "qcacld-3.0: Fix the value of LIM_ENCR_AUTH_BODY_LEN" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:51 -07:00
CNSS_WLAN Service
1988e52ac7 Merge "qcacld-3.0: Remove obsolete FTM state data structures" into wlan-cld3.driver.lnx.2.0-dev 2017-07-08 18:45:50 -07:00
snandini
31388137a9 Release 5.2.0.33Y
Release 5.2.0.33Y

Change-Id: Ie4713a18743372182e1ad358b4d89814c775000f
CRs-Fixed: 774533
2017-07-08 13:41:36 -07:00
Deepak Dhamdhere
612392c937 qcacld-3.0: Add .ini configuration for max number of AMSDU
qcacld-2.0 to qcacld-3.0 propagation

Host driver can send number of max AMSDUs in transmit frames.
Added a call to process_wma_set_command() similar to CLI
command processing for GEN_VDEV_PARAM_AMSDU during device
initialization.
Changed name of the field from isAmsduSupportInAMPDU to max_amsdu_num
in several places. Existing SME and LIM code passes this parameter
to WMA, but it is not used there. It may be useful if AMSDU setting
is changed to per-vdev basis in future.

WCNSS_qcom_cfg.ini changes:
Removed - "gAmsduSupportInAMPDU"
Added - Name = "gMaxAmsduNum", Min = 0, Max = 3, Default = 1

Actual function call to ol_txrx_aggr_cfg() send the parameters to
firmware is commented out because it is not implemented in firmware.

Change-Id: I2dfdd8c8c4a8807596ff28eee192ef66ac425653
CRs-Fixed: 871686
2017-07-08 13:41:35 -07:00
snandini
eadb2daa88 Release 5.2.0.33X
Release 5.2.0.33X

Change-Id: I1e3cf186158a4234a110e9767f4fbececd2e33b4
CRs-Fixed: 774533
2017-07-07 23:41:35 -07:00
Amar Singhal
5eb9acb9bd qcacld-3.0: Add 11d scan event to wow statistics
Add 11d scan wakeup event to wow statistics and wow wakeup
reason string.

Change-Id: I4614ec38491fa52eb163481a96140e0e5df45829
CRs-Fixed: 2057841
2017-07-07 19:05:25 -07:00
snandini
458bd856e2 Release 5.2.0.33W
Release 5.2.0.33W

Change-Id: I1440706c601ff5e7f0ff669d159bd3e7617ef59a
CRs-Fixed: 774533
2017-07-07 13:51:32 -07:00
Naveen Rawat
5a6f840edf qcacld-3.0: Randomize NDI mac address
Randomize NDI mac address and avoid potential conflict with FW's
generated NMI mac address by setting LSB of 6th byte to 0.

Change-Id: I8b194fb06bfd1abc46c40124c813a9880d631114
CRs-Fixed: 2053119
2017-07-07 13:51:31 -07:00
Naveen Rawat
c4b045cc81 qcacld-3.0: Enable support for multiple NAN Data Interfaces
Enable support for multiple nan data interfaces. The usespace
may need to create multiple NDIs depending on whether it
requires IP isolation or not.

Change-Id: I4391f2efdc6bdede52a73915531d39dd7798c39d
CRs-Fixed: 2028187
2017-07-07 13:51:29 -07:00
snandini
26ff90c71b Release 5.2.0.33V
Release 5.2.0.33V

Change-Id: Ib99bbd4f97274417bf99108749543eb7d7eca4fc
CRs-Fixed: 774533
2017-07-07 06:27:13 -07:00
Abhishek Singh
caf6a6537a qcacld-3.0: Free callback arg of set link state while discarding WMA msg
If set link state cmd is present in MC thread and is not processed,
during unload/SSR the msg is discarded but callback arg is not freed.

To fix this free the callback argument while discarding the link state
cmd from WMA msg queue.

Change-Id: Ie532a8983c8efbf3a24eef3b93a8c723bfc65a3f
CRs-Fixed: 2053978
2017-07-07 06:27:12 -07:00
snandini
a72eba2769 Release 5.2.0.33U
Release 5.2.0.33U

Change-Id: I9d239cebb6b6291bdfca0a8aa5bb6706ed7b28aa
CRs-Fixed: 774533
2017-07-07 05:42:25 -07:00
Will Huang
a981459c44 qcacld-3.0: Add support of request peer stats info(part 1)
qcacld-2.0 to qcacld-3.0 propagation

FW has limitation to support old WMI_REQUEST_STATS_CMDID and
WMI_UPDATE_STATS_EVENTID interface on AP vDev. FW suggest to use new
WMI_REQUEST_PEER_STATS_INFO_CMDID and WMI_PEER_STATS_INFO_EVENTID to
get tx/rx rate.

This checkin is about WMA layer which process SME message to get peer
stats info and WMI event WMI_PEER_STATS_INFO_EVENTID which send from
firmware as response to WMI_REQUEST_PEER_STATS_INFO_CMDID. There are
also updates using old WMI_REQUEST_STATS_CMDID to get peer stats.

Change-Id: I964520dc44c112875434771154f55f4746298308
CRs-Fixed: 2046459
2017-07-07 05:42:24 -07:00
Houston Hoffman
b6084f1ab8 qcacld-3.0: Free hif recv buffers in cds_flush
Hif recv buffers with fw events were being leaked
in the cds_sched_flush_mc_mqs opperation.

Change-Id: Idc7752740eb955b61876bd235e5e9516f98af4bf
CRs-Fixed: 2004858
2017-07-07 05:42:22 -07:00
snandini
71bf50d1a2 Release 5.2.0.33T
Release 5.2.0.33T

Change-Id: Ib4fea9c63e77500dca2651e874b4d2e244577282
CRs-Fixed: 774533
2017-07-06 17:50:35 -07:00
Naveen Rawat
f440a13e19 qcacld-3.0: Ensure SNR/RSSI fits int8 before passing to UMAC
Firmware reports SNR and RSSI in int32 variable due to restriction
of WMI, however host uses int8 for these. This is causing RSSI or
SNR value to be altered when typecasted. Fix range change for SNR
and RSSI at WMA and ensure it fits int8 before passing to UMAC.

Change-Id: Idc3c4f48bb1212b5f10104843960d1a509403456
CRs-Fixed: 2042747
2017-07-06 17:50:35 -07:00
Hanumanth Reddy Pothula
90051789ab qcacld-3.0: Update valid rssi value to upper-layer
For a small window during roaming and new connection, there is a
possibility of firmware to send the invalid rssi value(other than
0-127), leading driver to send the same invalid rssi value to upper-layer.

To mitigate this issue:
1) Either send previous valid rssi value to upper-layer on receiving invalid
   rssi value from the firmware.
2) Or if previous rssi value is not valid, fetch rssi value from beacon frame
   of connected AP from scan cache.

Change-Id: I4443ed06cd80826ff386c2b4a536a2dc1a1e0881
CRs-Fixed: 2042747
2017-07-06 17:50:32 -07:00
snandini
cad1c922f6 Release 5.2.0.33S
Release 5.2.0.33S

Change-Id: I7ae3ab611f3c2045c8c27d9afd400f4619dd737c
CRs-Fixed: 774533
2017-07-06 15:41:29 -07:00
Rajeev Kumar
b581380438 qcacld-3.0: Address excessive logging during PE frame parsing
Commit I1054c7df18780469849be55fc4343f09ac502a49 introduced
excessive logging because PE is using WARN log level to dump
frames. Reduce log level to debug level and remove hexdump
log as its not a fatal/error condition.

Change-Id: I75052c28c4bafdf36ff5fd8837da172ccce1abf8
CRs-Fixed: 2066381
2017-07-06 15:41:29 -07:00
Naveen Rawat
9383625dd6 qcacld-3.0: Add option to avoid timestamp in version string
Adding timestamp in version string is causing long compile times
for wlan project. Add option to avoid timestamp so that developers
can avoid long compile times.

Change-Id: Iaa5fd4f432549844ae319451cb43929a2d4b68ea
CRs-Fixed: 2064805
2017-07-06 15:41:27 -07:00
snandini
357f43ef5f Release 5.2.0.33R
Release 5.2.0.33R

Change-Id: Iab01e156e9af3ee59dd7e0fa2ca6e3b86f0cba7a
CRs-Fixed: 774533
2017-07-06 13:50:59 -07:00
Dustin Brown
32cb479206 qcacld-3.0: Refactor __wlan_hdd_cfg80211_get_station
__wlan_hdd_cfg80211_get_station() is notoriously overly complicated.
Begin refactoring this function by factoring out some of the conditional
compilation.

Change-Id: I8a0e66a8dc4bf320080f417b196ead6df06d0995
CRs-Fixed: 2071619
2017-07-06 13:50:58 -07:00
Dustin Brown
0f5260dc35 qcacld-3.0: Refactor wlan_hdd_get_station_stats
For improved clarity, refactor wlan_hdd_get_station_stats by reducing
nesting.

Change-Id: I3382a9a0f077e741bb3f8d78cd2e59c9a58d6548
CRs-Fixed: 2071623
2017-07-06 13:50:56 -07:00
snandini
21d487748d Release 5.2.0.33Q
Release 5.2.0.33Q

Change-Id: Ie6439469f6be10cc6c8bcb36b5e8fb676e54c7be
CRs-Fixed: 774533
2017-07-06 09:41:40 -07:00
Abhishek Singh
951eed897f qcacld-3.0: Add support for attributes in MBO-OCE IE
Currently MBO-OCE IE doesn't support different attributes and
consider the IE as fixed IE with only cellular data and assoc
disallowed attributes.

To fix this added support for parsing of different attributes of
MBO-OCE IE

Change-Id: Ia7eb38cec3dbb4022acbcc06588004b5bf4ca87f
CRs-Fixed: 2063865
2017-07-06 09:41:39 -07:00
snandini
6f0ced5627 Release 5.2.0.33P
Release 5.2.0.33P

Change-Id: Id81f096a21a560864208a2782d4f5dc3d0f93111
CRs-Fixed: 774533
2017-07-06 07:45:24 -07:00
SaidiReddy Yenuga
466b3ce1b0 qcacld-3.0: Fix memory leak issues in HDD
In few instances memory allocated dynamically, but
its not freed after usage.

free the allocated space after usage.

CRs-Fixed: 2041467
Change-Id: Iae551cd3acbb6bc2618f05cfdc33e4f742d63192
2017-07-06 07:45:23 -07:00
snandini
88e2a04504 Release 5.2.0.33O
Release 5.2.0.33O

Change-Id: Id54903df632c905f70ad54eb70ad4b95212dba31
CRs-Fixed: 774533
2017-07-06 03:50:30 -07:00
Manikandan Mohan
71844ea2cb qcacld-3.0: Move IPA SSR deinit after CDS Sched close
Fix crash due to race condition between MC thread and shutdown
sequence worker thread by moving IPA SSR deinit after MC thread
shutdown.

Change-Id: Id9ee6de5b176e302f865ab959aca29fb708dd6bc
CRs-fixed: 2071804
2017-07-06 03:50:29 -07:00
snandini
950e541980 Release 5.2.0.33N
Release 5.2.0.33N

Change-Id: Id135ec5392b2bfa9c60400f3fb234e38c0dc17ed
CRs-Fixed: 774533
2017-07-05 22:57:32 -07:00
Ravi Joshi
3750de94c4 qcacld-3.0: Configure scan burst duration when NDI is active
Configure burst duration for the scan when VDEV is in NDI mode
and at least one peer is connected.

CRs-Fixed: 2055300
Change-Id: I4cd582ad8df6bc2aa2095cff1933b2f9d166fd60
2017-07-05 22:57:31 -07:00
Ravi Joshi
1a2925608c qcacld-3.0: Fix stability issue while freeing NDI session
It is better to follow 2 stage sequence for NAN as well like
1) open adapter 2) start adapter (sme_open_session). Since that
is not possible making hdd_init_nan_data_mode happens at the end
when all adapters registered.

Change-Id: Ib67a8f8e9ee5546a77d90d04f0a69a2a5a739e4d
CRs-Fixed: 2049177
2017-07-05 22:57:30 -07:00
snandini
5fc7544e54 Release 5.2.0.33M
Release 5.2.0.33M

Change-Id: Ida19946d58d68e9aef33e4ca5e20917496caf82b
CRs-Fixed: 774533
2017-07-05 22:12:13 -07:00
Ravi Joshi
bf5981365c qcacld-3.0: Fix NAN peer addition/deletion with all-zero mac addr
NAN Enable/NAN Disable followed by NAN data request causes NDP to
fail. The failure is due to the firmware sending all-zero peer
mac address. Even though, FW should not be sending all-zero
peer address, the host should not attempt to add/delete such
a peer.

CRs-Fixed: 2043780
Change-Id: Ieab390d3fe4c585e1692767839856af2ad17a37b
2017-07-05 22:12:13 -07:00
wadesong
42968e93c3 qcacld-3.0: Fix build errors generated by gcc 6
Gcc 6 introduces some stricter checking for indentation,
causing warnings of misleading-indentation, which are
treated as build errors when drivers are compiled.

Fix all the identation warnings under qcacld-3.0.

Change-Id: Ie197761cfe4334ab14d593adebc56375372ba37c
CRs-Fixed: 2058158
2017-07-05 22:12:11 -07:00
Ravi Joshi
b228f09444 qcacld-3.0: Fix cds_mc_thread getting stuck in infinite loop
A null IE in the bss entry was causing a busyloop in the
cds-mc-thread.

Change-Id: Ia8bc11f7ee31b2be48d6f1fd9cfb50bc6e49c0c3
CRs-Fixed: 2043510
2017-07-05 22:12:09 -07:00
snandini
663d2424c1 Release 5.2.0.33L
Release 5.2.0.33L

Change-Id: I066b3fc3090aae05234aad2b0b0e837441f20a7f
CRs-Fixed: 774533
2017-07-05 17:51:09 -07:00
Arif Hussain
f73e843bd4 qcacld-3.0: Send WMA_SWITCH_CHANNEL_RSP in wma_set_channel for monitor mode
In wma_set_channel function for monitor mode WMI_PDEV_SET_CHANNEL_CMDID
is used to set channel.

In lim, while sending WMA_CHNL_SWITCH_REQ, defer flag was set to wait for
WMA_SWITCH_CHANNEL_RSP from firmware, incase if we don’t use
WMA_CHNL_SWITCH_REQ in monitor mode, send WMA_SWITCH_CHANNEL_RSP
from wma_set_channel itself to reset defer flag in lim.

Change-Id: Ica96be08d8fb2af5ca5dc07182b690ea5c2bdbae
CRs-Fixed: 2010363
2017-07-05 17:51:08 -07:00
Sameer Thalappil
ac5d26eb5e qcacld-3.0: Add support for host initiated recovery
If platform has a mechanism to initiate target assert, trigger
that interface to force assert target. Certain integrated platforms
(where WLAN runs on it's own PD) provides a mechanism to initiate PDR
from host. That interface can be triggered when WLAN host detect
timeout scenarios.

CRs-Fixed: 1110243
Change-Id: I6a9408f47ca4245380dbf4177363c3c461ff948d
2017-07-05 17:51:06 -07:00
Rajeev Kumar
170310b310 qcacld-3.0: Remove obsolete FTM state data structures
FTM state structures wlan_hdd_ftm_state and wlan_hdd_ftm_status
are not used hence remove them.

Change-Id: I03e0e11e3f7436da99eeb6a1b0fd128e5bf31e7e
CRs-Fixed: 2052605
2017-07-05 15:53:25 -07:00
snandini
2a519af313 Release 5.2.0.33K
Release 5.2.0.33K

Change-Id: I4eadd0d92f758373f0131e7095b9f488efd09941
CRs-Fixed: 774533
2017-07-05 11:50:54 -07:00
Deepak Dhamdhere
be72e80caa qcacld-3.0: Fix error handling in peer creation
Return error instead of QDF_BUG(0) in ol_txrx_peer_attach() when it
times out on duplicate peer detection. Peer unmap events from firmware
may take more than 500 ms timeout observed by this routine.
wma_create_peer() should return error status on failure to create peer.

CRs-Fixed: 2004665
Change-Id: I8368c6320139f97584bd1647f1806a695d4a5929
2017-07-05 11:50:53 -07:00
snandini
7add0f66d1 Release 5.2.0.33J
Release 5.2.0.33J

Change-Id: I3576b8052369aa6c4a06d34a642525f8c0cf1eb8
CRs-Fixed: 774533
2017-07-05 09:45:01 -07:00
Jeff Johnson
ab01d2b9af qcacld-3.0: Move WMI_PDEV_FIPS_EVENTID handling to workqueue
Currently the WMI_PDEV_FIPS_EVENTID handler is registered to use
WMA_RX_SERIALIZER_CTX. However the FIPS feature does not use pMac and
hence does not require serialization through the MC Thread. So change
the registration to use WMA_RX_WORK_CTX.

Change-Id: Iec0b87331008bbe393efa1cbc2071af75012022e
CRs-Fixed: 2068572
2017-07-05 09:45:00 -07:00
snandini
f87f0df229 Release 5.2.0.33I
Release 5.2.0.33I

Change-Id: I8ccf64cdbf4f8cf5ccdceb9a7b348f10039f67c9
CRs-Fixed: 774533
2017-07-05 07:45:16 -07:00
Wu Gao
2968fc953f qcacld-3.0: Check pointer pLimJoinReq before access
When reassoc to AP, pLimJoinReq will be NULL and there is not NUll
check before access, which cause DUT crash. Verify the pointer before
access it, set SMPS for both join and reassoc cases.

Change-Id: Ifbaf8d52c4be1a2a31506e4ab49e6d5b68596645
CRs-Fixed: 2062392
2017-07-05 07:45:16 -07:00
snandini
2a0d9a51d1 Release 5.2.0.33H
Release 5.2.0.33H

Change-Id: Ic616d4e81988cf6ea5d58576b2e033b17d73d385
CRs-Fixed: 774533
2017-07-05 05:50:40 -07:00