Commit Graph

911 Commits

Author SHA1 Message Date
Naveen Rawat
b3264f0358 qcacld-3.0: Re-indent sap_random_channel_sel()
Refactor sap_random_channel_sel() and split it into small
managable functions

Change-Id: Ie0815db84b40901474b109625872c440b1b9cda5
CRs-Fixed: 972906
2016-04-20 22:22:28 -07:00
Dhanashri Atre
d7f7b8d14f qcacld-3.0: Enable LRO
Enable Large Receive Offload (LRO) on the data path.

Change-Id: I92d16107a5a14957c73b55bf7f7d24c01b28fb2e
CRs-Fixed: 974833
2016-04-20 22:22:23 -07:00
Krishna Kumaar Natarajan
7dde8c7108 qcacld-3.0: CL 1483121 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Provide backward compatibility with host using MAC ID and FW using MAC ID
and Increase physical address from 32 to 64 bits in MGMT TX send command.

Change-Id: Idef6994468f2d34a0a3581531f228e2a7efd7883
CRs-Fixed: 865207
2016-04-20 22:22:20 -07:00
Krishna Kumaar Natarajan
79a2a083ae qcacld-3.0: CL 1481784 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Define ROAM_START and ROAM_ABORT WMI notifications.

Change-Id: Idf0fec82a847f9c54fdad9daad30aaed6a7b590d
CRs-Fixed: 865207
2016-04-20 22:22:17 -07:00
Krishna Kumaar Natarajan
4bed4ec79b qcacld-3.0: CL 1479065 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Add Qboost dbglog IDs and module ID, add pdev_id to WMI cmds,
wal_power_debug framework to handle WMI cmd for LP features.

Change-Id: I815e29284ab21086f75197c2ce1319e13074e00f
CRs-Fixed: 865207
2016-04-20 22:22:14 -07:00
Krishna Kumaar Natarajan
40b3c112d3 qcacld-3.0: CL 1478986 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Addition of new debug log IDs for the Timekeeper module and move
qtimer fields from wmi_vdev_tsf_tstamp_action_cmd_fixed_param to
wmi_vdev_tsf_report_event_fixed_param.

Change-Id: I20f1dbb855b3cd0c2b8e9fe10c27e5164527e406
CRs-Fixed: 865207
2016-04-20 22:22:11 -07:00
Krishna Kumaar Natarajan
99d5fc830b qcacld-3.0: CL 1024090 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Add ERE debug log ids. This commit is only part of the
FW CL - 1024090.

Change-Id: Ide362ea6d67eaade1f5bc0b7f694f01f11ad8007
CRs-Fixed: 865207
2016-04-20 22:22:07 -07:00
Krishna Kumaar Natarajan
489bf8df6c qcacld-3.0: CL 1476830 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Add 11ax/HE fragmentation support flags and add flags to allow
automatic and forced enabling of pktlog.

Change-Id: Ic4bbaf71279ee6fef190530dd70a798be7267797
CRs-Fixed: 865207
2016-04-20 22:22:03 -07:00
Krishna Kumaar Natarajan
ea0a796e9e qcacld-3.0: CL 1476371 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

WMI change to enable Custom aggregation size for ADDBA request and
response through WMI command WMI_VDEV_SET_CUSTOM_AGGR_SIZE_CMDID.

Change-Id: I0fb54e8f32344b209787239ed64d7ecb13ea56fb
CRs-Fixed: 865207
2016-04-20 22:21:59 -07:00
Krishna Kumaar Natarajan
ee6cfa7061 qcacld-3.0: CL 1475852 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation

New module ID for NAN 2.0 and
fwcommon change to add the support for TX Time per TPC.

Change-Id: Iabf3286d771d605632cb9a3711baf5eb3e84889a
CRs-Fixed: 865207
2016-04-20 22:21:56 -07:00
Krishna Kumaar Natarajan
3bd7364475 qcacld-3.0: CL 1473135 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation.

Adding new WOW_EVENT and WOW_WAKE_REASON for TDLS Connection tracker events.

Change-Id: Iffc20bf2d18a6f372105570697104c0b8ffca3b3
CRs-Fixed: 865207
2016-04-20 22:21:50 -07:00
Krishna Kumaar Natarajan
3eed86b95d qcacld-3.0: Fix layering violation in sir_api.h
qcacld-2.0 to qcacld-3.0 propagation.

Fix layering violation in sir_api.h by renaming
enumeration prefixed with LIM.

Change-Id: I8b33fbb6d315c54c8cd483bd89685719e460051a
CRs-Fixed: 995039
2016-04-20 22:21:47 -07:00
Krishna Kumaar Natarajan
a96ee0f6ee qcacld-3.0: Fix incorrect buffer handling in OEM response handlers
qcacld-2.0 to qcacld-3.0 propagation.

Fix incorrect buffer handling in OEM response handlers.

This change set will fix,
1. Add appropriate check on the response length before malloc.
2. Add correct check for malloc failure.
3. Copy correct number of bytes into response buffer.

Change-Id: I621e391b9cdadbf01c98fdbf3ac1979373bb963c
CRs-Fixed: 996236
2016-04-20 22:21:42 -07:00
Krishna Kumaar Natarajan
c4f8a93d3e qcacld-3.0: Fix inconsistent usage of channel len in populate_oem_data_cap
qcacld-2.0 to qcacld-3.0 propagation.

Fix inconsistent usage of channel length in populate_oem_data_cap.

Change-Id: I33c53503279d7ebb66f348af719b68b6f90ef6c4
CRs-Fixed: 996199
2016-04-20 22:21:37 -07:00
Sandeep Puligilla
62f7ca0750 qcacld-3.0: CL 1472279 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add 11s mesh subtype and service, add TSF in beacon.

Change-Id: I1f03072d6ad5c493f2ef2d2f7dc47f47be98a042
CRs-Fixed: 865207
2016-04-20 22:21:32 -07:00
Sandeep Puligilla
1dbd750c8c qcacld-3.0: CL 1470160 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

Periodic channel stats and WMI chan info extension
Define a flag which indicates the packet responsible
for wake up the host from suspend mode

Change-Id: Ieb5f47f16c5f55790511e02d97db57f4fdf6de97
CRs-Fixed: 865207
2016-04-20 22:21:21 -07:00
Rajeev Kumar
2253beab04 Release 5.1.0.10G
rebase of release 5.0.0.170 to release 5.1.0.10G

Change-Id: I635cd6aeff453515934e7be6ca510b0af05a27af
CRs-Fixed: 688141
2016-04-20 22:21:03 -07:00
Rajeev Kumar
ef96e1580b qcacld-3.0: Add support for enhance multicast offload
Add supprot for enhance multicast offload feature such that
FW can filter out multicast IP data packets transmitted using
unicast MAC address.

Change-Id: I78066bec094b7b69ba1c2070d23eabb95853f52d
CRs-Fixed: 993496
2016-04-20 22:20:59 -07:00
Rajeev Kumar
a4d80b5879 qcacld-3.0: Fix IPA backward compatibility
Fix IPA WDI 1.0 update for overwrite of previous commit and use
only QCA_WIFI_3_0 build flag for qcacld-3.0.

Change-Id: I3bff4a4e10102e97aeb57fb0f67d48933e0bae9b
CRs-fixed: 994144
2016-04-20 22:20:52 -07:00
Rajeev Kumar
249ea8d5c7 qcacld-3.0: Add support for STA+SAP DFS concurrency
Provide support for STA+SAP DFS concurrency feature
Here is the brief description on the changes,
1) if STA came up first on DFS channel and SAP is coming up second
   then as per concurrency rule SAP can't come up on DFS channel,
   it can come up on 5G-non-dfs or 2G band.
2) if SAP came up first on DFS channel and STA is coming up second
   then as per concurrency rule SAP has to move to non-dfs channel
   by using channel switch announcement IE. Once SAP moves to
   non-dfs channel then and then STA can continue on connection.
3) if there is any STA connection alive then SAP/GO's PCL shouldn't
   contain any DFS channel in the list.

Change-Id: Iba1a64e66fbf5182152e9d2e15041923b8528c31
CRs-Fixed: 992939
2016-04-20 22:20:48 -07:00
Rajeev Kumar
43e25b17d1 qcacld-3.0: Fix layer violation in SME
Some of the SME APIs are using lim APIs, remove those violation.

CRs-Fixed: 992939
Change-Id: I0f29b5ab3a4c5df9881b5af556d155a22acfd392
2016-04-20 22:20:44 -07:00
Rajeev Kumar
0ac9f2a54b qcacld-3.0: (part-6) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects

Change-Id: I41eb8ef39c56b99a235141db6bb0dddcf7cdd753
CRs-Fixed: 992930
2016-04-20 22:20:38 -07:00
Rajeev Kumar
aa262c4ef4 qcacld-3.0: (part-5) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects

Change-Id: Ibcdb7321040e689787a4badebdc1a4325fc79d7b
CRs-Fixed: 992930
2016-04-20 22:20:35 -07:00
Rajeev Kumar
c9a50e769f qcacld-3.0: (part-4) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects.

Change-Id: I469841f719ddb43710724013e4b669560f0a008b
CRs-Fixed: 992930
2016-04-20 22:20:32 -07:00
Rajeev Kumar
cf835a082b qcacld-3.0: (part-3) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects

Change-Id: Iee39090d50979e26eb833ddae4ae77c08d6d71b3
CRs-Fixed: 992930
2016-04-20 22:20:28 -07:00
Rajeev Kumar
be5d7fdf27 qcacld-3.0: (part-2) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects.

Change-Id: Ia48baa2d67ff4269fe3b9a137ed592da851abc18
CRs-Fixed: 992930
2016-04-20 22:20:25 -07:00
Rajeev Kumar
005895d466 qcacld-3.0: (part-1) Remove obsoleted BTAMP feature
Remove all the code written to support this feature as this feature
has been obsoleted for all next gen projects.

Change-Id: I0d3b929a6e521a9e1d3fe87bd109be91bfb25c9b
CRs-Fixed: 992930
2016-04-20 22:20:21 -07:00
Rajeev Kumar
e18f528464 qcacld-3.0: CL 1469421 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0
WMI change for the per vap dscp override

Change-Id: Ia2004cb60959b34f8976282f560edfea3b1153aa
CRs-Fixed: 865207
2016-04-20 22:20:17 -07:00
Rajeev Kumar
6f684841c7 qcacld-3.0: CL 1468122 - update fw common interface files
qcacld-2.0 to 3.0 propagation
Add new RSSI dbg IDs for stats

Change-Id: I2686daa210ac4424454ebf881084e25c22bb72c3
CRs-Fixed: 865207
2016-04-20 22:20:12 -07:00
Rajeev Kumar
03200804d9 qcacld-3.0: Add check for RMF frames while sending action frames
qcacld-2.0 to qcacld-3.0 propagation
Currently if PMF is enabled, only sa query action frames
received from supplicant are sent protected. None of the other
action frame category are sent protected.
Adds check for robust action frames, to decide if protection is
needed for the action frame category received from supplicant.

Change-Id: Ib1eb589c530ef99b7e2fedfcd106e0f646d78d93
CRs-Fixed: 960298
2016-04-20 22:20:08 -07:00
Rajeev Kumar
f5b6da2359 qcacld 3.0: Address buffer overflow due to invalid length
qcacld-2.0 to qcacld-3.0 propagation
Check for valid length before copying the packet filter data from
userspace buffer to kernel space buffer to avoid buffer overflow
issue.

Change-Id: I9548727543b903b5eaafa25c6184615d511ca99d
CRs-Fixed: 930533
2016-04-20 22:20:04 -07:00
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