Commit Graph

3889 Commits

Author SHA1 Message Date
Mukul Sharma
f904723e33 qcacld-3.0: Remove Vdev_up from WMA iface node instead use objmgr vdev
Currently, WMA maintains vdev up flag but other component
also need this flag to check vdev up status. Hence as part of
this fix removing this flag instead using Objmgr Vdev mlme state
for same purpose.

Change-Id: If1922791e71c07621708755de67fbcc2f7a469cd
CRs-Fixed: 2014026
2017-03-03 13:12:57 -08:00
qcabuildsw
f4b58b64eb Release 5.2.0.12S
Release 5.2.0.12S

Change-Id: I131c26a62aa13228897989fae53e65aaacfbe00f
CRs-Fixed: 688141
2017-03-03 13:12:56 -08:00
Padma, Santhosh Kumar
18169ce96e qcacld-3.0: Serialize WMI_ROAM_EVENTID to MC thread
Currently WMI_ROAM_EVENTID is handled in work queue context whereas
WMI_ROAM_SYNCH_EVENTID is handled in MC Thread context. This can
cause handling of WMI_ROAM_SYNCH_EVENTID followed by WMI_ROAM_EVENTID
if both events are received from firmware almost at the same time
which can result in setting roaming_in_progress to true even after
roam synch event handling and can block further scan requests.
Fix this by handling both WMI_ROAM_EVENTID and WMI_ROAM_SYNCH_EVENTID
in same MC Thread context.

Change-Id: I722cea54fa2126cb5d647f3a26371ca1c9a0f5a2
CRs-Fixed: 2014404
2017-03-03 13:12:55 -08:00
Abhishek Singh
e586ade30d qcacld-3.0: Fix incorrect channel switch info during CSA
qcacld-2.0 to qcacld-3.0 propagation

In the current code, when STA receives CSA IE then host look and
operate on extended channel switch element eventhough our own
channel-bonding state is not enabled. This causes setting up of
secondary subband and state in new channel during CSA eventhough
the secondary channel offset is set to zero in CSA beacon.

Fix is to set the Secondary Channel Offset if our own channel
bonding state is enabled.

Change-Id: I82ca9737f49937176801bc4cbbdd3e2fb77d4749
CRs-Fixed: 1080260
2017-03-03 13:12:54 -08:00
Abhishek Singh
9354d69eca qcacld-3.0: Process STA kickout event only in link established state
Firmware may send STA kickout event even during association. This
change the limSmeState to eLIM_SME_WT_DEAUTH_STATE from
eLIM_SME_WT_ASSOC_STATE. Due to this assoc confirm is not processed
and HDD remains in connecting state and thus all subsequent scans
fails.

Fix this by processing STA kickout event only in
eLIM_MLM_LINK_ESTABLISHED_STATE

Change-Id: I75b4814aade80ca74ef9aef67ecea99a3bc15148
CRs-Fixed: 2012727
2017-03-03 13:12:53 -08:00
qcabuildsw
71a600a36f Release 5.2.0.12R
Release 5.2.0.12R

Change-Id: I14f494b75e6d0033881af4c8368e2c52702eca10
CRs-Fixed: 688141
2017-03-03 13:12:52 -08:00
Tushnim Bhattacharyya
44939d41fe qcacld-3.0: build file change for policy manager restructuring
Move Policy Manager code to host common

CRs-Fixed: 2009818
Change-Id: Ia69683368f5eee638dcc6f19df9195edb9930130
2017-03-03 13:12:51 -08:00
qcabuildsw
8aff910e30 Release 5.2.0.12Q
Release 5.2.0.12Q

Change-Id: Iac1e79166a5667e3ee5a5991803dc5165d30ca3d
CRs-Fixed: 688141
2017-03-03 13:12:50 -08:00
Abhishek Singh
6092fbbd64 qcacld-3.0: Add changes to get/flush scan results
Add changes to get/flush scan results. Also add support to
convert legacy filter and scan entry to converged one and vice
versa.

Change-Id: I590745af3943a8975fb0644d02e58b2133c9f1cb
CRs-Fixed: 2013212
2017-03-03 13:12:49 -08:00
Kapil Gupta
6eb83c04ee qcacld-3.0: Correct max value for passive monitor interval
Add changes to correct max value for passive monitor interval for
adaptive dwell time.

Change-Id: Ib59e0d5843eda37a42733b5ec81ed3a70455c449
CRs-Fixed: 2014385
2017-03-03 02:09:06 -08:00
qcabuildsw
31a69adc6a Release 5.2.0.12P
Release 5.2.0.12P

Change-Id: I0ff7bb3c6e07268b71fc82441878b0f7cd58bd78
CRs-Fixed: 688141
2017-03-02 19:59:04 -08:00
Yu Wang
c7db7117a4 qcacld-3.0: fix compile error caused by QCA_CONFIG_SMP
Some functions/structs are defined only when
QCA_CONFIG_SMP is enabled, however, they
are also used when QCA_CONFIG_SMP is disabled,
which will cause compilation errors.
Move the definition of these functions/structs
out of macro QCA_CONFIG_SMP.

Return type of cds_alloc_ol_rx_pkt() is not
void, but there is no return statement for
it when QCA_CONFIG_SMP is disabled.
Add 'return NULL' for cds_alloc_ol_rx_pkt().

Change-Id: If6f4298c27f0089219bbceb4a9d0ba1a295f8dcd
CRs-Fixed: 2010568
2017-03-02 19:59:03 -08:00
Hong Shi
b90718f3e7 qcacld-3.0: Add ini config for tx mgmt frame rate
qcacld-2.0 to qcacld-3.0 propagation

Add an ini option for configuring rate for tx mgmt frame.
It sets the existed wmi cmd: WMI_VDEV_PARAM_MGMT_TX_RATE right
after vdev created. Since FW resets mgmt during vdev up, also
set mgmt rate after sap/sta vdev up.

CRs-Fixed: 1103895
Change-Id: I93bbe0978963abf0b887dbf2add5bfc2912f6de1
2017-03-02 19:59:01 -08:00
Hong Shi
a9ef87198d qcacld-3.0: Add ini to disable abg rate for tx data
qcacld-2.0 to qcacld-3.0 propagation

Add ini config option to disable abg rate for tx data.

Change-Id: Ideb1fd6471c6fbdade99b4c7c533cb1bf3bf206c
CRs-Fixed: 1111787
2017-03-02 19:59:00 -08:00
Hong Shi
417824fc25 qcacld-3.0: add ini to configure HT max mcs
qcacld-2.0 to qcacld-3.0 propagation

Add support for configure host init HT rate upper bound.

CRs-Fixed: 1105357
Change-Id: Ic69a2d19ad1b3b835c83c7d666fb7821e42e8442
2017-03-02 19:58:58 -08:00
Yu Wang
66e4ff2fe1 qcacld-3.0: Update prefix for multi-interface with chip name
1. The paths for driver to get ini and fw files
   are incorrect for QCA SDIO chip on Dual-WiFi
   platforms, with wrong prefix or no prefix.
   Correct prefix for ini file, from '<mod_name>'
   to '<chip_name>/'; add prefix '<chip_name>/'
   for fw files.

2. For QCA9377, there is a special cnss API for getting
   fw names, it's cnss_get_qca9377_fw_files().
   Use the right cnss API to get fw files for QCA9377

Change-Id: Ia7616153b6823e9550703e649c7fc21ab306ca07
CRs-Fixed: 2008217
2017-03-02 19:58:56 -08:00
qcabuildsw
1163a6e886 Release 5.2.0.12O
Release 5.2.0.12O

Change-Id: Ic6a183d61bd90954f36cdcbda4a481766ce311b9
CRs-Fixed: 688141
2017-03-02 17:52:33 -08:00
gbian
016a42e2c7 qcacld-3.0: Add vdev checking in the ol_tx_desc_free to avoid crash
qcacld-2.0 to qcacld-3.0 propagation

The ol_tx_desc_free might access the invalid content of vdev referred by tx
desc, since this vdev might be detached in another thread asynchronous.

Go through tx desc pool to set corresponding tx desc's vdev to NULL
when detach this vdev, and add vdev checking in the ol_tx_desc_free to
avoid crash.

Change-Id: I3afa63659e047bbbf008440335fb71c8295ca353
CRs-Fixed: 1087690
2017-03-02 17:52:32 -08:00
qcabuildsw
5382cf4865 Release 5.2.0.12N
Release 5.2.0.12N

Change-Id: Iff557c2ced5ed226fd97cc276ea2889479710927
CRs-Fixed: 688141
2017-03-02 16:54:26 -08:00
yeshwanth sriram guntuka
af7b73f87d qcacld-3.0: Send reason for connect timeout to user space
Reason for association failure due to timeout is not sent
to user space.

Add changes to send association failure status code to
user space using cfg80211_connect_bss or
cfg80211_connect_timeout.

Change-Id: I060bdfdfd7875c7e945d1b2bf011c14a680b24f1
CRs-Fixed: 2012804
2017-03-02 16:54:25 -08:00
qcabuildsw
4946ffbf16 Release 5.2.0.12M
Release 5.2.0.12M

Change-Id: Ia1488ce95a20ac8d632b043787d71acaa796a73b
CRs-Fixed: 688141
2017-03-02 16:15:59 -08:00
Padma, Santhosh Kumar
f3f6fc00b5 qcacld-3.0: Logging enhancements to WMM
Add logging enhancements to WMM code

Change-Id: Ic464711f201deb5af3b2eff09b9211a0aa0c3b25
CRs-Fixed: 1106417
2017-03-02 16:15:58 -08:00
Padma, Santhosh Kumar
93ec7d2960 qcacld-3.0: Logging enhancements to RRM APIs
Add logging enhancements to RRM code

Change-Id: I4aacbca13c604d2f2dd354d9417a3e65dff398ae
CRs-Fixed: 1106418
2017-03-02 16:15:57 -08:00
Padma, Santhosh Kumar
cd35f532e4 qcacld-3.0: Logging enhancements to LFR3 code
Add logging enhancements to LFR3 code

Change-Id: If8ea2c15a29889a22359911acc433f93691b9279
CRs-Fixed: 1106420
2017-03-02 16:15:55 -08:00
Padma, Santhosh Kumar
52456c6044 qcacld-3.0: Avoid waiting if driver is not in connecting stage
qcacld-2.0 to qcacld-3.0 propagation

If disconnect is already in progress because of deauth received
from AP when disconnect is also received from supplicant, there
is a possibility that completion variable disconnect_comp_var
gets reset in hdd_DisConnectHandler because of disconnection
in progress from AP before completion variable disconnect_comp_var
gets initialized in wlan_hdd_disconnect to handle disconnect from
supplicant. This can cause a delay of 5 seconds eventhough disconnect
was already happened. This waiting is not required when previous
connection status was not eConnectionState_Connecting. Fix this delay
by adding a check to avoid waiting when previous connection status was
not eConnectionState_Connecting.

Change-Id: I58ac638622c5164fa1e9fe45c52ebf60fab2340f
CRs-Fixed: 1093562
2017-03-02 16:15:53 -08:00
qcabuildsw
c1ab165e1f Release 5.2.0.12L
Release 5.2.0.12L

Change-Id: Ib759d4d855609f9ed0d8a7c64e4831bef5df7d33
CRs-Fixed: 688141
2017-03-02 15:30:46 -08:00
Krunal Soni
971ea8c37f qcacld-3.0: Fix IE order in association request frame
Current driver is packing IEs associated with association request
out of order which is violating 80211 spec.

Fix the order in association request based on element ID.

Change-Id: Ie7a69ce2999d5a5d8ba88bac1e988f0a41dd10a6
CRs-Fixed: 2006920
2017-03-02 15:30:45 -08:00
qcabuildsw
2418c583c2 Release 5.2.0.12K
Release 5.2.0.12K

Change-Id: I1b6eef957cff690532bcda3492931d54af84fa55
CRs-Fixed: 688141
2017-03-02 13:02:25 -08:00
Naveen Rawat
56b4de80a8 qcacld-3.0: Fix uninitialized usage
In function sme_get_beacon_frm, result_handle maybe used uninitialized.
Fix this by initializing result_handle with NULL value.

Change-Id: Ia1437b6adf1bbcfe7d2d87b42a252e4a0ee6f5ea
CRs-Fixed: 2008665
2017-03-02 13:02:24 -08:00
qcabuildsw
ad9b00571a Release 5.2.0.12J
Release 5.2.0.12J

Change-Id: Ic994047f82448c12c4287ea6cdd3dc5d381dc619
CRs-Fixed: 688141
2017-03-02 12:22:37 -08:00
Manikandan Mohan
fa7b7fe5d4 qcacld-3.0: Check for HDD context validity
Check for HDD context validity for SAP Net dev stop ioctl to
resolve crash during SSR.

Change-Id: I09c57da5db4b072a8066f3c2b22c748cd79c293c
CRs-fixed: 2007350
2017-03-02 12:22:36 -08:00
Manikandan Mohan
b0932ab0bf qcacld-3.0: Cleanup Vdev response timer on SSR
During SSR firmware is reloaded and FW responses for previous
vdev sessions are not received. Thus cleanup FW response timers
on SSR.

CRs-fixed: 2005625
Change-Id: I95e2d85b29da240d372039deeece9db6add74edb
2017-03-02 12:22:34 -08:00
Manikandan Mohan
b089ed654d qcacld-3.0: Check for SSR on fw timeouts
During SSR firmware is reloaded and FW responses for previous
vdev sessions are not received. Thus check for SSR before host
crash trigger on FW timeout.

Change-Id: I8be8b7264c133fa115a5b6ac6a3b865f7040e739
CRs-fixed: 2005995
2017-03-02 12:22:32 -08:00
Manikandan Mohan
bb8a7eed59 qcacld-3.0: Update IPA resource info at reconfiguration
IPA resource information allocated during cds_open must be
updated to IPA HW before configuring to FW in cds_enable.
Thus remove IPA HW configuration from HDD IPA init function
to do this action at every reconfiguration.

CRs-fixed: 2004133
Change-Id: I8761c06c1e84b68addbdcddccb4c652166c4c306
2017-03-02 12:22:31 -08:00
Manikandan Mohan
0a0ac95919 qcacld-3.0: Fix SAP SSR reinit for uninitialized config
SSR can happen during SAP initialization. Thus check of SAP
initialization complete before attempting to restart SAP instance
during SSR.

Change-Id: Ib26116cfc33684035df692ae6c7b5d83cb0a27b8
CRs-fixed: 2005281
2017-03-02 12:22:29 -08:00
Arun Khandavalli
cc544b3909 qcacld-3.0: Add support in driver to do sap restart during SSR
qcacld-2.0 to qcacld-3.0 propagation

Presently, during subsystem restart Host is sending sap restart
indication to framework(via carrier off) to do SAP unload/load.
But SAP restart functionality is removed in framework when the
carrier off event is received, leading SAP fails to come-up
after subsystem restart.

Add support in driver to do SAP restart internally without sending
restart indication to framework, during subsystem restart.
This feature is controlled by ini param 'gEnableSapInternalRestart'
and by default it's enabled.

Change-Id: I76cb73c1887d4d8124cd9a1c29b9aac47642072a
CRs-Fixed: 1105651
2017-03-02 12:22:27 -08:00
Manikandan Mohan
153a4c3ff8 qcacld-3.0: IPA UC sync init
WLAN IPA UC data path initialize should be sync up with UC load
status. If UC driver is not loaded when WLAN driver loading,
WLAN UC data path initialize should be delayed till UC driver
will be ready

Change-Id: I297a53d1913ec4d88a5c51794959dcfebf85b45b
CRs-fixed: 786656
2017-03-02 12:22:25 -08:00
qcabuildsw
994c18c736 Release 5.2.0.12I
Release 5.2.0.12I

Change-Id: Iec383cfe03ad098401a9a639b4859b74fdd5f1a9
CRs-Fixed: 688141
2017-03-02 10:43:54 -08:00
Sandeep Puligilla
9ead8c42ec qcacld-3.0: Move enum scan_source to common module
Move enum scan_source to common module.

Change-Id: I1bf916da0258614a4b325aee8df78181cc2b25bc
CRs-Fixed: 2013212
2017-03-02 10:43:53 -08:00
qcabuildsw
b631358151 Release 5.2.0.12H
Release 5.2.0.12H

Change-Id: Id32624bc1464e73b0e38d9f9b7c5a14881ee0c6a
CRs-Fixed: 688141
2017-03-02 10:03:54 -08:00
Sreelakshmi Konamki
89f6ff8bd2 qcacld-3.0: Remove unnecessary log in wma_peek_vdev_req()
Fix to remove unnecessary log in wma_peek_vdev_req().

Change-Id: I40a2e74c8300904d5750d3d5f7af3e4797fa21f4
CRs-Fixed: 1102379
2017-03-02 10:03:53 -08:00
Sreelakshmi Konamki
f76b407559 qcacld-3.0: Fix SME command stuck issue
If ADD TS is sent it will be an active command in SME till driver gets
resp from peer or timeout. During this phase if LFR3 roam sync event is
received from firmware then PE session cleanup will be done and
SME/CSR is updated with new BSS info. In LIM, 'gLimAddtsSent' flag is
set while processing add tspec request and 'gLimAddtsSent' flag will be
reset once add tspec response received or addts rsp timeout.
This timeout doesn't expire because as part of LFR3 roam sync,
PE delete session is done which stops the timer. Because of this
'gLimAddtsSent' flag is not reset and add tspec response is not sent to
SME, this blocks further SME commands as addts req is not removed from
the active command list. This also blocks PE msg processing as
gLimProcessDefdMsgs is set to FALSE when addts request is sent.
This is not reset as the timer is killed as part of pe delete session.

To address this issue, call lim_process_sme_addts_rsp_timeout()
to reset the 'gLimAddtsSent' flag and send addts rsp timeout to SME.

Change-Id: I7cd1f38fa317bb0a10e22de242aaf42ff62641fd
CRs-Fixed: 1104590
2017-03-02 10:03:52 -08:00
Sreelakshmi Konamki
6b1f5513cf qcacld-3.0: Remove redundant fast_roam_enabled flag from CSR session
'fast_roam_enabled' flag does same as 'do_not_roam' flag which is used to
track whether roaming is enabled or disabled per CSR session.
As per code 'do_not_rome' flag alone is sufficient to track roaming status
per session.

Fix to remove redundant 'fast_roam_enabled' flag to allow vendor roaming.

Change-Id: Id7f6e547b883c932f615cfbf89eeb30d47d6408e
CRs-Fixed: 1105973
2017-03-02 10:03:50 -08:00
Sreelakshmi Konamki
9be8d4185b qcacld-3.0: Add INI/IOCTL template for WMM feature
Add INI and IOCTL template for WMM feature for documentation

Change-Id: I39e2d0a1af2f3ca282ef7842fa0d180bcaa9d25d
CRs-Fixed: 1106990
2017-03-02 10:03:48 -08:00
Sreelakshmi Konamki
873a175b51 qcacld-3.0: Validate no.of RIC data desctiptors before use
qcacld-2.0 to qcacld-3.0 propagation

Add change to validate no.of RIC data desctriptors
before using it to access RICData array.

Change-Id: I0ac4e9e1eb61690b3c13a74fa0edfc5af13d88c6
CRs-Fixed: 1102327
2017-03-02 10:03:47 -08:00
Sreelakshmi Konamki
66ddf3a759 qcacld-3.0: Remove PTK/GTK debug logs
qcacld-2.0 to qcacld-3.0 propagation

Currently host prints PTK and GTK key information in default logs.
Fix to remove the debug logs which prints sensitive key information.

Change-Id: I358b09b77d23eeb5da7d826859ae119a8ea4af8a
CRs-Fixed: 1097857
2017-03-02 10:03:45 -08:00
Sreelakshmi Konamki
b53c629c0f qcacld-3.0: Generate bug report if scan rejected by driver
qcacld-2.0 to qcacld-3.0 propagation

Driver will not allow scan if connection is in progress.

Add driver changes to generate bug report and trigger SSR
if current session id, rejected reason matches with last rejected
sesssion id, reason and time delta between current time and
last rejected timestamp is greater than 5 mins

Change-Id: Ic64a6fd443104b291b5b7f6cda3bfbe8273c671a
CRs-Fixed: 1081489
2017-03-02 10:03:43 -08:00
qcabuildsw
df331cde98 Release 5.2.0.12G
Release 5.2.0.12G

Change-Id: I2bf747ebaa64ae8c5895226f01937aaac0c0998e
CRs-Fixed: 688141
2017-03-01 23:58:05 -08:00
Himanshu Agarwal
d4fe5f748f qcacld-3.0: Avoid NULL pointer dereferencing of mpdu_buf
Avoid NULL pointer dereferencing of mpdu_buf by putting NULL
check before using it in htt_rx_restitch_mpdu_from_msdus func.

Change-Id: I726891d4fc1f6928cbda911932dbbcd2ec681b63
CRs-Fixed: 2008901
2017-03-01 23:58:04 -08:00
qcabuildsw
d99accb513 Release 5.2.0.12F
Release 5.2.0.12F

Change-Id: Iea6800ae974a51145b9fee583a8d881ec0c1271f
CRs-Fixed: 688141
2017-03-01 23:19:27 -08:00