Commit Graph

1690 Commits

Author SHA1 Message Date
Service qcabuildsw
3a01837e03 Merge "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs" into wlan-cld3.driver.lnx.1.1-dev 2016-09-10 12:13:54 -07:00
Service qcabuildsw
fda4e0cc92 Merge "qcacld-3.0: Register suspend_noirq/resume_noirq to kernel" into wlan-cld3.driver.lnx.1.1-dev 2016-09-10 12:13:51 -07:00
Service qcabuildsw
b0bdca2104 Merge "Revert "qcacld-3.0: Fix race condition between PM suspend and fw irq"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-09 12:59:18 -07:00
Service qcabuildsw
913c9043e2 Merge "Revert "qcacld-3.0: Register suspend_noirq/resume_noirq to kernel"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-09 12:58:59 -07:00
Service qcabuildsw
92c93bd799 Merge "Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"" into wlan-cld3.driver.lnx.1.1-dev 2016-09-09 12:58:39 -07:00
Yuanyuan Liu
a129d2da9c Revert "qcacld-3.0: Fix race condition between PM suspend and fw irq"
This reverts Change-Id I9e55f58aee29017fe09efeb5231b8be23053f7b7.
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. Race condition between PM suspend and fw
irq will occur again after reverting.

Change-Id: Id6497b81c703b3751fba0a85890203e316608aab
CRs-Fixed: 1060748
2016-09-09 10:31:20 -07:00
Yuanyuan Liu
dcc3d4a270 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.

Change-Id: I12e1db54468c7215318333b55d991c53886d21ff
CRs-Fixed: 1061220
2016-09-08 17:43:46 -07:00
Yuanyuan Liu
42567dfb22 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.

Change-Id: I3d3de3789a7d560ed171294fa9a1ebe6389746a7
CRs-Fixed: 1060669
2016-09-08 17:43:46 -07:00
Yuanyuan Liu
b657e93ec5 Revert "qcacld-3.0: Register suspend_noirq/resume_noirq to kernel"
This reverts Change-Id Ifce8edc5db8c0410c5cddd24aceb88675f8ced42.
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. PM suspend_noirq/resume_noirq are
not available after reverting.

CRs-Fixed: 1060669
Change-Id: I0e015d664681c3e2ba57a26b04318d4aa13f0406
2016-09-08 17:43:27 -07:00
Yuanyuan Liu
7a82fcc900 Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"
This reverts Change-Id Ic0627a14a65f07faeb5cfa0ec4fcdc85b79e3f63.
WLAN driver is blocked from promotion as the dependent kernel
change is not merged yet. Getting/setting unsafe channels and
dfs nol are no longer be present after reverting.

CRs-Fixed: 1061220
Change-Id: Id4e374310c5140cc7c5432183562998b2584853a
2016-09-08 17:42:46 -07:00
qcabuildsw
070c9dd2ce Release 5.1.0.25X
Release 5.1.0.25X

Change-Id: Iaf245d3adfc32267070783c3dab671c69754fd90
CRs-Fixed: 688141
2016-09-06 18:23:52 -07:00
Masti, Narayanraddi
d8a56fbc4a qcacld-3.0: Do not include 11b rates in TDLS setup request
qcacld-2.0 to qcacld-3.0 propagation

If base channel is 5 GHz and when we support all 11a and 11g
rates, then there is no need to advertise 11b rates in TDLS setup
request/response frames.
Advertising 11b rates also leading to IOT issues with few third
party devices.
Fix is to ensure that 11b rates are not included if base channel is
5ghz.

Change-Id: I45590a4067194e8929bac225b1a82ec510903539
CRs-Fixed: 955788
2016-09-06 18:23:51 -07:00
Ganesh Kondabattini
53e873e85f qcacld-3.0: Update the scan list with correct APs
qcacld-2.0 to qcacld-3.0 propagation

In the current implementation, DUT doesn't initialize the social
channels 1, 6 and 11 and doesn't support P2P discovery in 5GHz only
mode. So we don't see any AP's on 1, 6 and 11 channels during p2p scan.

Change-Id: I317119bbbc30d44214c11076faceba8101cf835a
CRs-Fixed: 962252
2016-09-06 18:23:49 -07:00
Masti, Narayanraddi
6319f063aa qcacld-3.0: Maintain session id for TDLS functionality in lim struct
qcacld-2.0 to qcacld-3.0 propagation

Currently, since we are using same member from lim structure for p2p and
TDLS there could be possibilities that session id is overwritten
by p2p which would lead in not sending Tx completion indication from
lim to hdd thus leading to Tx timeout though we have received tx completion
indication from FW.

Fix is to create new session id for TDLS frames transmission

Change-Id: I1f78f24ac01e0b26c92238dbe831af88aa267bd5
CRs-Fixed: 991455
2016-09-06 18:23:48 -07:00
qcabuildsw
b08f5ccd2c Release 5.1.0.25W
Release 5.1.0.25W

Change-Id: I9c362816e75c8f209544092abb1d55308c45328b
CRs-Fixed: 688141
2016-09-06 17:24:52 -07:00
Houston Hoffman
088e4b94ae qcacld-3.0: Use atomic bit ops in ol_tx_desc_dup_detect functions
Bitmasks should use atomic operations when they can be
modified in multiple contexts.  Also sanitize msdu_id length
to avoid potential memory corruption.

Change-Id: I119916dba883ab7aa27d8c42035af5588774f535
CRs-Fixed: 1061195
2016-09-06 17:24:52 -07:00
qcabuildsw
b456c02f99 Release 5.1.0.25V
Release 5.1.0.25V

Change-Id: Ibc735962b5f17e3823a796ccd7774d257bf52bf0
CRs-Fixed: 688141
2016-09-06 16:27:08 -07:00
Deepak Dhamdhere
94580ee4ea qcacld-3.0: Fix memory leaks in wma_pno_start()
Clean up the exit path to free the channel list and params buffers.

CRs-Fixed: 1056031
Change-Id: I2d7910169e9535ae03c37c9ffe07fd2a7b763350
2016-09-06 16:27:08 -07:00
qcabuildsw
7d06dd55c9 Release 5.1.0.25U
Release 5.1.0.25U

Change-Id: Ie1ea4337b4dc365fac9ffc29ca16d80382ab8c32
CRs-Fixed: 688141
2016-09-06 15:24:24 -07:00
Arif Hussain
92c04b74f8 qcacld-3.0: SAP DFS: Logging enhancement in dfs_process_phyerr file
Reduce log level and remove new lines.

Change-Id: I87588a45ad14cff5be1afab63c9cdf1329cfa063
CRs-Fixed: 1062742
2016-09-06 15:24:24 -07:00
qcabuildsw
46cec9839a Release 5.1.0.25T
Release 5.1.0.25T

Change-Id: I66653f57351115b5fdc393586f2f1b3510907db0
CRs-Fixed: 688141
2016-09-06 14:26:16 -07:00
Aggarwal, Nishank
9130c3db8d qcacld-3.0: Fix compilation issue for 32 bit builds
In function csr_roam_chk_lnk_disassoc_ind format
specifier to print sizeof() is for 64 bit systems
which leads in compilation error on 32 bit systems.

Fix this issue by common format specifier for both
32 and 64 bit compilation.

Change-Id: Ib3a5df243c8c29040321af4bdcf7230a6e5e0e52
CRs-Fixed: 1055344
2016-09-06 14:26:15 -07:00
qcabuildsw
38e8ce8849 Release 5.1.0.25S
Release 5.1.0.25S

Change-Id: If822dd1351e437779f2e74851cbe4e178f4b8b1e
CRs-Fixed: 688141
2016-09-06 13:29:18 -07:00
Himanshu Agarwal
6d4c2be635 qcacld-3.0: Fix 32 bit compilation in IPA path
Compilation error is seen for 32 bit builds in htt_tx_ipa_uc_wdi_tx_buf_alloc
as buffer_paddr, which is defined as unsigned long and will be a 32 bit bit
variable for 32 bit builds, is right shifted by 32 to get the high 32 bits
for fragment descriptor.

Instead of right shifting buffer_paddr by 32, use APIs lower_32_bits
and upper_32_bits.

Change-Id: I283792333075c11219a491d305b2822849c025f3
CRs-Fixed: 1062916
2016-09-06 12:14:16 +05:30
qcabuildsw
5e7f144a65 Release 5.1.0.25R
Release 5.1.0.25R

Change-Id: I6410c7b3b3a520c98b51bcb95339164aed306d40
CRs-Fixed: 688141
2016-09-05 01:23:19 -07:00
Houston Hoffman
c2c4762062 qcacld-3.0: Use htc_pm_runtime put/get apis
The htc_pm_runtime provide a convenience wrapper arround
the hif modules put/get apis

Change-Id: Ic2ef437390501e269278e68aa3a219364de8b2c0
CRs-Fixed: 1058274
2016-09-05 01:23:18 -07:00
qcabuildsw
32e0c6ffc1 Release 5.1.0.25Q
Release 5.1.0.25Q

Change-Id: I4020618927aae783a8327b3266f8c045d2635f99
CRs-Fixed: 688141
2016-09-03 07:45:18 -07:00
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