Commit Graph

58 Commits

Author SHA1 Message Date
Abhijit Pradhan
7383ef9d7e qcacmn: Fix compilation issues for DFS component disable/enable
Header files are included in appropriate places to avoid compilation
errors. To disable/enable DFS component from non-common code at
compile time, use macro QCA_DFS_COMPONENT_ENABLE in config  file.

Change-Id: I0d4fe27ee0d76412c109aa3f64485ea1ac2a5e3a
CRs-Fixed: 2134355
2017-11-05 04:45:51 -08:00
Edayilliam Jayadev
a9919d6e12 qcacmn: Changes to wext interface for external acs
Private ioctls for external acs operation like
set icm active, get channel load info, clear chan load info,
get nominal noise floor were transported and
handled by spectral module. We seperate this ioctls
from spectral by adding new IWPRIVs(get_icm_active,
set_icm_active, get_nominal_nf, clear_chan_info)and
moving their handlers out of spectral.

CRs-Fixed: 2126313
Change-Id: I8c6b56b85d566f5bc7f6217f6fbc99fa23171cdd
2017-10-30 01:39:07 -07:00
Shaakir Mohamed
a1a7e163af qcacmn: Add support for bangradar for hawkeye
Add support for bangradar command to send unit test command
to firmware as a hook to simulate radar injection

Change-Id: Ieaa7eab6d452ab864a10beca1478d0e61d605107
CRs-fixed: 2113724
2017-10-15 15:48:09 -07:00
Shashikala Prabhu
41eff4f752 qcacmn: Initialize DFS radar table based on dfsdomain
* Initialize the radar table based on dfsdomain for country
  KOREA and CHINA.
* Move UMAC related APIs from lmac_api.c to utils_api.c  file.

Change-Id: I9dc2acdf23fc10469884d23bb91f352d2ac259ca
CRs-Fixed: 2110760
2017-10-12 14:21:55 -07:00
Shashikala Prabhu
4f8130e8c9 qcacmn: Fix Zero CAC DFS kernel panic
* Moved target type macros to global target_if header file.
* Fixed kernel panic: Channel details were written in  invalid
  memory location.

Change-Id: Ia9134b8dad651e53f57243c45eb93fb86ddd94c5
CRs-Fixed: 2104219
2017-10-03 08:24:05 -07:00
Venkateswara Swamy Bandaru
73c74698c9 qcacmn: Add generic api get interface id from pdev
Add generic api in mlme txops to get interface id for pdev.

Change-Id: I8896d3d3d53183b2015cdf159985802e6f6629c8
CRs-Fixed: 2117431
2017-10-01 13:35:11 -07:00
Kai Chen
7df3f4f74b qcacmn: Regulatory add 4.9 channel support
Add 4.9 channel support. Populate 4.9 channel to
channel list

Change-Id: I5a8f990fd28cba027b5200cb3dd8dc1949a7db7c
CRs-Fixed: 2105631
2017-09-19 09:59:24 -07:00
Kiran Kumar Lokere
a78b4bfb67 qcacmn: Add support to process channel avoidance event
Add support to process channel avoidance event

Change-Id: I19ce742406a4778ac0f279faf0bf853bc9069eb0
CRs-Fixed: 2080241
2017-08-13 16:56:55 -07:00
Shashikala Prabhu
3519b96e24 qcacmn: Fixed regdb kernel panic
Analysis:
Seen kernel panic when setting the NULL country code in FW.

Solution:
Send an indication to Offload layer if Firmware fails to set
the country code.

Change-Id: Ic01ee170cfca31d840236625c1d1497426eafc68
CRs-Fixed: 2083318
2017-08-08 02:25:47 -07:00
Abhijit Pradhan
af06bcbb63 qcacmn: Add API to get current dfs domain
Add API to get current DFS domain from regulatory component

Change-Id: Iabe4abb0966791e68130ff2d1a7305768893bfcc
CRs-Fixed: 2078153
2017-07-23 13:57:17 -07:00
Shashikala Prabhu
8c01b66c0e qcacmn: Fix DFS kernel panic
Due to dfs and 'ic' flag mismatch, ieee80211_find_channel()
was returning channel as NULL.

Change-Id: I2c8a09b5a1018d7daf2a925bcad7063a6b0e2988
CRs-Fixed: 2067959
2017-07-23 13:57:16 -07:00
Abhijit Pradhan
fe7233a795 qcacmn: Fix DFS kernel panic
As part of DFS component destroy, "ic" is accessed to reset
NOL list and PRECAC channel list, but "ic" is already deleted
as part of MLME component destroy. And therefore invalid memory
access happens.

Reset NOL list and PRECAC channel list before "ic" deletion.

Change-Id: I1dbf273f1ea51945493140bfce9bfa116ad0c488
CRs-Fixed: 2071164
2017-07-21 17:07:00 -07:00
Abhijit Pradhan
c5152c7904 qcacmn: DFS code cleanup
* Remove nif and sif keyword.
* Combine nif_dfs_detach and sif_dfs_detach.
* Combine nif_dfs_attach and dfs_attach.

Change-Id: Ibf4638a64fac976846bfcb1eae91f3f3bb3e994e
CRs-Fixed: 2071164
2017-07-21 17:06:59 -07:00
Mukul Sharma
a4b8d35756 qcacmn: Move PMO from CMN to CLD
Move PMO from CMN to CLD.

Change-Id: I0545e7d2c934ff6558694b439b33c1debf0f5e0a
CRs-fixed: 2071526
2017-07-14 17:36:04 -07:00
Abhijit Pradhan
59626eba4b qcacmn: Set country code for full-offload using iwpriv command
For full-offload, send user country code to FW using WMI
command.

Change-Id: I84acbd7ce30aa9a8ce590c8fadea2cb5914240fe
CRs-Fixed: 2053849
2017-07-13 22:02:53 -07:00
Abhijit Pradhan
ca7d77b408 qcacmn: Fill per psoc regulatory info
Move per psoc regulatory info from pdev level function to psoc
level function.

Change-Id: Id06c6fee110ce929925f568db3a3b507214294d5
CRs-Fixed: 2066122
2017-07-12 12:08:42 +05:30
Ravi Kumar Bokka
4a517a223e qcacmn: Auto Detect SoC Power Collapse Failure changes
Add host support for detecting SOC power collapse failures in FW and
communicating the same to framework.

Change-Id: Icee39c896802c4d7136e0b8ef442a33feeb4799c
CRs-Fixed: 2016580
2017-06-27 22:13:06 -07:00
Amar Singhal
2e55c111a8 qcacmn: Implement 11d state machine
Regulatory component needs to listen to vdev messages in order to track
whether a master mode vdev is getting created or destroyed. It is also
used to kick-start the state machine. Also re-run the state machine when
user-space country code is set.

Change-Id: I5112396314a936f84dad2f0e07329f9cb237aa78
CRs-Fixed: 2048784
2017-06-08 13:46:53 -07:00
Kiran Kumar Lokere
82c8645b38 qcacmn: Add support for 11d FW commands and events
Add support to send 11d scan start and stop commands to FW and
process the 11d new country update event from FW.

Change-Id: I5c1588cfb5af672cdb5738784de1bd0b83bdbe77
CRs-Fixed: 2048784
2017-06-08 13:46:51 -07:00
Dustin Brown
3c777ef4d2 qcacmn: Expose full hardware filter capabilities via WMI
The WMI API exposes the broadcast hardware filter. Modify the WMI API
to expose all of the supported modes of the hardware filter.

Change-Id: I185b149f4d1ad38692d8ff5810acd52bf84565b2
CRs-Fixed: 2040419
2017-06-01 12:32:20 -07:00
Baila, Shashikala Prabhu
bc3efea885 qcacmn: Add API to get 2GHz/5GHz freq range and wireless modes
Offload layer uses low and high 2GHz/5GHz freq ranges and chip
supported wireless modes to populate umac ic channel list.

Change-Id: I899edd83548d68e67659b3a9273ddaaaf740540b
CRs-Fixed: 2047212
2017-05-31 01:03:11 -07:00
Ravi Kumar Bokka
9aa049efcc qcacmn: add set packet filter
Add PMO changes for set packet filter.

Change-Id: I13c4bfe9607b90bd5cd04602448998db9bc66364
CRs-Fixed: 2034458
2017-05-30 17:31:15 -07:00
Kiran Kumar Lokere
a843634983 qcacmn: Add support to send new country to FW
Add support to set new country code to the FW

Change-Id: Id24967b7c9e93bfbf045f494f142be9e33e16483
CRs-Fixed: 2042879
2017-05-18 13:42:21 -07:00
Edayilliam Jayadev
642201f048 qcacmn: Converge the Spectral feature
Add Spectral TxOps and RxOps interfaces in
psoc towards converging the Spectral feature.

CRs-Fixed: 2028657
Change-Id: If5b46fb9d71529060df6e5b242fcc8976fce82f8
2017-05-16 22:08:04 -07:00
Venkateswara Swamy Bandaru
0b9f5ec37c qcacmn: Smart antenna API convergence
Added sa_api_tx_ops, sa_api_rx_ops and their initialization. SA API component
id is also added along with sa_api objmanager calls.

Change-Id: I2e912106dcc900e5eba19090c0157827e08264f3
CRs-fixed: 2038298
2017-05-11 10:45:35 +05:30
Bharat Bhushan Chakravarty
145d393444 qcacmn: SON convergence
1) Defined modularized public api for cdp module
to track inactivity and over load detection.
2) Initialization calls are added to attach and
detach SON specific api.
3) operating system specific calls are replaced with qdf calls.

Change-Id: I130d1e99208d6454f5d9888774534cc6d619ad83
2017-05-09 17:29:11 -07:00
Padma Raghunathan
314a0f7786 qcacmn: MLME tx/rx ops for DA scan
- DA scan state machine is moved to LMAC from UMAC
 - Functionalities in UMAC required by LMAC scan are accessed through tx
   ops and rx ops framework
 - These functionalities are specific to DA, hence distinguished by
   having them in seperate mlme_ops structure instead of mixing with
   common scan_ops structure

FR 38661: UMAC Convergence: Direct Attach Separation

Change-Id: I5177f20d41b7c1788629bcf10d60e4ad9642e0a6
CRs-Fixed: 2037656
2017-05-05 00:27:22 -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
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
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
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
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
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
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
5def1a815a qcacmn: Change LMAC NAN tx and rx ops definitions
Change NAN LMAC tx and rx ops callback pointer to match with implmentation.

Change-Id: If0553d7c077fcd65ecddb931c735765aa42df2c1
CRs-Fixed: 2014795
2017-04-11 11:04:14 -07:00
Abhijit Pradhan
5ae2b3ade6 qcacmn: Changes for DFS component to interact with southbound
Define DFS tx and rx ops in lmac_if layer and register rx ops with
DFS module statically inside wlan_lmac_if_register_rx_handlers.

Change-Id: I17f8fb74c244e841c0b05565fb902ebc70d31606
CRs-Fixed: 2001106
2017-04-03 13:47:13 -07:00
Wu Gao
849fd2c759 qcacmn: Init and deinit P2P
This is a change to init and de-init P2P component in host common. Add
P2P component name in qdf trace.

Change-Id: I0a9d56afe851e3414bf860bed944c4e0fe661fbc
CRs-Fixed: 2006260
2017-03-29 18:12:47 -07:00
Amar Singhal
e407974144 qcacmn: Add the event handler for WMI_REG_CHAN_LIST_CC_EVENTID
Add event handler for WMI_REG_CHAN_LIST_CC_EVENTID.This handler
would be called from psoc_open object manager framework
initialization.

Change-Id: Icfd52fdb7056fdb77afdbd1be576d160719b7285
CRs-Fixed: 2002892
2017-03-27 06:07:36 -07:00
Ashok Ponnaiah
f8c3145190 qcacmn: move crypto init from umac to cmn code
move crypto init from umac to cmn code

Move wlan_crypto_main.h file from src folder to
include folder

Change #if to #ifdef

Change-Id: I363d4b2e7b2c2fc3291f1dd5ef8a6f3837a82df5
2017-03-24 11:09:15 -07:00
Ashok Ponnaiah
13e9f9bb19 qcacmn: Integrate crypto service and sw files
Integrate crypto service and crypto sw files from hostapd

Change-Id: I1e461269a603beffd9d05e304817418e5d0e4f1c
2017-03-24 11:09:12 -07:00
Ashok Ponnaiah
0d0a368b46 qcacmn: add crypto callback registration
add crypto callback registration

Change-Id: Id209afff1c4155425d8b0c600a0b90535decd749
2017-03-24 11:09:07 -07:00
Naveen Rawat
1024ce0045 qcacmn: Add NAN changes in target_if and lmac common files
1) Invoke register tx and rx ops APIs for NAN component.
2) Define tx and rx ops in lmac common header.

Change-Id: I2b06b31f6e9cd4eec5732567da635b9989cc6dd7
CRs-Fixed: 2014795
2017-03-23 18:37:53 -07:00
Naveen Rawat
18ceca16b7 qcacmn: Add LMAC interface for WIFI POS component
This change adds implementation for interfacing with LMAC for
southbound request to WMI and northbount events from WMI.

Change-Id: Ia027ec704d99ef586b89bfadce4f174c3bcf8c17
CRs-Fixed: 2003488
2017-03-22 01:36:34 -07:00
Wu Gao
89c8a8a546 qcacmn: Change WLAN_P2P_ENABLE to CONVERGED_P2P_ENABLE
Change it since WLAN_P2P_ENABLE easily confused with existed macro
WLAN_FEATURE_P2P

Change-Id: Ia27aae849da7a8f8921bff40168105ca16b993b7
CRs-Fixed: 2021996
2017-03-22 12:59:20 +08:00
Subrat Mishra
81c60e87a3 qcacmn: Airtime Fairness convergence
ATF TxOps and RxOps interfaces added in psoc TxOps as well as RxOps.
New API aaded to vdev object manager.
ATF component ID added.

Change-Id: Ib694d91b59167d3831d876412513c260379801ef
2017-03-20 06:29:03 -07:00
Wu Gao
396518b08f qcacmn: Defines os and target interfaces
Defines API and callbacks of os interface for P2P component. At the
same time, defines API of target interface.

Change-Id: Ice1c86ecba1f2410d965d9f84923589f229a1864
CRs-Fixed: 2013763
2017-03-15 17:10:14 -07:00
Abhishek Singh
f94beaad36 qcacmn: scan convergence - add target if changes
Add target if related changes for scan module.

Change-Id: Icaf6a30790106fec30ba9dccc9036be079a8bc0d
CRs-Fixed: 1095299
2017-03-08 14:27:26 -08:00
Mukul Sharma
698612c58b qcacmn: Add LPHB, User space suspend and resume tx/rx ops
Add LPHB, User space suspend and resume tx/rx ops.

Change-Id: I085a67ca824e0a46094ecca80a0e3093e50fd23a
CRs-Fixed: 2015223
2017-03-08 13:00:38 -08:00