Commit Graph

1831 Commits

Author SHA1 Message Date
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
Arif Hussain
cc21cb2e15 qcacmn: Add acs range support in random channel selection
Add support to conside auto-channel selection range in random channel
selection algorithm.

If acs is enabled, random channel is selected from acs channel range.

Change-Id: I6ccf9ae58aa2d9b63133de3f98030078bf13cf49
CRs-Fixed: 2017481
2017-04-24 17:07:52 -07:00
Arif Hussain
ef4372eeb0 qcacmn: Fix issue in getting channel list in dfs component
Need to pass valid weight list and length to pcl api to
get channel list. So pass valid weight list and length.

Change-Id: Id9582210937da1dd5147aa3e85e0cd0df6b5ac90
CRs-Fixed: 2017481
2017-04-22 01:45:27 -07:00
Baila, Shashikala Prabhu
1cc7633792 qcacmn: regdb: HT40+ and HT40- is fixed for 2GHz
For 2GHz HT40+/HT40- band width reg_get_2g_bonded_channel_state function
always returns the state as invalid due to function argument mismatch.

Change-Id: Ida04339fcaf680807aa425b3f28c627baa317b02
CRs-Fixed: 2002892
2017-04-22 00:50:38 -07:00
Sandeep Puligilla
c4e05fd98d qcacmn: scan get results failed during connect
Scan get results failed to fetch the filtered
results during connection.

Updated the sorting logic in scan database
management.

Change-Id: I81734f1f5b3a48ca65ea5b8ce717b4bec7265b27
CRs-Fixed: 2036864
2017-04-21 20:25:43 -07:00
Arif Hussain
9fba31ea0b qcacmn: Register DFS component API in target_if
Register DFS component API in target_if and add API's to
handle radar found and cac found events from firmware.

Change-Id: I3f3d2ff5401e5c969a3df24f51e8aa57f4e17017
CRs-Fixed: 2017481
2017-04-21 02:25:09 -07:00
Arif Hussain
8d88af5f32 qcacmn: Random channel selection public API
Add random channel selection public API.

Change-Id: I5502116fab17716a9d8f2f41ddd67bcbcdd1328c
CRs-Fixed: 2017481
2017-04-20 20:20:48 -07:00
Arif Hussain
c64510ba8b qcacmn: Process DFS events from firmware
Add support to process DFS events from firmware.

Change-Id: I38bea404fdb50d80430c8b14a2a4f6a729d3557e
CRs-Fixed: 2017481
2017-04-20 20:20:46 -07:00
Abhijit Pradhan
b973986b38 qcacmn: dfs memory leak fixed
dfs_detach function was called from ol/lmac layer during ath_detach.
To fix the memory leak dfs_detach function called from dfs pdev
destroy function.

Change-Id: I41602c17ac9ab0b6eb1e9fbe9abe764d00ed0e93
CRs-Fixed: 2001106
2017-04-20 17:50:57 -07:00
Kabilan Kannan
021a75a82b qcacmn: Fix TDLS UMAC memory init issues
scheduler message structure needs to be initialised to zero
before populating it contents.
Init scheduler msg structure to zero during the structure
declaration.

Change-Id: Ib6281b7d3b0a103be5adf65d12c20a28f48065f5
CRs-Fixed: 2034220
2017-04-20 16:26:00 -07:00
Amar Singhal
c73c207412 qcacmn: Move public data structures
Move remaining regulatory public data structures to
reg_services_public_struct.h

Change-Id: I658d434c46989f90b527f7d6a8e5a4da032628f7
CRs-Fixed: 2002892
2017-04-20 15:45:06 -07:00
Adil Saeed Musthafa
469053dcb6 qcacmn: Reducing function name to fix unresolved symbols
There is a limitation in function name length for exported
symbols, because of this we are seeing unresolved symbols.

CRs-Fixed: 2016643.
Change-Id: Idffc3a9d958c8042cf32ba3b07ca3020c31db6be
2017-04-20 05:20:00 -07:00
Arif Hussain
91ac5ea418 qcacmn: Add random channel selection algorithm
Add random channel selection algorithm in DFS component.

Change-Id: Ic2d3ee3c6156213564a3eb354dfffa1bbc7ff01d
CRs-Fixed: 2017481
2017-04-20 03:16:32 -07:00
Arif Hussain
63acfd2b2e qcacmn: Fix frequency offset signedness in channel marking logic
Change frequency offset to signed, as offset is negative if
radar found in lower frequency compared to center frequency.

Change-Id: Ic33411e5638684c4aacbb424eddc19827ef5e60e
CRs-Fixed: 2017481
2017-04-20 00:04:57 -07:00
Kabilan Kannan
7e189c3436 qcacmn: Add TDLS off channel changes for TDLS UMAC
Add TDLS offchannel and related osif changes in TDLS
UMAC component.

Change-Id: Ic562709eb8a6361322860c4f7333633a7894af99
CRs-Fixed: 2034220
2017-04-20 00:04:56 -07:00
Kabilan Kannan
e81cb8eac8 qcacmn: Add os_if changes for tdls management
Add os interface changes to send tdls management
frames to tdls component

Change-Id: Ib675e4b089a88ad618f918d9992a777c7221b34c
CRs-Fixed: 2034220
2017-04-20 00:04:54 -07:00
Kabilan Kannan
8398292c6d qcacmn: Add scan related events for TDLS component
Add Scan start and complete events for TDLS component

Change-Id: Ibb452d2823115ec16a7c6e9f88c9ad6cac48930c
CRs-Fixed: 2034220
2017-04-20 00:04:53 -07:00
Kabilan Kannan
b197624f96 qcacmn: Populate tdls scan interface member
Add tdls scan interface changes to notify
tdls status to scan

Change-Id: Ie9dc9ffda41414238ba6ad47704d42b5a0aaa53d
CRs-Fixed: 2034220
2017-04-20 00:04:52 -07:00
Kabilan Kannan
791f7aa23b qcacmn: Add TDLS ucfg changes for sta connect/disconnect
Add TDLS ucfg interface changes for sta connect, sta
disconnect and tx/rx data sample

Change-Id: Ic57a91b70fe462ee031dc0cf54112601aae0dfc4
CRs-Fixed: 2034220
2017-04-20 00:04:50 -07:00
Kabilan Kannan
3e4752133a qcacmn: Add sta connect/disconnect in TDLS UMAC component
Add sta connection and disconnection event related
methods into TDLS component

Change-Id: I1309792cf68df87b1ecf5a7686ac645ac21d1c7c
CRs-Fixed: 2034220
2017-04-20 00:04:49 -07:00
Kabilan Kannan
97bc1c725a qcacmn: Add TDLS management frames
Add TDLS management frames implementaion in TDLS
umac component

Change-Id: I46943f7df119894e0d54df2c6edb08ed4546a389
CRs-Fixed: 2034220
2017-04-20 00:04:48 -07:00
Kabilan Kannan
ee01ebfc20 qcacmn: Add connection tracker to TDLS UMAC
Add connection tracker support in TDLS UMAC
component

Change-Id: I725b579ab9f393d5247651bfe53df6b4a3f53649
CRs-Fixed: 2034220
2017-04-20 00:04:47 -07:00
Kabilan Kannan
a477d5e3bc qcacmn: Add tdls timers function in tdls component
Add tdls timers implemenation for discovery, idle and
connection tracker.

Change-Id: I7ccd5ec6c1d396a0fd25e6f28a258986a646c800
CRs-Fixed: 2034220
2017-04-20 00:04:46 -07:00
Frank Liu
cda0961ecc qcacmn: Enable TDLS component
Enable TDLS module in dispatcher

Change-Id: I4b1fe09278115a90eb6b19ed6ce8fef57143a910
CRs-Fixed: 2011330
2017-04-20 00:04:44 -07:00
Frank Liu
f0f46ac045 qcacmn: TDLS component: handle TDLS firmware event
Handle TDLS related firmware event: tear down, discovery,
disconnect, and send correspond indication to upper layer

Change-Id: I6cff95904d06408f9458132ab5ce69f1a129e993
CRs-Fixed: 2011330
2017-04-20 00:04:41 -07:00
Frank Liu
f2768cc42d qcacmn: TDLS component: core tdls_oper operations
Implement TDLS oper fucntions

Change-Id: Ibdd1fa30ef5b72fbbe8316f88d8c4b9deab1a5a7
CRs-Fixed: 2011330
2017-04-20 00:04:39 -07:00
Frank Liu
9dd3c3e9cb qcacmn: TDLS component: south interface
Add lmac_if layer changes for TDLS

Change-Id: Ic842857ce7ebc83d2a22a8a8e23c60df1c3dbfc8
CRs-Fixed: 2011330
2017-04-20 00:04:38 -07:00
Frank Liu
d4b12dbff6 qcacmn: TDLS component: core peer operations
TDLS peer operations: add, delete and update TDLS peer

Change-Id: I7dba1a4b2b3b8597935db811da68ee5ba630bf4d
CRs-Fixed: 2011330
2017-04-20 00:04:35 -07:00
Arif Hussain
1b9dcf5a12 qcacmn: Add support to process radar found indication
Add support to process radar found indication,
find and update radar affected channels to nol.

Change-Id: Icb2d601f422e43e9a98840dd22325a571fd92f27
CRs-Fixed: 2017481
2017-04-19 01:13:30 -07:00
Soumya Bhat
6c556c36e5 qcacmn: Refcnt debug support
Add support to display string instead of dbg id incase
of pending references

Change-Id: I96da6f944557692f9bd7bd75f22d029077b69c32
CRs-Fixed: 2022458
2017-04-18 17:14:26 -07:00
Rajeev Kumar
afc63bc8af qcacmn: Initialize scheduler_msg on stack before posting message
Initialize scheduler_msg on stack before posting using scheduler API
such that un-used fields in message structure are initialized to 0.

Change-Id: Ib3183b2c65eb9affd6610f4572c751c39a25fff7
CRs-Fixed: 2034772
2017-04-17 23:18:18 -07:00
Ravi Kumar Bokka
4a7fc00160 qcacmn: Enable HW broadcast filter
Add ini to param to enable/disable HW filter for bc
(except arp) frame.

Change-Id: I86c5c9539e5198536167d06b00c02746dc65104c
CRs-Fixed: 1113550
2017-04-17 05:28:16 -07:00
Vikram Kandukuri
d4aa277e8b qcacmn: Static and Dynamic chain mask selection
Host support for Static and Dynamic chain mask selection.
parse new TLVs from ext service ready,copy tables to
wlan_objmgr_soc object.

CRs-Fixed: 2016643.
Change-Id: Ia4735eb4c7774c381df01f56696e8c86fc6c56ab
2017-04-17 02:13:26 -07:00
Amar Singhal
9749753a75 qcacmn: Add API to pass configuration settings
Add API to pass initial configuration settings to
regulatory component.The regulatory component would
re-compute initialization channel list when this API
is called.

Change-Id: I414ecd189c0879515bd9b3f07537b3143a5cb0ed
CRs-Fixed: 2002892
2017-04-16 15:58:36 -07:00
Tushnim Bhattacharyya
8c4092b16e qcacmn: Replace legacy regulatory APIs with new ones from host cmn
Get rid of legacy regulatory API references from policy manager
as the new ones are available now.

Change-Id: I48d41599d7faeb760b51ca5f0d7672e8484e7f91
CRs-Fixed: 2009818
2017-04-16 15:58:34 -07:00
Arif Hussain
a1e18b6b7d qcacmn: Add dfs public structure file
Add dfs public structure file.

Change-Id: Id34164da42d2d7b593fcb86ebd585140cd263f6e
CRs-Fixed: 2017481
2017-04-15 23:02:16 -07:00
Om Prakash Tripathi
f527f16e8e qcacmn: add refcnt and lock support for scan
1. Take reference count for vdev/pdev/psoc object before posting
   async message to scan component.
2. Take proper lock before invoking objmgr APIs which require locking.
3. Fixed few memory issues in failure cases.

Change-Id: I594b9ebf904c1c3b049a5d9d9e15679ac41599e7
CRs-Fixed: 1095299
2017-04-15 18:07:05 -07:00
Amar Singhal
b4071431e9 qcacmn: Add new APIs to regulatory component
Policy mgr needs APIs for chan to freq and freq to chan APIs.
Add these APIs to regulatory component at pdev level.

Change-Id: I4a0cf2a4b02e16b81d24088c9e9b6c8d36ce6b6c
CRs-Fixed: 2002892
2017-04-14 13:53:36 -07:00
Amar Singhal
be6199297c qcacmn: Fix channel range for null range limits
If high limit value is not found; there can be infinite loop
for searching for it. Fix it by checking for lower limit. Also
do NULL check on extended service capabilities pointer.

Change-Id: Ie3f78e470be77b2e9b34a1003c9e273c33da21db
CRs-Fixed: 2002892
2017-04-14 05:49:08 -07:00
Wu Gao
a47828dd20 qcacmn: Handle scan dequeue event and start failed event
Handle scan dequeue event and start failed event in P2P component,
same as scan complete event. Fix incorrect method to call qdf wait
single event. Fix code style issue.

Change-Id: Id8fbf5180a942183eff9b02f36f945fe17ceab6e
CRs-Fixed: 2032600
2017-04-13 17:08:30 -07:00
Subrat Mishra
9c63fb71d0 qcacmn: ATF Rx Ops prototype change
Minor changes to return types of few function pointers.
Changes made during ATF validation on DA.

Change-Id: I2db8fbe7942b293ca01811fdb482afc9c8f533ce
2017-04-13 13:17:14 -07:00
Kiran Venkatappa
3453674e75 qcacmn: Off-chan txrx componentization changes
Add new module id for offchan txrx compotent and call offchan init/deint.

Change-Id: I803925d2dafdbe3800636de4e5ac4ae69c4851d0
CRs-Fixed: 2030050
2017-04-12 06:02:11 -07:00
Kapil Gupta
a6e44ca3bd qcacmn: Initialize scan_f_chan_stat_evnt from configuration
Currently driver is not initialize scan_f_chan_stat_evnt from
the configuration file which causes WMI_SCAN_CHAN_STAT_EVENT
to be always not included in the scan flag.

Add changes to initialize scan_f_chan_stat_evnt based on
ini configuration.

Change-Id: If6ea1d5c4efcc6d934daf00b537f25f0727ee55b
CRs-Fixed: 2031301
2017-04-11 11:46:29 -07:00
Abhijit Pradhan
32eb664610 qcacmn: dfs_ioctl header file is moved to common services
dfs_ioctl header file is used by both mlme and dfs module.

Change-Id: Iafe0e38a97454418444e6489439f375d26928fe2
CRs-Fixed: 2001106
2017-04-11 11:04:38 -07:00
Abhijit Pradhan
2e59ee0145 qcacmn: A common function to get dfs_rx_ops
Instead of calling and defining the same function from different files,
have a common function in a header file and call it from different files.
The function retrieves the dfs rx_ops from the psoc context.

Change-Id: I1c9089c2508faa9ee7a5bf6645dcf02659923bc3
CRs-Fixed: 2001106
2017-04-11 11:04:35 -07:00
Abhishek Singh
8c6e82d763 qcacmn: Add PNO changes for converged scan
Adds PNO related changes for converged scan

Change-Id: Ia18e48645d511134698777b334348d68daf2dbee
CRs-Fixed: 1095299
2017-04-11 11:04:33 -07:00
Naveen Rawat
d1f1484105 qcacmn: In serialization timeout timer avoid double free
In serialization timeout timer, do not free memory before removing the
cmd from serialization queue. Free only if command is not found in the
queue.

Change-Id: I775b4230f2cb558142a13cfe0a339f3a20a04a33
CRs-Fixed: 2029599
2017-04-11 11:04:26 -07:00
Naveen Rawat
52e9bb6d6f qcacmn: NDP_END_REQ implementation
Add implementation of NDP_END_REQ.

Change-Id: Ifa0bdcdee09c15c68bb12c63ba1157c71650c5bc
CRs-Fixed: 2014795
2017-04-11 11:04:24 -07:00