Commit Graph

880 Commits

Author SHA1 Message Date
Rajeev Kumar
1f289cf91c qcacld-3.0: Fix scan failure
Scan pending flag is maintained per adapter but it is getting
reset only when all the scans on all the adapters are
completed.
Update logic to reset scan pending flag when there is no pending
scan on that particular adapter.

Change-Id: If019f6619fa11a505c489a12474b5f550982a727
CRs-Fixed: 990466
2016-04-20 22:20:00 -07:00
Rajeev Kumar
b983d86630 qcacld-3.0: Remove csr_neighbor_roam_create_chan_list_from_neighbor_report
Remove function csr_neighbor_roam_create_chan_list_from_neighbor_report,
since it is not being used in LFR2 and up code.

Change-Id: I5c54aa0ef2704c5d090e56c6ec65e55639371204
CRs-Fixed: 972906
2016-04-20 22:19:52 -07:00
Rajeev Kumar
a3f6c2dc48 qcacld-3.0: Add API to set the bonded channel parameters
Add API to CDS to add bonded channel parameters. Given an
operating channel and channel width, the API would verify and
populate the center frequencies.

Change-Id: Ib2c5029cda567308210b028b628d96419e3fd05c
CRs-Fixed: 988355
2016-04-20 22:19:48 -07:00
Rajeev Kumar
f696934505 qcacld-3.0: Add new enums for QVIT mode
Add suport for QVIT mode in wlan driver.

Change-Id: I9014ac12e09495917f63f7b4b114363b24eeae1c
CRs-fixed: 987175
2016-04-20 22:19:33 -07:00
Rajeev Kumar
fd95385a93 qcacld-3.0: Use new EPPING con_mode enum
EPPING con_mode is now a single enum.

Change-Id: I403a2ab33ea85dc69aa98fc50d9ece6cf8e1ee19
CRs-Fixed: 989695
2016-04-20 16:13:46 -07:00
Rajeev Kumar
8044edeb8f qcacld-3.0: Fix epping memory errors
Epping nbuf packets were being tracked by cdf nbug tracking. This change
stops tracking of packets prior to being released into the network stack.
and uses the correct nbuf free routine for tx packets.

Change-Id: Ib986fb595139ace706db00839cf1dabb983013fd
CRs-Fixed: 989695
2016-04-18 17:04:07 -07:00
Rajeev Kumar
9b755ef5f5 qcacld-3.0: send correct status code when WEP AUTH fail
qcacld-2.0 to qcacld-3.0 propagation

With invalid WEP password, some APs reply AUTH frame 4 with
invalid seqNumber. This AUTH frame will be dropped by driver,
then driver sends the generic status code instead of protocol
status code.
As a workaround, assign the seqNumber=4 for AUTH frame 4,
which ensures driver to send correct status code when WEP AUTH
fail.

Change-Id: I2fc96f0c253cf639d730d59d567be50bca51bd0b
CRs-Fixed: 947898
2016-04-18 17:04:01 -07:00
Rajeev Kumar
437c921a8f qcacld-3.0: Try SHARED AUTH first when WEP algo is AUTOSWITCH
qcacld-2.0 to qcacld-3.0 propagation

When WEP algo is AUTOSWITCH, driver will try OPEN AUTH first,
then SHARED AUTH.
If AP accepts both OPEN and SHARED AUTH, driver never tries to
connect to AP with SHARED AUTH, which makes user is not getting
the notification (about wrong password).
This change makes driver to try SHARED AUTH first, then OPEN AUTH
when WEP algo is AUTOSWITCH.

Change-Id: I21841f37d96316a261fd2977229390e751747c4c
CRs-fixed: 947898
2016-04-18 16:57:26 -07:00
Rajeev Kumar
2cce8a8a36 qcacld-3.0: Check priviledge permission for SET_THREE_INT_GET_NONE
Kernel assumes all SET IOCTL commands are assigned with even
numbers. But in our WLAN driver, some SET IOCTLS are assigned with
odd numbers. This leads kernel fail to check, for some SET IOCTLs,
whether user has the right permission to do SET operation.
Hence, in driver, before processing SET_THREE_INT_GET_NONE IOCTL,
making sure user task has right permission to process the command.

Change-Id: I3c695160d637ed87b04ccf3299985055a9791c4b
CRs-Fixed: 930948
2016-04-18 16:52:26 -07:00
Vishwajith Upendra
4f97daa90f Release 5.1.0.2
Corresponds to SU 169 qcacld-3.0 unconverged

Change-Id: Ie4b0853e17e15d7ca418dd276385c2e4f9f5f8af
CRs-Fixed: 688141
2016-04-17 18:17:08 -07:00
Manjunathappa Prakash
585178db34 qcacld-3.0: Cleanup fastpath changes
Do following cleanup on fastpath code changes:
1) Remove reaping of Tx HIF buffers in Rx handling, instead handle
   reaping in Tx fastpath itself.
2) In ce_per_engine_service_fast check for more Rx packets after
   packet processing.
3) Make stub functions as static inline for non-fastpath enabled case.

Change-Id: If07c4344a424ce13b94128bf28931a24255b661a
CRs-Fixed: 987182
2016-04-17 18:16:51 -07:00
Manjunathappa Prakash
1c95626911 qcacld-3.0: add fastpath Rx support
With dedicated CE for Rx HTT messages, skip processing in HTC layer.
Do special handling in HIF-CE and HTT layer, this optimization results
in 3-4% CPU utilization gain.

Change-Id: I400148a0e24ac62dd09e2a95d5f35d94d83fe2df
CRs-Fixed: 987182
2016-04-17 18:16:43 -07:00
Houston Hoffman
c1f962efb7 qcacld-3.0: Support multiple RX CEs for NAPI/LRO/FastPath
Make changes so that LRO and FastPath can check whether a
given CE is a datapath RX CE. This is done through new
flags in CE_state which indicate whether or not a given
CE is a htt_[tr]x CE.
Also add support to enable multi-queue NAPI.
Note that the paths are not yet parallel-execution protected,
but this should be OK as all NAPI instances are processing
the same interrupt now and as such as serialized.

Acked-by: Orhan K AKYILDIZ<oka@qca.qualcomm.com>

Change-Id: I57125b3e1fbad0345b6e1f4ed25e71babaf4f520
CRs-Fixed: 982728
2016-04-17 18:16:31 -07:00
Akash Patel
b20a81f29d Release 5.1.0.9GG
Rebase of 5.0.0.169A onto 5.1.0.9GG

Change-Id: I1bf1ab580a20f1bf590fb58e7c1d307a397ae078
CRs-Fixed: 688141
2016-04-17 18:13:23 -07:00
Yue Ma
decd7afddd qcacld-3.0: Support new build tree structure
The kernel can be either directly under build_root/kernel or in a
subdirectory within it. The WLAN module has a hard coded assumption
for the path. Hence add the changes to correct it based on flags
TARGET_KERNEL_VERSION and KERNEL_TO_BUILD_ROOT_OFFSET.

Change-Id: Ic4738da5c414a1ce1d74e2b42b918b906f5fda98
CRs-fixed: 992940
2016-04-17 18:13:07 -07:00
Satish Singh
bedf772bc5 Release 5.1.0.9G
Rebase of 5.0.0.169 onto 5.1.0.9G

Change-Id: I45b5abfe04dd6b5c66f54a336beb6eef14a7ffc9
CRs-Fixed: 688141
2016-04-17 18:12:59 -07:00
Sandeep Puligilla
1ed781ff3a qcacld-3.0: Increase Scan timeout for emulation platform
Increase scan timeout for emulation platform
from 30secs to 600secs.

Change-Id: I5ed28990917f1262263fc05bd997b51d3cc65bbd
CRs-Fixed: 990987
2016-04-17 18:12:54 -07:00
Naveen Rawat
365d1cb2dc qcacld-3.0: Re-indent function sap_select_channel
Fix indentation for function sap_select_channel

Change-Id: I079648a7f553689b14b7bf940fc835aa60e944b7
CRs-Fixed: 972906
2016-04-17 18:12:45 -07:00
Sreelakshmi Konamki
c43ee5b756 qcacld-3.0: Re-indent lim_process_bt_amp_ap_mlm_del_sta_rsp
Fix to reindent lim_process_bt_amp_ap_mlm_del_sta_rsp

Change-Id: I1afe50720dc4f560c1bf9e40c1cdb9194e0b121b
CRs-Fixed: 978014
2016-04-17 18:12:27 -07:00
Sreelakshmi Konamki
f611d1a0ce qcacld-3.0: Re-indent lim_update_short_slot_time
Fix to reindent lim_update_short_slot_time

Change-Id: Id99dd182d592d3a9135e362265484654ebe81911
CRs-Fixed: 978014
2016-04-17 18:12:19 -07:00
Sreelakshmi Konamki
d178ca89db qcacld-3.0: Re-indent rrm_process_radio_measurement_request
Fix to reindent rrm_process_radio_measurement_request

Change-Id: Ic11301553533706a2799a5d42bedede87ca49357
CRs-Fixed: 978014
2016-04-17 18:12:07 -07:00
Sreelakshmi Konamki
720f2b7ac2 qcacld-3.0: Fix to set ptk_installed to true in 11R roaming
qcacld-2.0 to qcacld-3.0 propagation

PTK exchange and install happens during preauthentication if key_mgmt is
FT-PSK. STA TL state moves to authenticated only if ptk_installed is true.
Currently ptk_installed is false after roaming due to which STA TL state
does not move to authenticated state and also does not enter BMPS.

To fix this issue, set ptk_installed to true in case of 11R roaming

Change-Id: I59e4466994e59b055246e86613315b0299b767a7
CRs-Fixed: 961555
2016-04-17 18:12:03 -07:00
Sreelakshmi Konamki
86d79203a7 qcacld-3.0: Fix Suspicious pointer dereference before NULL check
qcacld-2.0 to qcacld-3.0 propagation

Fix to add NULL check before dereference of pointer

Change-Id: I520aca1fc46cf3fbb30d2f068f6da43a2b2986e6
CRs-Fixed: 965800
2016-04-17 18:11:58 -07:00
Sreelakshmi Konamki
20ee4d635e qcacld-3.0: Re-indent rrm_process_beacon_report_xmit
Fix to reindent rrm_process_beacon_report_xmit

Change-Id: I1fb528755f6b204086d544ff3ab957abdcb7d642
CRs-Fixed: 978014
2016-04-17 18:11:45 -07:00
Kiran Kumar Lokere
830ba16663 qcacld-3.0: Enable UAPSD only when device is in power save
Send UAPSD parameters to FW and enable it only if the device is
in power save mode.

Change-Id: I14ecfc8bace7ec15eebe18296355544cdbdf030e
CRs-Fixed: 991119
2016-04-17 18:11:37 -07:00
Kiran Kumar Lokere
80897d86c9 qcacld-3.0: Use pcl channel list for sap channel selection
Use the pcl channel list to do random channel selection when the
radar is detected.

Change-Id: I286bf447a398bf1d9a7a1493ac4bbfd9847de148
CRs-Fixed: 988325
2016-04-17 18:11:29 -07:00
Varun Reddy Yeturu
d351a6c58e qcacld-3.0: Change name of routine is_roaming_offload_enabled
Modify the routine name of is_roaming_offload_enabled to
roaming_offload_enabled

CRs-Fixed: 978905
Change-Id: I1bfa1ebe1f7dd9dc88c68a0c660fa1886cf0e0fe
2016-04-17 18:11:18 -07:00
Varun Reddy Yeturu
bbbbe237f9 qcacld-3.0: Enable compile time enable/disable for roaming
Enable compile time featurization support for both LFR2.0
and LFR3.0 using WLAN_FEATURE_HOST_ROAM and
WLAN_FEATURE_ROAM_OFFLOAD respectively

CRs-Fixed: 978905
Change-Id: Ib5976cd0cd5a6e117a1334bfc73a043e36e25f77
2016-04-17 18:10:33 -07:00
Varun Reddy Yeturu
86459d63ca qcacld-3.0: Isolate roaming related scan functionality
Move the scanning related code which is pertinent to roaming
into a separate file so that any future maintenace would be
easy across different projects

CRs-Fixed: 978905
Change-Id: Ia8c81726eb843d0a5aa89affa89d84d77994932e
2016-04-17 18:10:26 -07:00
Varun Reddy Yeturu
883c4f20f9 qcacld-3.0: Move CSR preauth related code to a separate file
Move the preauthentication related code in the CSR module
into a separate file so that it is easy to maintain
across different projects

CRs-Fixed: 978905
Change-Id: I56e8441f08dec180f080c305ba5c6541302f107c
2016-04-17 18:10:20 -07:00
Varun Reddy Yeturu
d318632e76 qcacld-3.0: Create new function for roaming state transitions
Create a new function csr_neighbor_roam_state_transition to
transition the roaming state and also log it

CRs-Fixed: 978905
Change-Id: Id50d51fe1fa09dc9984ba83fbc01e8d9c7d00ffa
2016-04-17 18:10:15 -07:00
Varun Reddy Yeturu
a66f9c5d71 qcacld-3.0: Remove WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Remove WLAN_FEATURE_ROAM_SCAN_OFFLOAD compile time flag from the code
since this is relevant to roaming (LFR2.0) and always enabled by default.
The flag also does not seem to cover the feature entirely and it does
not make any meaning to only cover this piece of code.

CRs-Fixed: 978905
Change-Id: Ifa393c2733e87fcb34aba3e4f4cdb5f534196537
2016-04-17 18:10:07 -07:00
Varun Reddy Yeturu
4204eed710 qcacld-3.0: Isolate roaming timers into a separate file
Move all the roaming related timers into a separate file
for easy maintenance and management across different projects

CRs-Fixed: 978905
Change-Id: I3bdbf13d9f962af36d74837bf50be7c9a93e824e
2016-04-17 18:09:59 -07:00
Varun Reddy Yeturu
b6ef113b4b qcacld-3.0: Move the code related to sending roam frames to a separate file
Move the routines which help in building and sending the roaming
related management frames into a separate file for easy
maintenance across different projects

CRs-Fixed: 978905
Change-Id: If8e5cbdabef7747e58359961c3b13c577eb3b777
2016-04-17 18:09:54 -07:00
Varun Reddy Yeturu
99ff7f0b1a qcacld-3.0: Move Reassociation utils into a separate file
Move all the reassociation related utilities to a separate
file for easy maintenance across different projects

CRs-Fixed: 978905
Change-Id: I86809ac48659dc91222624fec616bab6533d75dd
2016-04-17 18:09:50 -07:00
Varun Reddy Yeturu
c3843188c5 qcacld-3.0: Move Host based roaming MLM code into a separate file
Separate the host based roaming MLM code into a separate file
to maintain it easily across different projects

CRs-Fixed: 978905
Change-Id: I1fad25ffbaa49bb2380c32ca9612ad46e3bca65c
2016-04-17 18:09:46 -07:00
Varun Reddy Yeturu
dbbb9919e9 qcacld-3.0: Isolate the pre-authentication code into a new file
Move all the pre-authentication related code in LIM to
a separate file so that it is feature specific and easy to
maintain across different projects

CRs-Fixed: 978905
Change-Id: I3ca443139b974b25be8121fd6df040d858693708
2016-04-17 18:09:42 -07:00
Varun Reddy Yeturu
32de0e4137 qcacld-3.0: Isolate roaming related timers
Create separate routines for all the host roaming related
timers and hence they can be compiled out if roaming feature
is not needed

CRs-Fixed: 978905
Change-Id: I29f99a075c72d877fc97f760449e3421ebd64916
2016-04-17 18:09:37 -07:00
Varun Reddy Yeturu
0e3989af45 qcacld-3.0: Remove WLAN_VOWIFI_DEBUG and cleanup logging
Feature WLAN_VOWIFI_DEBUG is not defined. Hence remove it.
Also cleanup the logging.

CRs-Fixed: 960105
Change-Id: I76d83d5d5c93aa7e4669a73c0d3300ed5b727bb1
2016-04-17 18:09:24 -07:00
Houston Hoffman
57d10c2115 qcacld-3.0: Make CONFIG_ICNSS set the bus to SNOC
Currently HIF_PCI and snoc are not supported at the same time.
Bus should be set to snoc when CONFIG_ICNSS is defined.

Change-Id: I900cb70136a9be5406df05d06419e57ca0fa71be
CRs-Fixed: 989686
2016-04-17 18:09:05 -07:00
Satish Singh
36ae57e9b4 Release 5.1.0.8G
Release 5.1.0.8G

Change-Id: I2fc70ba6ced542a8791254a18871c8d8fc1c4fe3
CRs-Fixed: 688141
2016-04-17 18:08:58 -07:00
Dhanashri Atre
fa2cfa1085 qcacld-3.0: Revert "qcacld-3.0: Add debug print for EAPOL msg"
Revert Change-Id: I1eb4f9dac6520b1ce00cdfc3e0fcef721ae498d6

This change is causing a regression on the UDP SAP -> STA
throughput.

CRs-Fixed: 990954
Change-Id: I09b8b61e70eddc2a85a6b22a186cc2eef0f8510f
2016-04-17 18:08:49 -07:00
Komal Seelam
4c2ed0798f qcacld-3.0: Clean up mlm states during heart beat failure
During Heart Beat failures, the mlm states are not cleared properly
which resulted in stability issues. Fix it by setting the mlm
states properly during heart beat failure.

Change-Id: Ib54a29758ad31fa95726a59a7118b11931b49970
CRs-Fixed: 967796
2016-04-17 18:08:17 -07:00
Chandrasekaran, Manishekar
3e6b687e3a qcacld-3.0: Add Kconfig entry to control MCC to SCC switch logic
Add Kconfig entry to control the MCC to SCC switch logic so that
the feature can be enabled when part of a built-in kernel.

Change-Id: I8a4297e245b2be1b1cca81cc10bdccdfd34f8941
CRs-Fixed: 986079
2016-04-17 18:08:10 -07:00
Sandeep Puligilla
1d9a8d8cc1 qcacld-3.0: CL 1469405 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

WMI scan flag to enable strict passive scan on passive chns
Provide initial Hawkeye HW header files.

Change-Id: I31b3244441857c812dc208d4ea2ce66d65c4fec3
CRs-Fixed: 865207
2016-04-17 18:08:05 -07:00
Sandeep Puligilla
b6ddc26740 qcacld-3.0: CL 1469344 - update fw common interface files
propagation from qcacld-2.0 to qcacld-3.0

bpf_instruction_size parameter is added in wmi_resource_config

Change-Id: I188395cefc997052d7e4cd020a41e6ef788e82f3
CRs-Fixed: 865207
2016-04-17 18:07:58 -07:00
Sandeep Puligilla
ff55fecd91 qcacld-3.0: CL 1469034 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation

add a wmi command to enable/disable channel
avoidance report event from firmware

Change-Id: Ic84728b315b4729470238098a91ef6bb629b3f7b
CRs-Fixed: 865207
2016-04-17 18:07:48 -07:00
Srinivas Girigowda
18dcf3d532 qcacld-3.0: Remove csr_neighbor_roam_is_ese_assoc()
There are two utility functions to check if the association
is ESE or not. csr_neighbor_roam_is_ese_assoc() and
csr_roam_is_ese_assoc().

Both serves the same purpose, hence remove csr_neighbor_roam_is_ese_assoc()
and use csr_roam_is_ese_assoc().

Change-Id: I857f9c16eb73a4b0f72e0a622be47ab756fb70f4
CRs-Fixed: 950762
2016-04-17 18:07:44 -07:00
Srinivas Girigowda
d0bae5f2dc qcacld-3.0: Remove obsolete csr_flush_roam_scan_roam_channel_list
Remove obsolete csr_flush_roam_scan_roam_channel_list().

Change-Id: I535e4e5ce2c934451e0c94b4da825163138fe3b0
CRs-Fixed: 950762
2016-04-17 18:07:39 -07:00
Srinivas Girigowda
515a9efb36 qcacld-3.0: Remove FEATURE_WLAN_ESE_UPLOAD compile macro
At present and going forward ESE and ESE_UPLOAD will be the
de-facto approach supporting ESE. Hence there is no need of two compile macros
FEATURE_WLAN_ESE and FEATURE_WLAN_ESE_UPLOAD.

Instead Remove FEATURE_WLAN_ESE_UPLOAD and Keep only FEATURE_WLAN_ESE.

Change-Id: If1a04e95211a0d639db7b60a57a6d5f215d26f4e
CRs-Fixed: 950762
2016-04-17 18:07:30 -07:00