Commit Graph

2698 Commits

Author SHA1 Message Date
Manikandan Mohan
c23f28e540 qcacmn: Fix kernel module check patch warnings in HIF PCI files
Fix kernel module check patch warnings in HIF PCI files

Change-Id: Id3bedc47c3b39666240a9aa0717d0f931f77ee63
CRs-fixed: 2033001
2017-05-02 13:29:24 -07:00
Manikandan Mohan
8cf38e004b qcacmn: Fix kernel module check patch warnings in HIF SNOC files
Fix kernel module check patch warnings in HIF SNOC files

Change-Id: I20f14f711ca00dfd9d59ee5edd0b3e2e32c90a11
CRs-fixed: 2033001
2017-05-02 13:29:23 -07:00
Manikandan Mohan
afd6e88b36 qcacmn: Fix kernel module check patch warnings in HIF CE files
Fix kernel module check patch warnings in HIF CE files

Change-Id: I5a0d22f8b139e76c33580fe9ef5b01736b2b5735
CRs-fixed: 2033001
2017-05-02 13:29:21 -07:00
Manikandan Mohan
a6d64a1dd6 qcacmn: Fix kernel module check patch warnings in hif sdio files
Fix kernel module check patch warnings in hif sdio files

Change-Id: Ieb1bac5061969538095fad8f0311029b3d3161f0
CRs-fixed: 2033001
2017-05-02 13:29:20 -07:00
Karunakar Dasineni
6622bf43fc qcacmn: Remove dependancy on lithium_top_reg.h
Change definitions of HOST_IE_ADDRESS and HOST_IE_ADDRESS_2 to remove
dependancy on lithium_top_reg.h, which was removed from latest fwcommon headers.

Change-Id: I7dada478ffd58bcf15b8336d7388f98f6522231b
2017-05-02 01:05:06 -07:00
Wu Gao
aef5a02620 qcacmn: Add API to cleanup roc request by vdev
It required to cleaup remain on channel request before changing adpter
type, add this API in P2P component. Handling scan dequeue event and
start failed event same as scan complete event.

Change-Id: Ie5926c954f4deff75fec53ae2c8f9762b576374e
CRs-Fixed: 2030079
2017-05-01 15:01:05 -07:00
Tushnim Bhattacharyya
87a234b5e9 qcacmn: Filter PCL with NOL
Filter the PCL with NOL before providing to the requester to avoid
including radar channels in PCL.

Change-Id: I915572f6653a6c9c98cb525c03570543cfc86e12
CRs-Fixed: 2009818
2017-05-01 13:45:13 -07:00
Dustin Brown
1f271a1bd4 qcacmn: Hold a wakelock for management tx frames
Hold a timed wakelock whenever a management tx frame is sent, to
prevent issues around leaking descriptors or invalid access by firmware

Change-Id: If1a7ae69838791179b4a0365df3387146925509e
CRs-Fixed: 2033606
2017-05-01 12:26:13 -07:00
Krishna Kumaar Natarajan
7726378826 qcacmn: Update roaming candidate selection logic
Update roaming candidate selection logic to add weightage to 11ax
AP.

Change-Id: I7ae6702095d6da8e302e35577f5e4697b5e06d3a
CRs-Fixed: 2037840
2017-05-01 09:20:23 -07:00
Vikrampal
ceae5caddb qcacmn: Modify H/w DBS cap check and fetch NSS
Modify API policy_mgr_is_hw_dbs_2x2_capable() to check H/w DBS
capability and check if downgrading needed while entering DBS.

Define a new API policy_mgr_get_hw_dbs_nss() to get NSS
information of both MAC0 and MAC1.

Change-Id: If24817017f675e45197d060cd75317aa381256de
CRs-Fixed: 2037487
2017-04-30 18:20:38 +05:30
Abhijit Pradhan
b4ebf34ea2 qcacmn: DFS kernel panic fixed
NULL pointer dereference is fixed.

Change-Id: I6c5dce998dd276306a42a14253450965329afd56
CRs-Fixed: 2001106
2017-04-29 00:41:30 -07:00
Pratik Gandhi
8b8334baa4 qcacmn: Smart Mesh-Add filtering configuration to data path
Add nac(non associated client) configuration to pdev. It will be
used to perform smart mesh filtering on rx packets.

Change-Id: I29989d379e10fcc4a0e4aa19dbb3499650d6bf39
CRs-Fixed: 2017269
2017-04-28 16:15:24 -07:00
Orhan K AKYILDIZ
c59be52d47 qcacmn: Add debug for TSO seg double-free
Add TSO segment debug code, in a featurized way, so that
when disabled, it will tolerate redundant returns to the internal
pool and when enabled, it will check sanity on free, and record a
history of last 16 actions on the segment in the object.

Goes with the corresponding cld3 component counterpart.

Change-Id: Ifee2ceae940043031e4861d0e4f5d19a51262229
CRs-Fixed: 2036665
2017-04-28 13:19:43 -07:00
Abhijit Pradhan
21f852f52c qcacmn: Fill antenna gain in master channel list
Antenna gain is per regulatory structure. However we need it in
per channel during transmission. Firmware sends antenna gain per
regulatory rule. Host copies it to per channel structure.

Change-Id: Ia163f46facec03ccd450994acbeb28d1e9f2a111
CRs-Fixed: 2002892
2017-04-28 09:47:04 -07:00
Govind Singh
e3331b5b3c qcacmn: Remove ol_defines dependency from WMI layer
ol_defines header inclusion is invalid in WMI layer.
Remove the header inclusion by abstracting the dependency
with in WMI layer.

Change-Id: I5eb8624605cde20b516a1d8d0c823996c363e119
CRs-Fixed: 2023821
2017-04-28 07:42:08 -07:00
Rachit Kankane
4475ff297c qcacmn: P2P protocol changes to Disable/Enable NOA
P2P-GO whenever goes offchannel, issues NOA. With this behavior, we
have issue whenever legacy STA connects to P2P-GO since legacy STA
does not understand NOA. To handle this case, changes are done in p2p
protocol component and the revised behavior will be:
 1. By default no change in NOA.
 2. Whenever first legacy STA connects to GO, p2p protocol component
    disables NOA (i.e. P2P-GO will issue Self-CTS whenever it goes
    off-channel).
 3. Whenever last legacy STA disconnects from GO, p2p protocol
    component enables NOA (i.e. P2P-GO will issue NOA whenever it goes
    off-channel).

Change-Id: I113950ac3fa99ca68fcafcfe4c6095cf4b2def43
CRs-Fixed: 2035609
2017-04-28 04:42:00 -07:00
Om Prakash Tripathi
7d867d6729 qcacmn: cfg80211 scan change for WIN
Change-Id: I2d2863c7193de8e79c7ff76039f9b64ecaf90100
CRs-Fixed: 2001106
2017-04-28 03:43:53 -07:00
Ajit Pal Singh
aaf792b703 qcacmn: Reject remain on channel if Do_Not_Switch_Channel set
Remain on Channel request is rejected:
1) If an AP/GO interface is already active
 AND
2) Do_Not_Switch_Channel is set for the AP/GO interface
 AND
3) The requested channel is on the same band but different
from the AP/GO channel.

We allow one time procedures like GO Negotiation/Provision
Discovery/Invitation if the offchannel time is <= 150msecs

Change-Id: If19e9a06916891c5d3dbe6823fca72d70ead460d
CRs-Fixed: 2037302
2017-04-28 01:18:56 -07:00
Ajit Pal Singh
ec973b0aa7 qcacmn: Add API to check Do Not Break Stream eligibility
1) Adds new policy mgr API 'policy_mgr_is_chan_ok_for_dnbs' to check
if a channel is OK for "Do Not Break Stream".
It means that if Do_Not_Switch_Channel is set for AP/GO vdev,
the channel passed should be either the AP/GO channel or a channel
from the other band.
2) Adds a new function policy_mgr_get_mode_specific_conn_info() to get
the mode specific connection count.

Change-Id: I4da6f7d56d01b01761a5f3557b8acbb84226a6fd
CRs-Fixed: 2037302
2017-04-28 01:18:55 -07:00
Kiran Venkatappa
0c5110a424 qcacmn: Add send beacon by ref WMI for TLV target
WMI_PDEV_SEND_BCN_CMDID WMI is used to send Beacon from host.
Implement this API for TLV target to send beacon from host
when beacon offload is disabled.

Change-Id: I0b01fb4be349d032622a43a43224680946ecfcd3
CRs-Fixed: 2038176
2017-04-27 23:59:23 -07:00
Tushnim Bhattacharyya
3379232f48 qcacmn: Add missing ini configurations to policy manager
Add missing ini configurations to be used in policy manager.

Change-Id: Id94c017f3c96ef0376028d124b11fd48ee24fe7e
CRs-Fixed: 2009818
2017-04-27 23:59:22 -07:00
Tushnim Bhattacharyya
b3cbf84777 qcacmn: Fix memory leak at policy manager initialization
Fix memory leak in policy manager init/deinit sequence.

Change-Id: I3c1728f2becb16b415f532acf657c7c29dc76122
CRs-Fixed: 2009818
2017-04-27 23:59:21 -07:00
Tushnim Bhattacharyya
d54693fe79 qcacmn: Fix next action status in policy manager for SBS
The next action function to reflect the SBS capability in its status
correctly. If SBS is not supported the second connection should proceed,
without waiting for a HW mode change to SBS.

Change-Id: I99eee6c854c6a1605f1c5b7655773818811f19ea
CRs-Fixed: 2021512
2017-04-27 23:59:20 -07:00
Arif Hussain
a23b01405b qcacmn: Implement converting freq/chan within dfs
Implement converting freq to chan and chan to freq
within dfs module.

Change-Id: Id9b39dbe90264621b0702a99a8df69fff9af9dd3
CRs-Fixed: 2017481
2017-04-27 18:16:49 -07:00
Dustin Brown
dd16c1b664 qcacmn: Export qdf_sprint_symbol
Some targets compile QDF into a separate module. In order to support
those targets, export qdf_sprint_symbol().

Change-Id: I7ff30aac3efdb0a119d5a9d1a63dc774b496e60e
CRs-Fixed: 2039906
2017-04-27 15:34:39 -07:00
Sravan Kumar Kairam
cdc362d52f qcacmn: Add PMO runtime suspend and resume support
As part of UMAC componentization add support for PMO
runtime suspend and runtime resume.

Change-Id: Ibd3f640bbf32622f70997863df899d265295a5c6
CRs-Fixed: 2030168
2017-04-27 11:17:45 -07:00
Ajit Pal Singh
d51961c4b8 qcacmn: Add new wlan_objmgr_ref_dbgid type for policy mgr
Adds new type WLAN_PMGR_ID in wlan_objmgr_ref_dbgid to be used
by policy manager.

Change-Id: Ibe0b993cef4e1c13acd30f513fe30ee55cb6d2ab
CRs-Fixed: 2037302
2017-04-27 05:42:15 -07:00
Wu Gao
a21c3d1797 qcacmn: register vendor specific action frame after P2P started
It only register vendor specific action frame when requested remain on
channel. When DUT as GO and invite third P2P peer, there isn't remain
on channel request and doesn't register this action frame from mgmt
txrx component, then P2P component can't receive provision discover
request frame and invitation failed.

Change-Id: Ia04e1af97aedf91fd75047b12994011b054177fc
CRs-Fixed: 2037600
2017-04-27 02:54:17 -07:00
Himanshu Agarwal
e5b7db3baa qcacmn: Fill rate and bw info for HT/VHT frames in monitor mode
In monitor mode, while filling the radiotap header, rate and bw
info for HT and VHT frames was not filled correctly due to which
packets in tcpdump are showing incorrect rates and bw for HT/VHT
frames.

Fill rate and bw info for HT/VHT frames correctly in monitor mode.

Change-Id: I2dc9677e48fcf9fe19d61f84a253353e253b16da
CRs-Fixed: 2037501
2017-04-26 23:53:46 -07:00
Zhang Qian
9d973df7e7 qcacmn: Add attribute for LL stats
New attributes for qca_wlan_vendor_attr_ll_stats_ext are added.

Change-Id: I17a81fcec96076e14ff9f33d0aeb0983a25de912
CRs-Fixed: 2038824
2017-04-26 23:11:01 -07:00
Dustin Brown
e226cebdd2 qcacmn: Add Scheduler Watchdog Timer
In order to catch long running scheduler messages, start a watchdog
timer before processing each message, and stop the timer after each
message is processed. When the watchdog timer expires, immediately
crash the device in debug builds for easier debugging.

Change-Id: I4b43a9e12fc1f5b8a795fec790fe7548a100d9db
CRs-Fixed: 2037094
2017-04-26 17:01:52 -07:00
Arif Hussain
d6b243219d qcacmn: Fix compilation with scheduled scan start delay
cfg80211_sched_scan_request start delay is added from
KERNEL_VERSION 4.4, and schedule scan plans is backported but
not the start delay.

This change is to make sure start delay accessed from request
only for KERNEL_VERSION 4.4 to avoid compilation issues with
CFG80211_MULTI_SCAN_PLAN_BACKPORT.

Change-Id: I3469ef457bb1f97fdddfb7491fbcaa2e64a16e8a
CRs-Fixed: 2038458
2017-04-26 15:11:45 -07:00
Sathish Kumar
52cfdcf001 qcacmn: Add support for WMI_COEX_CONFIG command
Add support in WMI layer to configure coex config command for
lithium based chipsets

CRs-Fixed: 2037499
Change-Id: Ib83407524bd3b5cdad28f73a6ccc36d4a0271779
2017-04-26 06:46:29 -07:00
Sathish Kumar
af374199c1 qcacmn: Remove WDS peer event population for lithium based targets
WDS peer event is not supported on lithium based targets. Remove the
population of WDS peer event in TLV.

Change-Id: Ie31e543eb7be40787ab19afec7830178807190ac
CRs-Fixed: 2035040
2017-04-26 02:41:38 -07:00
Sravan Kumar Kairam
eeacf8c236 qcacmn: Add target interface set run time pm in progress
As part of UMAC componentization add target interface set run time
pm in progress during runtime suspend.

Change-Id: Ia5a679f5e5c290f8e4e90fded86586c98073eff3
CRs-Fixed: 2030168
2017-04-25 17:25:29 -07:00
Dhanashri Atre
cdfde22d94 qcacmn: Disable per pdev rx ring on MCL
Ensure that the per pdev rx ring configuration is disabled on MCL

Change-Id: Ie23bb371f9475cf4008dce098dc9c7d712078fe4
CRs-Fixed: 2033532
2017-04-25 16:28:41 -07:00
Venkateswara Swamy Bandaru
851184b0e4 qcacmn: Add support to extract SRP IE in beacon
Added support to extract spatial reuse parameter IE in beacon receive.

Change-Id: Ia7ce2a58ae8b65cddd9b3f8d969bd95b459aab3e
CRs-Fixed: 2033106
2017-04-25 15:00:34 -07:00
Abhishek Singh
6e7489e3e8 qcacmn: Move user configured params from scan filter to scan params
Some user configured params are passed in filter during scan request.
Added them in scan defaults params and update them from user config.
Also use these params from scan def params instead of filters.

Change-Id: Ice2817c2f135289d7a3dbfa94c9c06263473ce2d
CRs-Fixed: 1095299
2017-04-25 13:02:22 -07:00
Om Prakash Tripathi
0078b78f06 qcacmn: add set/get APIs for max active scans
Add set/get API for max parallel active scans supported.
Max active scans allowed is set from ext service ready event
handler(8 as of now). Once FW announces this capability, FW
announce value must be used instead of hardcoded value 8.

Change-Id: I2af3a34c9f55f92c47aebbd12838a8d8fc6e3ba7
CRs-Fixed: 1095299
2017-04-25 13:02:21 -07:00
Sravan Kumar Kairam
2f5bf3e645 qcacmn: Add pmo set runtime pm in progress in lmac interface
As part of UMAC componentization add pmo set runtime pm in progress
operation in lmac interface.

Change-Id: I54e778326133feb014dc5fec3213a0d19f3f7392
CRs-Fixed: 2030168
2017-04-25 12:10:24 -07:00
Om Prakash Tripathi
cdcbb39764 qcacmn: update average rssi in scan entry
If elapsed time since last rssi update for a particular
scan entry is smaller than a thresold, calculate a
running average of the RSSI values. Otherwise last RSSI
is more representive of the signal strength.

Change-Id: I4cbecc8b6bfbb73c272544114b063b25c26e14fe
CRs-Fixed: 1095299
2017-04-25 11:01:06 -07:00
Abhishek Singh
d9e8b4f531 qcacmn: Fix error while adding beacons with CSA IE
Fix error while processing beacon with CSA IE.
Log the event and add the beacon/probe with CSA IE in
database.

Change-Id: Ia7552460e91a50888ef04e0ebd79a0350dd16d1a
CRs-Fixed: 2033231
2017-04-25 08:57:35 -07:00
Padma, Santhosh Kumar
6d2e862c77 qcacmn: Get CCA from firmware
Requirement is to get CCA from frmware when connection fails due to
assoc/auth/probe response timeout. These are common changes to get
CCA from firmware.

Change-Id: I062343ed065d7b0c38b9e3b24ecfa9851b9b1537
CRs-Fixed: 2031843
2017-04-25 05:56:02 -07:00
Venkateswara Swamy Bandaru
bd3fc8eaf9 qcacmn: Add SR LOAD variance iwpiv support
Added OL_ATH_PARAM_ACS_SRLOADVAR in ol_ath_param_t Pdev configuration
parameter.

Change-Id: I59580f0500f7691af5188cdefece022f1abdbec9
CRs-Fixed: 2036205
2017-04-25 03:20:50 -07:00
Dustin Brown
47bd625a19 qcacmn: Change max queued WMI commands to 1024
Increase the maximum number of queued WMI commands to 1024, up from 256.

Change-Id: I79e2f0d835bf9e91bfa4e8ec3eed8391b9540c1b
CRs-Fixed: 2036638
2017-04-25 01:52:32 -07:00
Arif Hussain
61cbab79c3 qcacmn: Fix frame-larger-than Werror in dfs
Fix Werror=frame-larger-than by reducing size
of DFS_MAX_NOL_CHANNEL from 128 to 80.

Change-Id: I37271a48bf5172c3fb2d568b58e8f7448bf4ed28
CRs-Fixed: 2017481
2017-04-25 01:08:38 -07:00
Nandha Kishore Easwaran
2668994354 qcacmn: Adding cdp interface for wdi events
Adding subscribe and unsubscribe functions for wdi events in
cdp layer to enable for legacy alone and disable for lithium
data path.

Change-Id: Ibdf449393d0cb59c4c46c712c7a72695e086ab6c
2017-04-25 00:11:05 -07:00
Kiran Venkatappa
a973e13df7 qcacmn: Add objmgr dbg ref id for offchan txrx component
DBG ref id is used to get and free peer reference. Add offchan component
dbg ref id to get and free peer refernces from offchan component.

Change-Id: I23eed8e9ae63b3c48f65d2f42b73984997196dbd
CRs-Fixed: 2030050
2017-04-24 22:55:32 -07:00
Kabilan Kannan
9e5be67bab qcacmn: Fix excessive logging problem in TDLS
TDLS registered for optional action frames to print the
information about unknown peer commands. This causes
problem in the system with too many logs.
Remove the optional action frames registration from
the TDLS component.

Change-Id: Iec2ee86ae1b3139858f6a1ff5b96477bc6dae169
CRs-Fixed: 2037911
2017-04-24 20:45:36 -07:00
Wu Gao
d5fc9c0b8e qcacmn: Add runtime pm lock for P2P
Add runtime pm lock for remain on channel request in P2P component.

Change-Id: Ic29c5edf9e9325d1f9b65d766385327b91b0d14a
CRs-Fixed: 2036085
2017-04-24 20:06:00 -07:00