Commit Graph

2940 Commits

Author SHA1 Message Date
Pamidipati, Vijay
1033b6bcf5 qcacmn: Increase Tx descriptor pool size to meet single client peak KPIs
Current Tx Descriptor pool size is tuned for emulation; Increase the pool size
to 16K to ensure peak performance in DL for TCP and UDP.

Change-Id: Ifc253d01a8f2b083a8ca4239611f1209726d7af5
CRs-Fixed: 2004658
2017-06-21 16:46:01 -07:00
Kiran Venkatappa
b3e0af9eb2 qcacmn: Fix pdev_id used in WMI_PDEV_SUSPEND_CMDID command
Firmware expects pdev suspend to be sent per pdev. Fix odev_suspend
command to use proper pdev_id.

Change-Id: I17489bbfc55c0c49371a857148af80f66b342378
CRs-Fixed: 2062400
2017-06-20 21:34:17 -07:00
Mahesh Kumar Kalikot Veetil
6eaefc4bf9 qcacmn: Fix qdf_timer_init/free implementation
With DEBUG_OBJECTS_TIMERS enabled, cds_mc_thread prints warning
"ODEBUG: object is on stack, but not annotated". Since the wd_timer
is on the stack, we should rightly use set_timer API's.

Change-Id: I38061ff6c1b706484cd5d4532954cfa24c7ac0d6
CRs-Fixed: 2052484
2017-06-20 19:36:12 -07:00
Kapil Gupta
c427841d4a qcacmn: Correct vendor attribute for external ACS
Add changes to correct vendor attribute to support external
ACS as defined in qca-vendor-copy.h

Change-Id: I68d04694004e9b44efed7b816b180648c0b59623
CRs-Fixed: 2049159
2017-06-20 17:52:09 -07:00
Yun Park
3bac7297c0 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_ipa.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_ipa.h

Change-Id: Idcc988ee328cc43a15b5c0faa80592e8e4a462cf
CRs-Fixed: 2033691
2017-06-20 15:34:06 -07:00
Yun Park
21cd32f84e qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_cmn.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_cmn.h

Change-Id: I5d938601fa176f3fb547e8db17b5b6c6410183e9
CRs-Fixed: 2033691
2017-06-20 15:34:05 -07:00
Yun Park
81e7dd6e20 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_legacy.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_legacy.h

Change-Id: I51d31046a7c75c05886c28b17191961e65cf9f98
CRs-Fixed: 2033691
2017-06-20 15:34:04 -07:00
Yun Park
3e6659845f qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_v2.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_v2.h

Change-Id: Icdfc49379878ddefdaf21154e5a6a8e0d1eaa39e
CRs-Fixed: 2033691
2017-06-20 15:34:03 -07:00
Yun Park
27f5833d73 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_bus.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_bus.h

Change-Id: I8e4723388f56ebf034ef84763ebdf7b2905d8514
CRs-Fixed: 2033691
2017-06-20 15:34:02 -07:00
Yun Park
93ac388a49 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_raw.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_raw.h

Change-Id: I332add8c63898c868b29e783aea70460397bc4a4
CRs-Fixed: 2033691
2017-06-20 15:34:01 -07:00
Yun Park
e849caef8b qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_stats.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_stats.h

Change-Id: I1061a37c94d09243fc4896afa072d6892e57342c
CRs-Fixed: 2033691
2017-06-20 15:34:00 -07:00
Yun Park
890328281a qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_peer_ops.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_peer_ops.h

Change-Id: I1b0adc1da156a0b75dded82f0e2e20e2f0475917
CRs-Fixed: 2033691
2017-06-20 15:33:59 -07:00
Yun Park
f0e1c416c9 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_mon.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_mon.h

Change-Id: I5b80583da04ade9c9ed7c9cc993dd3f61d7c40c8
CRs-Fixed: 2033691
2017-06-20 15:33:58 -07:00
Yun Park
178b9f3ef8 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_wds.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_wds.h

Change-Id: I67c975b7d7f15b3145de41146d03c007d6dfb85b
CRs-Fixed: 2033691
2017-06-20 15:33:57 -07:00
Yun Park
1bd62b76d9 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_delay.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_delay.h

Change-Id: I4c738b201637981ddefaf4719730440299870643
CRs-Fixed: 2033691
2017-06-20 15:33:55 -07:00
Yun Park
7b648742b7 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_host_stats.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_host_stats.h

Change-Id: I9ffc337637d27ee3447889ec7f31d5f49b72fa1f
CRs-Fixed: 2033691
2017-06-20 15:33:54 -07:00
Yun Park
0d86d86e31 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_misc.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_misc.h.

Change-Id: I39e704ca820ef893f3fbcaefb25af6fc342b5396
CRs-Fixed: 2033691
2017-06-20 15:33:53 -07:00
Yun Park
9cd1ffa707 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_pflow.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_pflow.h

Change-Id: Iae311bf0450cf75029aba2d08901e557c905b752
CRs-Fixed: 2033691
2017-06-20 15:33:52 -07:00
Yun Park
29f74f1c97 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_ctrl.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_ctrl.h

Change-Id: I19a361cef8d2ace118c7e18754ba5986063c95dc
CRs-Fixed: 2033691
2017-06-20 15:33:51 -07:00
Yun Park
b0044b44b3 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_cfg.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_cfg.h

Change-Id: I1a0c3be9bd99e993ea61b062a6701231078df719
CRs-Fixed: 2033691
2017-06-20 15:33:50 -07:00
Yun Park
139de79c9e qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_throttle.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_throttle.h

Change-Id: I75f5d4408d2616fd14078fff24a6a0954c73e62f
CRs-Fixed: 2033691
2017-06-20 15:33:49 -07:00
Yun Park
87adad0093 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_me.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_me.h

Change-Id: I37b8edb71b522e9c5f401a282f762eb4da00f6a6
CRs-Fixed: 2033691
2017-06-20 15:33:48 -07:00
Kiran Venkatappa
f13e82a3b2 qcacmn: Refactor wmi_unified_get_pdev_handle for target stop/start
Target stop and (re)start will free htc_handle and re-negotiate endpoint
ids. Change wmi_unified_get_pdev_handle to update htc_handle and
endpoint data in wmi_handle to reflect latest values.

Change-Id: I2385a73bd1d61a6f36db8bdaca4a22115f6bf68c
CRs-Fixed: 2062439
2017-06-20 14:06:35 -07:00
Manjunathappa Prakash
86287dcf2e qcacmn: Define platform CACHE_LINE_SZ
Add platform CACHE_LINE_SZ so that it can be used to roundup the data
structures.

Change-Id: Iec45f5747956d0797411f76c2fec1368a13e7d6d
CRs-Fixed: 2046852
2017-06-19 12:43:31 -07:00
Gurumoorthi Gnanasambandhan
ed4bcf8e9d qcacmn: Add changes for PN check in REO
Setup PN check in REO for Security mode.

Change-Id: I682cda20907b7f64ba18bfef9927b7f8d72d2b54
2017-06-19 12:43:30 -07:00
Selvaraj, Sridhar
d6789e55d3 qcacmn: Add min_candidate_rssi to wmi_per_roam_config structure
Add min_candidate_rssi to wmi_per_roam_config. This is added to
provide the configured min candidate AP threshold to fw to be used
for PER(Packet Error Rate) based roaming.

Change-Id: I6e0ae1ebe578bcd6d858e1d5252dead6e849d54a
CRs-Fixed: 2050039
2017-06-19 12:43:28 -07:00
Abhijit Pradhan
dc45ced7ba qcacmn: Fix DFS kernel panic
Panic:-
As part of component destory, DFS component resets ic member
But ic is deleted as part of MLME destroy before destorying
the DFS component.

Solution:-
Reset the ic variables before destroying the components.

Change-Id: I0b120b43b1f3e7d326876d9cf206f37f6ce74ce8
CRs-Fixed: 2060245
2017-06-19 12:43:27 -07:00
Tallapragada Kalyan
52b45a143a qcacmn: Add scatter-gather support in RX path
Add nbufs to frag_list of parent nbuf when ever we receive
multiple MSDUs spread across nbufs.

Change-Id: Iff7a5208408fa55306cb4137e97bc781e1e82a01
2017-06-19 12:43:26 -07:00
Nachiket Kukade
741073c18d qcacmn: Sanity check on the incoming PTT cmd
In ptt_cmd_handler(), validate that the command attribute is of
minimum allowed size. This prevents parsing of rogue command
format. Also add audit comment to express the intent why policy
table is not used while using nla_parse API.

Change-Id: Ia2da6c88245190aad9a00110059fd6dcfda8a9fa
CRs-Fixed: 2058353
2017-06-19 12:43:24 -07:00
Abhishek Singh
af7e092d9a qcacmn: Fix connection failure with WEP AP
If AP was configured in WEP mode the scan module is not able to filter
the AP and thus connection fails.

Fix the logic due to which the AP was not filtered.

Change-Id: I03ee702875e867986e4bae635269a844914c8043
CRs-Fixed: 2057585
2017-06-19 00:45:55 -07:00
Ajit Pal Singh
c9f57df660 qcacmn: Move GO to STA channel to achieve SCC
Enable movement of GO to STA channel to achieve SCC.
This movement is controlled by the ini variable
"gWlanMccToSccSwitchMode" just as its done for SAP.

Change-Id: I50f9487aa26dfc359211699f3d46e7869cedca4b
CRs-Fixed: 2062450
2017-06-19 00:45:54 -07:00
Baila, Shashikala Prabhu
dea6948639 qcacmn: Fix regulatory sanity issues
FCC11_WORLD regdomain pair added for country MALAYSIA.

Change-Id: I2def0bf412acf99d1d0181db4d8b76633aa039a1
CRs-Fixed: 2057433
2017-06-18 23:30:12 -07:00
Baila, Shashikala Prabhu
6b89e77b3f qcacmn: Regulatory database updates
Update regdomain database to "Country Table Changes Submitted 2016-10-31"
regdomain spreadsheet. It includes the following changes:

* Create new regdomain APL16_World and assign it to Argentina.
* Assign APL15_WORLD to BAHRAIN and INDIA

Change-Id: I31241847f224402bc7f125b3ed64a12ebf76242c
CRs-Fixed: 2058078
2017-06-18 23:30:11 -07:00
Govind Singh
5a990aa2a7 qcacmn: Converge WMI beacon template cmd implementation
There are two implementation of WMI beacon template wmi cmd.
Remove redundant code by converging WMI beacon template
cmd implementation.

Change-Id: Icc9e1f5326c3197a7994ed10ea1ef6386edc7efd
CRs-Fixed: 2061681
2017-06-18 17:36:52 -07:00
Yun Park
2bea1c5170 qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_stats_struct.h
Fix Datapath kernel checkpatch warnings in cdp_txrx_stats_struct.h

Change-Id: Ie651fcc26eac71349779fcfa5316a6c469c22853
CRs-Fixed: 2061338
2017-06-18 14:01:01 -07:00
Karunakar Dasineni
335bbd1374 qcacmn: Fix SRNG low threshold setting in HAL
SRNG low_threshold setting should be in no. of dwords.

Change-Id: I9940f02936cff5947d2bae800ecf6d05b168e729
2017-06-17 15:47:22 -07:00
Karunakar Dasineni
4f886f3aa9 qcacmn: Use REO block resource only if required
HAL REO flush cache command should use block resource only if cache
blocking is requested.

Change-Id: Ie52634cdb9908e4dfa12495dfc3d87a9d5d54c0b
CRs-Fixed: 2057946
2017-06-17 12:24:12 -07:00
Pamidipati, Vijay
6b0d2a800c qcacmn: Add a configure interface to get max_peers from OL_IF to DP
Currently max_peer value is hardcoded with DP wlan_cfg. This change adds
a generic interface to obtain a configuration parameter from OL_IF and
store in DP

Change-Id: Id437ab3bcd02fb1cbcbe8b56d55d19780af87066
CRs-Fixed: 2004658
2017-06-16 17:12:28 -07:00
Pamidipati, Vijay
5379474f69 qcacmn: Enabled asserts in Rx error path
Enable qdf_assert on rx error path to detect corruption issues.
Also add a magic word in rx_desc and compare on rx indications
to detect any corruption issues early in the path

Change-Id: I4df1220f19c891928f9687f40de6f2118b530db2
CRs-Fixed: 2004658
2017-06-16 17:12:26 -07:00
Karunakar Dasineni
93f633c394 qcacmn: Enable REO queue stats
Query REO queue stats from HW and print as part of host peer stats.

Change-Id: I817be3b293e684f0fa3a0b3154f618de0245681f
CRs-Fixed: 2057908
2017-06-16 17:12:25 -07:00
Tallapragada Kalyan
a3088d9a34 qcacmn: WDS changes to address multi-radio scenario
Because of mult-radio changes where we have soc and scn
structures modified we need to address the same for WDS

Change-Id: I63f95d93ac15cdbcdd2b05cb80ce364115e9c16e
2017-06-16 17:12:23 -07:00
Pamidipati, Vijay
84e3394a3c qcacmn: Add a check for target_type for accessing CE legacy registers
In ce_services, check if target type is srng based and access legacy registers
only if it is not, for APIs which are common between legacy and srng-based
targets

Change-Id: I515026cd9b6d14accd4c219c6d03134a36cc3db6
2017-06-16 17:12:22 -07:00
Pamidipati, Vijay
9c9a2871a7 qcacmn: Add missing lock initialization for tx_lock used for me_buf_pool
CRs-Fixed: 2004658
Change-Id: I930fc823ce2b4d4a91f0bc949291d199ba783862
2017-06-16 17:12:21 -07:00
Pamidipati, Vijay
3d8e1e8655 qcacmn: Enable interrupts for DP Rx Error release and REO status rings
Initialize correct mask values to enables Rx error and status ring interrupts

Change-Id: I717fbea492f12d983fb57d964996f4b79c73cb38
CRs-Fixed: 2004658
2017-06-16 17:12:19 -07:00
Pamidipati, Vijay
c2cb427e7f qcacmn: Print Rx Decrypt error statistics
Add support to print Rx Decrypt errors as part of
DP statistics

Change-Id: I03f485003dd1e0d95db21cb25b2973fa26838982
CRs-Fixed: 2004658
2017-06-16 17:12:18 -07:00
Balamurugan Mahalingam
20802b298f qcacmn: add target_ce_config and target_service_to_ce_map for ipq8074
Populating the data structure target_ce_config and target_service_to_cemap
for IPQ8074 platform. These two data structure will be passed to the Q6 target
over QMI later during wifi up for the target side initialization.

CRs-Fixed: 2051118
Change-Id: I5cbe62594b66dab18f01968b9c15d6bfaf93b585
2017-06-16 17:12:17 -07:00
Tallapragada Kalyan
274eb9e76b qcacmn: Temporary WAR for Multicast echo check in host
This is a temporary WAR in host for multicast loopback check
until we finalize on exact design, and host or firmware will
take care of this

Change-Id: I4d2d1b0f5d2a78d4c8716740b74c4fee22c28e96
CRs-Fixed: 2039038
2017-06-16 17:12:15 -07:00
Karunakar Dasineni
4055568bad qcacmn: Monitor status ring handling
Changes to process PHY TLVs from monitor status ring and extract
information required for radiotap header.

Change-Id: I99d642e7506ea797b26dbfac89fd223d1a4c0a55
CRs-Fixed: 2048006
2017-06-16 17:12:13 -07:00
Dustin Brown
1eb4e0ae5c qcacmn: Check for null resume handlers in suspend recovery
After an error, during the suspend process, previously suspended
components are resumed in reverse order. However, while the suspend case
checks for null handlers before dispatching them, the recovery case does
not. Ensure each resume handler is not null before calling it during
suspend recovery.

Change-Id: I86baa4cba9d2b64871da58427a4657b4b3642cdc
CRs-Fixed: 2057165
2017-06-16 09:49:15 -07:00
Dustin Brown
ccf859d9f5 qcacmn: Refactor Unit-Test Suspend
Unit-Test suspend needs to be decoupled from the copy engine
implementation in HIF. Split the HIF portion of Unit-Test suspend into
their own files, and clean up naming, etc.

Change-Id: Ic36c5b98c505f6b62ddf94336838a9e53fe8aa78
CRs-Fixed: 2055328
2017-06-16 09:49:14 -07:00