Commit graph

3,003 commits

Author SHA1 Message Date
Linux Build Service Account
6863f03e13 Merge "qcacmn: Initialize mac_phy_count to zero before populating macphy params" 2017-06-26 17:31:31 -07:00
Kiran Venkatappa
be23decc06 qcacmn: Initialize mac_phy_count to zero before populating macphy params
mac_phy_count should be initialized to zero before populating machphy
params. Target stop/start framework skips attach/detach which means
mac_phy_count should be initialized explicitly.

Change-Id: I9fe537c3a7e375397982174f6a63599a961ba8d3
CRs-Fixed: 2065321
2017-06-26 15:36:01 -07:00
Deepak Dhamdhere
e99d6683f7 qcacmn: Enable PMK cache and OKC with RSO command
Firmware now supports PMK caching in addition to OKC
(Opportunistic Key Caching). Use additional bit flags to enable
PMK caching in PMK configuration in roam offload scan request.

CRs-Fixed: 2004963
Change-Id: I536a4d45d5d915ab02dc13db6124a1ce8949fe48
2017-06-26 11:57:55 -07:00
Jeff Johnson
f155c675e5 qcacmn: Validate vendor abort scan command
In wlan_vendor_abort_scan(), nla_parse() is invoked without specifying
a policy. This can result in a buffer overread when processing the
QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE attribute. To avoid this issue
introduce a "scan_policy" (replicated from qcacld-3.0) and use this
policy when invoking nla_parse().

Change-Id: Ia3e5cb7535bf0f700399e4a49c9c5da362a3ccf6
CRs-Fixed: 2059857
2017-06-26 11:07:16 -07:00
Linux Build Service Account
eba9b1e192 Merge "qcacmn: Incorrect use of tx descriptor" 2017-06-23 18:25:25 -07:00
Venkata Sharath Chandra Manchala
340c0d8903 qcacmn: Incorrect use of tx descriptor
Avoid accessing and releasing tx descriptor when it is
not allocated in tx path.

Change-Id: I36515b679c541d081fd836ea3fb732768031cc06
CRs-Fixed: 2062160
2017-06-23 10:41:30 -07:00
Linux Build Service Account
444e706a79 Merge "qcacmn: Fix buffer overflow when radiotap header is larger than available headroom" 2017-06-23 09:41:45 -07:00
Rakesh Pillai
847482ff8e qcacmn: Fix buffer overflow when radiotap header is larger than available headroom
The condition which detects if the length of the radiotap header is
greater than the available headroom in the skb is incorrect.

Correction to check if sufficient headroom is available
for updating the radiotap header.

Change-Id: I71c140c6af415678efe66cff2f16b8cabc62697a
CRs-Fixed: 2047909
2017-06-23 07:42:02 -07:00
Om Prakash Tripathi
4fa65d80b7 qcacmn: increase scan cache size to 1024 for WIN
Change-Id: I3798c5927ea557cb51c569aa41452b37acf1bc53
CRs-Fixed: 2065195
2017-06-23 07:42:01 -07:00
Linux Build Service Account
6b1f8fda05 Merge "qcacmn: Filter sched_scan channels when DNBS set" 2017-06-22 17:32:35 -07:00
Linux Build Service Account
03d8e64d8d Merge "qcacmn: Add icmp dptrace for latency issue debug" 2017-06-22 12:17:43 -07:00
Ajit Pal Singh
890fc8d420 qcacmn: Filter sched_scan channels when DNBS set
Filter channels passed to firmware for scheduled/offloaded scans,
when Do_Not_Break_Stream is set.

Change-Id: I36d434b9f7c25ff7de5ccb4d20a2ae41b2712662
CRs-Fixed: 2064380
2017-06-22 09:51:07 -07:00
Abhishek Singh
fb9d5acfed qcacmn: Add API to deint scan runtime suspend lock
Add API to deint scan runtime suspend lock, which can be called
before HIF is closed, to avoid crash while acessing HIF pointer.

Change-Id: Ida9269cdaea33a387e2acd1e3d9670d152b6016f
CRs-Fixed: 2065228
2017-06-22 06:35:01 -07:00
Zhu Jianmin
af3420af93 qcacmn: Add icmp dptrace for latency issue debug
Ping latency is a key performance KPI for some customers,
need log in debug mode

Change-Id: I96eebf3f249668dd220aa1062fb339f940d36975
CRs-Fixed: 2039646
2017-06-22 04:38:28 -07:00
Linux Build Service Account
6d7efdb142 Merge "qcacmn: Set-key convergence for non-TLV boards" 2017-06-22 03:58:52 -07:00
Rohan Dutta
d52b36da63 qcacmn: Set-key convergence for non-TLV boards
The tx_iv flag of wapi has been changed
from an array of type u32 to array of type u8
this change adds support for it .

Change-Id: Ia0e57e25c151e7f7f232cf8dc07d59d5a19b47e0
2017-06-22 02:02:28 -07:00
Linux Build Service Account
c6e57eb7ba Merge "qcacmn: Kill bh execution contexts before cleaning up the hif" 2017-06-21 21:33:34 -07:00
Linux Build Service Account
1f9a659707 Merge "qcacmn: Fix core_ctl_set_boost "off" ref count" 2017-06-21 21:33:34 -07:00
Houston Hoffman
7622cd32b0 qcacmn: Kill bh execution contexts before cleaning up the hif
The interrupts are being freed, but the execution contexts are not
guaranteed to be stopped.  Ensure the execution contexts are stopped
to prevent race conditions between the cleanup and normal execution.

Change-Id: I77f2e0fb7073dbb3337e1cbbb6ed09295c7ea23e
CRs-Fixed: 2030393
2017-06-21 19:40:51 -07:00
Mohit Khanna
5d6386f288 qcacmn: Fix core_ctl_set_boost "off" ref count
In current implementation, we may call core_ctl_set_boost(false) even
if its already been turned off an a previous occasion. This leads to
excessive prints in the kmsg "Error turning off boost. Boost already
turned off"

Fix the ref_count such that we donot call the API to turn
core_ctl_set_boost "off", if it is already off.

CRs-Fixed: 2034738
Change-Id: I6e0760c9e6778087f8de6e5329bcaf110c7b264b
2017-06-21 19:40:50 -07:00
Sravan Kumar Kairam
a46056182a qcacmn: Add support to log IP addr of the wow wakeup packet
Add support to log the IP header source and destination address
for the first Rx packet received after host wakeup.

Change-Id: Ie8cf71c8ce913378687ad2c79ab9d5f46c0c2419
CRs-Fixed: 1106593
2017-06-21 19:40:49 -07:00
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
Linux Build Service Account
6435046078 Merge "qcacmn: Fix pdev_id used in WMI_PDEV_SUSPEND_CMDID command" 2017-06-21 09:53:27 -07:00
Linux Build Service Account
429221b907 Merge "Revert "qcacmn: test change to validate on how to exclude MCL changes in WIN"" 2017-06-21 09:53:26 -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
CNSS_WLAN Service
a06182082c Merge "qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_ipa.h" into wlan-cmn.driver.lnx.2.0-dev 2017-06-20 20:54:48 -07:00
Linux Build Service Account
5be8e86cc7 Merge changes I5d938601,I51d31046,Icdfc4937,I8e472338,I332add8c,I1061a37c,I1b0adc1d,I5b80583d,I67c975b7,I4c738b20,I9ffc3376,I39e704ca,Iae311bf0 into wlan-cmn.driver.lnx.2.0-dev
* changes:
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_cmn.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_legacy.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_flow_ctrl_v2.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_bus.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_raw.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_stats.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_peer_ops.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_mon.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_wds.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_delay.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_host_stats.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_misc.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_pflow.h
2017-06-20 20:47:49 -07:00
Linux Build Service Account
94b93083a0 Merge "qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_ctrl.h" into wlan-cmn.driver.lnx.2.0-dev 2017-06-20 20:47:49 -07:00
Linux Build Service Account
04518d145d Merge changes I1a0c3be9,I75f5d440,I37b8edb7,I2385a73b into wlan-cmn.driver.lnx.2.0-dev
* changes:
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_cfg.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_tx_throttle.h
  qcacmn: Fix Datapath kernel checkpatch warnings in cdp_txrx_me.h
  qcacmn: Refactor wmi_unified_get_pdev_handle for target stop/start
2017-06-20 20:47:48 -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