Commit Graph

1832 Commits

Author SHA1 Message Date
Masti, Narayanraddi
4d8860cc10 qcacld-3.0: Fix to reset HT oper mode after legacy AP goes away
qcacld-2.0 to qcacld-3.0 propagation

HT oper mode is set to overlap legacy mode when a legacy
AP (11a only) comes in vicinity of SAP. HT oper mode should
be reset when legacy AP moves out of vicinity of SAP.
Reset function was not resetting HT oper mode in mac context
which was leading to issue.

Fix resets the operating mode to pure HT operating mode after
legacy AP moves out of vicinity of SAP.

Change-Id: Ie5af79341c60cd42c7030699cd1c165ef323e011
CRs-Fixed: 943414
2016-09-03 07:45:18 -07:00
Sreelakshmi Konamki
c3815bade7 qcacld-3.0: Flush driver and firmware logs only for driver ring id
qcacld-2.0 to qcacld-3.0 propagation

Currently driver flushes driver and firmware logs irrespective of ring id.
Host should flush the logs only for driver ring id.

Add changes to fix the same issue.

Change-Id: I50cfde1baaf18c1a3992f956182b49044ccc4b1d
CRs-Fixed: 1053219
2016-09-03 07:45:16 -07:00
qcabuildsw
c34f885076 Release 5.1.0.25P
Release 5.1.0.25P

Change-Id: I8ba2c3b7d80e3a6a56c1a990a988c93817ade213
CRs-Fixed: 688141
2016-09-02 21:27:01 -07:00
Deepak Dhamdhere
f2a7d8be0e qcacld-3.0: Use OkcEnabled .ini flag to control firmware OKC
Turn off opportunistic key caching (OKC) in firmware based on
"OkcEnabled" parameter in WCNSS_qcom_cfg.ini.
It is enabled by default and can be turned off with value 0.
Remove FEATURE_WLAN_OKC compilation option because OKC is always
compiled in for cld3.0. Remove underlying empty routine
cb_notify_set_okc_feature_enabled().

CRs-Fixed: 1057181
Change-Id: I174e860abef0532d62517635fe56927d8c3c9fd3
2016-09-02 21:27:00 -07:00
qcabuildsw
8c06eadb42 Release 5.1.0.25O
Release 5.1.0.25O

Change-Id: Ia95cfff02c994dfc26fb7e563645f46e4c51f6e2
CRs-Fixed: 688141
2016-09-02 19:00:08 -07:00
Yun Park
a37592b1b5 qcacld-3.0: Implement STA+SAP offload
When Mobile Hotspot works as a wifi sharing mode, need to forward
packets between STA and SAP interfaces using NAT operation.
To improve power consumption, offload data packet forward and NAT
operation in IPA, without waking up the host APPS.
Data offload in STA interface is enabled only in STA+SAP concurrency
mode.

Change-Id: I1d6cef20c99d13ad328fabd4ec3ef30ac163f787
CRs-fixed: 1058990
2016-09-02 19:00:07 -07:00
qcabuildsw
a0ad5c309c Release 5.1.0.25N
Release 5.1.0.25N

Change-Id: Iadd88a3ff3fdbb8da8519d747be0f74aa68b7617
CRs-Fixed: 688141
2016-09-02 18:27:14 -07:00
Dustin Brown
6a609d60e4 qcacld-3.0: Prevent apps power collapse if negotiating DHCP
Currently, the apps processor can power collapse in the middle of
DHCP negatiation. A wake lock was added to prevent sleeping until
negotiation is complete.

Change-Id: I9f133667ddb8fe27f43e6d7491006b881ad56d44
CRs-Fixed: 1061879
2016-09-02 18:27:04 -07:00
qcabuildsw
ba183010ea Release 5.1.0.25M
Release 5.1.0.25M

Change-Id: I2ff404e9c8e613c6d1bc71421499c65c782aa473
CRs-Fixed: 688141
2016-09-02 18:26:56 -07:00
Rakesh Sunki
3480f96cd8 qcacld-3.0: Fix to call NDP session end handler only if the mode is NDI
NDP session end handler is being invoked, whenever a session is being
ended irrespective of the mode of the session.

Add a check to call the ndp session end handler only if the adapter
mode is NDI.

Change-Id: Iade4de486ede375239a66517fd47d1eb4501b517
CRs-Fixed: 1060808
2016-09-02 18:26:51 -07:00
qcabuildsw
b0f314063e Release 5.1.0.25L
Release 5.1.0.25L

Change-Id: I0d246e6e268c33593142f013b72c48b1d39b5826
CRs-Fixed: 688141
2016-09-02 18:26:44 -07:00
Sreelakshmi Konamki
9d866dfe20 qcacld-3.0: Fix suspicious dereference of pointer
qcacld-2.0 to qcacld-3.0 propagation

Fix to add NULL check before dereferencing of pointer

Change-Id: I6cfbb5cb6a434a924e988bab50a5a062a2499ccf
CRs-Fixed: 1039152
2016-09-02 18:26:39 -07:00
Masti, Narayanraddi
96d62abc24 qcacld-3.0: Fix Memory leak on start bss failure
qcacld-2.0 to qcacld-3.0 propagation

Currently, On failure of bss start the memory allocated
to channel list is not released which would lead to memory
leak.
To Fix: Release memory allocated to channel list on
bss start failure.

Change-Id: Ic25a80567aff78465f6c4ae2bfa580ded94035d3
CRs-Fixed: 937766
2016-09-02 18:26:34 -07:00
c_hpothu
d500924185 qcacld-3.0: Validate adapter's magic number in timer handlers
qcacld-2.0 to qcacld-3.0 propagation

Before accessing adapter context, validate adapter's magic number
along with NULL check to confirm that instance of adapter context
is valid.

Change-Id: If0365c765ad87be53b7e78d8744f0dcfe1a310ab
CRs-Fixed: 803527
2016-09-02 18:26:29 -07:00
Masti, Narayanraddi
3e26de62cf qcacld-3.0: Cancel ROC on receiving wlan suspend request
qcacld-2.0 to qcacld-3.0 propagation

Cancel ROC if any upon receiving wlan suspend request
to avoid potential wlan suspend failure issue.

Change-Id: I59f75005e375ea1a6599a1dd978c28effee29370
CRs-Fixed: 996156
2016-09-02 18:26:23 -07:00
qcabuildsw
dd374d9b21 Release 5.1.0.25K
Release 5.1.0.25K

Change-Id: Id67f3a9a9322f8bb3f67fc2eb1ff54ed623e1c32
CRs-Fixed: 688141
2016-09-02 18:25:51 -07:00
Yuanyuan Liu
d555ef181e qcacld-3.0: Call ICNSS APIs for get/set channels and dfs
Call ICNSS API for get/set unsafe channels and dfs nol when bus
type is SNOC.

CRs-Fixed: 1061220
Change-Id: Ic0627a14a65f07faeb5cfa0ec4fcdc85b79e3f63
2016-09-02 18:25:46 -07:00
qcabuildsw
734dd59f32 Release 5.1.0.25J
Release 5.1.0.25J

Change-Id: I5202150553bba1b7ded8739ad6de9d10707a3415
CRs-Fixed: 688141
2016-09-02 18:25:40 -07:00
Deepak Dhamdhere
6aa33ba7db qcacld-3.0: Fix RRM beacon report generation
rrm_process_beacon_report_xmit() fills the local structure on stack
but does not copy it to allocated frame buffer. Modified the code
to use a pointer to that report in the buffer.

CRs-Fixed: 1058403
Change-Id: If0c825febc1e2000e46786edfca96b0959626eaa
2016-09-02 18:25:24 -07:00
Rakesh Sunki
88d9c5a0bb qcacld-3.0: Fix src and dest MAC address in WOW wake up event print
When WOW wakeup host event is received with reason code
PATTERN_MATCH_FOUND the host and destination mac addresses
parsed are printed interchanged.

Fix by correctly ordering the source and destination MAC
addresses in the print.

Change-Id: Iea7853d75de4f60d394704de7ba0d5d64925c78f
CRs-Fixed: 1059498
2016-09-02 18:25:14 -07:00
qcabuildsw
79f878c7ef Release 5.1.0.25I
Release 5.1.0.25I

Change-Id: Ib3be809b570a772c5861ce051c57481028e19fcd
CRs-Fixed: 688141
2016-09-02 18:24:26 -07:00
Arun Khandavalli
55f890bb97 qcacld-3.0: Send De-init sequence to firmware when the modules are not enabled
With the new statemachine  cds start/stop will not be invoked without an
interface up from upperlayer. As part of cds stop host sends de-initialization
sequence to firmware, If there is no interface up from the upper layer and
driver gets removed, host driver dosent send the de-init
inidication to firmware and starts closing its modules because of this
fw & host are out of sync.

To migitate the issue send the de-init sequence during if the modules are
opened but not enabled.

Change-Id: Ice85f995a870e69e52b4fcf2fac13761bf1a63a1
CRs-Fixed: 1060893
2016-09-02 18:24:20 -07:00
qcabuildsw
4e523e20ba Release 5.1.0.25H
Release 5.1.0.25H

Change-Id: I6cb805a60f57f0745df157cf04a7dc03ec92ac05
CRs-Fixed: 688141
2016-09-02 18:24:05 -07:00
Rajeev Kumar
fa4d902036 qcacld-3.0: Fix race condition between PM suspend and fw irq
PM suspend and FW interrupt handler is running at same time
which is leading to multiple race conditions and host is missing
FW wake up interrupt which is causing APPS not waking up reliably.

Define .suspend_noirq and .resume_noirq callbacks and make
sure there is no pending FW interrupt before allowing PM
suspend to complete. Kernel PM suspend framework gives guarantee
that suspend_noirq and device interrupt handler can't run
simultaneously. This helps WLAN driver to reliably detect FW
wake up interrupt during PM suspend and fail PM suspend gracefully
if FW has requested for initial wake up.

Change-Id: I9e55f58aee29017fe09efeb5231b8be23053f7b7
CRs-Fixed: 1060748
2016-09-02 18:23:58 -07:00
qcabuildsw
da6a63e2a9 Release 5.1.0.25G
Release 5.1.0.25G

Change-Id: I88158778dcf4a129f7e0079dd41dff2faa9582bc
CRs-Fixed: 688141
2016-09-02 18:23:49 -07:00
Kiran Kumar Lokere
ea85ee0516 qcacld-3.0: Correct the country code validation check
Country code comparison result is checked against true value,
but the comparison result is non-zero if the country code is
valid, hence checking the result against true fails and do
not set the country code.

Correct the conditional logic to check if the given country
valid or not.

Change-Id: Id893cfec8571939e4e455fa35ea95310f4c77263
CRs-Fixed: 1060242
2016-09-02 18:23:44 -07:00
Kiran Kumar Lokere
9e58d23246 qcacld-3.0: Connect STA in 80MHz if AP is 160MHz with Nss > 1
If AP's channel width is greater than 80MHz and
AP supports Nss > 1 in 160MHz mode then connect the
STA  in 2x2 80MHz mode instead of connecting in 160MHz
mode.

Change-Id: Icf179b34603397642f517944e45714d830f909e7
CRs-Fixed: 1059532
2016-09-02 18:23:38 -07:00
Kiran Kumar Lokere
475c177cf5 qcacld-3.0: Fix the crash in start bss failure
qcacld-2.0 to qcacld-3.0 propagation

As per the current logic during start bss failure scenario
SAP/GO session is not closed resulting in vdev leakage.
Due to above leakage new interface creation with same MAC
address results in target assert.
Make change to cleanup SAP/GO session on start bss failure.

Change-Id: I785b4486f439646e2119adc87895ed95c6b80de6
CRs-Fixed: 954601
2016-09-02 18:23:33 -07:00
qcabuildsw
6ec907c542 Release 5.1.0.25F
Release 5.1.0.25F

Change-Id: I0a81743893f4e5670c83edb96627678b15e342ca
CRs-Fixed: 688141
2016-09-02 18:23:26 -07:00
Yuanyuan Liu
30597dd8cd qcacld-3.0: Register suspend_noirq/resume_noirq to kernel
Register suspend_noirq/resume_noirq callbacks to kernel. It will
make sure no wake up is pending from FW and if initial wake up is
received then failing it should trigger resume.

CRs-Fixed: 1060669
Change-Id: Ifce8edc5db8c0410c5cddd24aceb88675f8ced42
2016-09-02 18:23:21 -07:00
qcabuildsw
128c32a2c3 Release 5.1.0.25E
Release 5.1.0.25E

Change-Id: I4a3438470798b8e99249351ac51474c2e189a083
CRs-Fixed: 688141
2016-09-02 18:23:15 -07:00
Govind Singh
b6a8977581 qcacld-3.0: Move IPA dp logs under HDD_DATA module id
WLAN HDD IPA logging is enabled by default, due to this
cnss deamon is spending a lot time in big cluster and
resulting in less cpu quantum for rx processing. Move IPA
data path logs to HDD_DATA module ID from HDD module ID.

Propagation from qcacld-2.0 to qcacld-3.0.

Change-Id: Ied13b8655d9e2831fb097156c8fb72239b443f94
CRs-Fixed: 1031987
2016-09-02 18:23:10 -07:00
Masti, Narayanraddi
855607a147 qcacld-3.0: Fix to Wait for TDLS discovery request/response tx completion
qcacld-2.0 to qcacld-3.0 propagation

Currently, we are not waiting for tdls_mgmt_comp since supplicant doesn't
consider return status but if discvery request/response are sent and
mgmtTxCompletionStatus is not set to return status from FW then next
consecutive TDLS request's from supplicant are denied which will lead
to TDLS connection failure.

Fix is to wait for tdls_mgmt_comp for TDLS discover request/response and
then return success/failure status to supplicant.

Change-Id: I5e825b615095231412f3a82367babaa89e1ab5b3
CRs-Fixed: 973947
2016-09-02 18:23:04 -07:00
Abhishek Singh
f78bd2d501 qcacld-3.0: Ignore security mismatch during WPS registration
qcacld-2.0 to qcacld-3.0 propagation

During WPS registration process the psession encryption type is 0.
Now if AP's beacon have RSN IE, while processing beacons security
mismatch is detected and DUT sends unicast probe request without
WPS IE.

To avoid this ignore security mismatch during WPS registration.

Change-Id: Ic1b4de116ec6a99749ec3d8ba28b29d52190c344
CRs-Fixed: 967553
2016-09-02 18:22:57 -07:00
Abhishek Singh
4560fa063d qcacld-3.0: Ignore security mismatch for HS2.0 association
qcacld-2.0 to qcacld-3.0 propagation

After connection, driver process beacon  to detect any change in
AP's capabilities. Currently if privacy bit is set in beacon and
if rsn or wpa bit is not set, driver issues disconnect command.

In case of HS2.0, all security capabilities are part of vendor
specific information. Hence, both wpa and rsn bit is 0, though
privacy bit is set. Since driver considers it as a change in AP
security params, it issues disconnect. As a part of fix, make sure
that for OSEN capabilities disconnect is not issued.

Change-Id: I800bea0448256f663f61bccf6b0ec6b0f71d824b
CRs-Fixed: 796397
2016-09-02 18:22:49 -07:00
Anurag Chouhan
bfed52926c qcacld-3.0: CL 1610656 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

Remove duplicate def of DBGLOG_DBGID_SM_FRAMEWORK_PROXY_DBGLOG_MSG
Add band field in wlan_vdev_set_ie command

Change-Id: I2d23e0945cf7e2ff221fdf658115e9e1f428f31c
CRs-fixed: 865207
2016-09-02 18:22:35 -07:00
qcabuildsw
f4d99a4b89 Release 5.1.0.25D
Release 5.1.0.25D

Change-Id: Id2f2a213d07dc2b58ddf4c5fef4995203f2e6310
CRs-Fixed: 688141
2016-09-02 17:25:16 -07:00
Manishekar Chandrasekaran
11ecd55d23 qcacld-3.0: Check for channel state before blocking the transmissions
Ensure that the channel state is checked to see if it is a DFS
channel before stopping the transmission on the interface. Currently,
on radar detection, transmission is getting stopped for all the
SAP/P2P-GO interfaces. This affects SAP+SAP case where one SAP is on
a DFS channel and the other SAP is on a non-DFS channel. On radar
detection, the transmission is getting stopped for both the SAP
interfaces. But, the transmission should be stopped only for the
interface that is operating on DFS channel. Fix the same by checking
the channel state before stopping the transmissions.

Change-Id: I564980534bc0d943db8da300439e1d072715f462
CRs-Fixed: 1061559
2016-09-02 17:25:11 -07:00
qcabuildsw
1015f04c1d Release 5.1.0.25C
Release 5.1.0.25C

Change-Id: Ia43968495b3ddc67e4be9e6efd46fab6d4972ab0
CRs-Fixed: 688141
2016-09-02 17:25:07 -07:00
Govind Singh
0487bf2417 qcacld-3.0: Log IPA handle during ipa pipe connect/disconnect
Log IPA client handle to detect ipa client handle corruption
during wdi connect/disconnect.

Propagation from qcacld-2.0 to qcacld-3.0.

Change-Id: I0ea2a3afdf9792ef118aafd68dfa4a99eca81eee
CRs-Fixed: 1010176
2016-09-02 17:25:04 -07:00
qcabuildsw
8aca0f24f9 Release 5.1.0.25B
Release 5.1.0.25B

Change-Id: I324e02b369f8696d3080591f45735852d293d44a
CRs-Fixed: 688141
2016-09-02 17:25:01 -07:00
Arun Khandavalli
5b4daae8f8 qcacld-3.0: Remove hif_ctx check during the driver cleanup
When inactivity timer on the interface's expires it closes all the
cds modules, when rmmod is given after the modules are closed hif_ctx
will be null. There is a invalid check during the driver remove for
valid hif_ctx which is blocking from the proper cleanup of the driver.

Since hif_ctx is not used any more during the driver remove function.
Remove hif_ctx validation during the driver unload.

Change-Id: I32dce7a0b503cc4fe028d4e5992402fe7b4886a7
CRs-Fixed: 1060810
2016-09-02 17:24:57 -07:00
qcabuildsw
3003e3efd2 Release 5.1.0.25A
Release 5.1.0.25A

Change-Id: I99968708685434d3a7c98aa981fb674c035e2767
CRs-Fixed: 688141
2016-09-02 17:24:54 -07:00
Kabilan Kannan
38ff9f31f8 qcacld-3.0: Replace hddlog() in tdls module
In qcacld-3.0 HDD has converged on a core set of service level logging
APIs. However hddlog() extensively used in wlan_hdd_tdls.c file.
Replace hddlog instances with corresponding hdd_* api's.

Change-Id: I3fde4c08488a395c974508b54b21f7e92bfc0a4a
CRs-Fixed: 937688
2016-09-02 17:24:50 -07:00
qcabuildsw
7b85017328 Release 5.1.0.25
Release 5.1.0.25

Change-Id: I49838aba5f3cf622991cfa888de239ae09372a07
CRs-Fixed: 688141
2016-09-02 17:24:47 -07:00
Krunal Soni
a9ee145194 qcacld-3.0: Disable gEnableRXLDPC in INI file
Revert Change-Id: Icf8464906b3520b5b873b6d0ad93e1edb9564953
which was introduced to enable RX LDPC from INI. With some more
recent changes in driver, enabling RX LDPC is giving issue.

Disable RX LDPC till all the software issues are resolved.

CRs-Fixed: 1060796
Change-Id: I5905ed382d526d546901e19094ff088a77c45c15
2016-09-02 17:24:43 -07:00
qcabuildsw
8689e60656 Release 5.1.0.24Z
Release 5.1.0.24Z

Change-Id: I6a2b9d5f68bda07e81d06fd0bb50ee3a642d2684
CRs-Fixed: 688141
2016-09-02 17:24:40 -07:00
qcabuildsw
133839b6b4 Release 5.1.0.24Y
Release 5.1.0.24Y

Change-Id: Ie2acecd995fb1e739f94b05e0145c0e63a877076
CRs-Fixed: 688141
2016-09-02 17:24:36 -07:00
Dhanashri Atre
5e584fa2eb qcacld-3.0: Fix Defrag Address Compare
Fix the address compare operation that is used for defragmentation.
Also add hook to release the debug qdf node.

Change-Id: I782e0234d5b61bb118578788947aa8b13e8e189c
CRs-Fixed: 1059538
2016-09-02 17:24:32 -07:00
qcabuildsw
84af4d7db4 Release 5.1.0.24X
Release 5.1.0.24X

Change-Id: I489d5c09862aca149f6562a5ac2456bb3de77aaf
CRs-Fixed: 688141
2016-09-02 17:24:29 -07:00