Граф коммитов

4045 Коммитов

Автор SHA1 Сообщение Дата
Linux Build Service Account
b6fc4707c9 Merge "qcacmn: Number of space stream correction" 2017-12-05 13:55:35 -08:00
Linux Build Service Account
643bbedfab Merge "qcacmn: Handle LFR case in RX datapath" 2017-12-05 13:55:35 -08:00
chenguo
f500afbd3a qcacmn: Number of space stream correction
According to FW design, number 0 stands for NSS 1, number 1 stands
for NSS 2, etc. So extra one is needed to be added in NSS number
for statistics.

CRs-Fixed: 2146055
Change-Id: I34d4166a187c048a233bee846235f4ec2492ad42
2017-12-05 13:38:51 -08:00
psimha
03f9a792e3 qcacmn: Handle LFR case in RX datapath
Add checks for peer as this can be NULL in case of LFR.

Change-Id: I64cc719c9461af5ce9fa4e4e19ba2feedb58a64c
CRs-Fixed: 2128291
2017-12-05 13:38:49 -08:00
Linux Build Service Account
f6a858edbf Merge "qcacmn: WEP bit set for RAW Mode Workaround" 2017-12-05 02:01:27 -08:00
ruchi agrawal
45f3ac45c9 qcacmn: WEP bit set for RAW Mode Workaround
Set WEP bit for protection disabled VAP, to avoid
Hardware crash

Change-Id: I4121d04de9465e07aae2ba24930b1045fb8addf8
CRs-Fixed: 2132317
2017-12-05 01:25:31 -08:00
Frank Liu
283a2f4221 qcacmn: Dynamic antenna switch in TDLS operation
Support dynamic antenna switch in TDLS:
1. If TDLS NSS is configured to be 1x1, TDLS connections not teardown;
2. When antenna mode switched from 2x2 to 1x1, TDLS connections teared
down and EAGAIN returned; When antenna mode switched from 1x1 to 2x2,
TDLS connections is still teardown, but success in one trial.

Change-Id: I1877002122a96dc8f40c796f8a1b938199d3b67a
CRs-Fixed: 2080461
2017-12-04 23:39:02 -08:00
wadesong
41f857eb31 qcacmn: Debug print rate limiting
Implement driver debug print rate limiting in HIF SDIO RX
path and QDF nbuf allocation path to avoid driver
inactivity watch dog time out when the platform is facing
great memory pressure.

Change-Id: Ifa4fe3e7027150fd1469df58049776fca8aa6f2f
CRs-Fixed: 2148314
2017-12-04 23:38:59 -08:00
Linux Build Service Account
d2f89f24a2 Merge "qcacmn: Initialize the peer state after creating the peer" 2017-12-04 23:31:24 -08:00
Linux Build Service Account
ba43c5b295 Merge "qcacmn: Replace substring IEEE80211 by WLAN in DFS component" 2017-12-04 23:31:24 -08:00
Linux Build Service Account
e2900952dc Merge "qcacmn: Fix RADAR found on wrong channel" 2017-12-04 23:31:23 -08:00
Varun Reddy Yeturu
b9ec57ef65 qcacmn: Initialize the peer state after creating the peer
Initialize the peer state to disconnected(OL_TXRX_PEER_STATE_DISC)
after creating the peer. This will also help in roaming case not
to send a vdev up again to the firmware, since the legacy code
checks for this initial state of the peer.

Change-Id: I5b5a664a81c1e295e405c648c1124e9ac844c9cb
CRs-Fixed: 2150449
2017-12-04 21:32:42 -08:00
Shashikala Prabhu
a072dc55f7 qcacmn: Replace substring IEEE80211 by WLAN in DFS component
Replace substring IEEE80211 by WLAN in DFS component

Change-Id: I77bcbe0fc34514928a14c6208e33083ef17834af
CRs-Fixed: 2148682
2017-12-04 21:32:40 -08:00
Shashikala Prabhu
fbeb761ef0 qcacmn: Fix RADAR found on wrong channel
Problem 1:
When HOST receives RADAR found indication from target on wrong
channel ex: channel 68. Host does not add the channel to NOL,
but calls random channel function to choose new channel. It
leads to target assert and HOST crash.

Solution 1:
If channel is wrong, do not add it to NOL and do not call
random channel function.

Problem 2:
When Host receives RADAR indication from target, HOST prints
excess information. It floods the console log.

Solution 2:
Add debug bit mask for excess information.

Change-Id: Ib367ee80705d6b789e4e6823682e2f3c3096c9d9
CRs-Fixed: 2148940
2017-12-04 21:32:38 -08:00
chenguo
1333ba09c5 qcacmn: Delete unwanted lock destroy of reo_cmd_lock
As the correct usage, a lock must be destroyed after all jobs are
done. Delete an unwanted lock destroy of reo_cmd_lock.

CRs-Fixed: 2151585
Change-Id: Ieb24b747e9d4704b65026db3ecfee23a94fbf835
2017-12-04 21:32:37 -08:00
Linux Build Service Account
c293c1ba45 Merge "qcacmn: add periodic data traffic stats" 2017-12-04 20:30:52 -08:00
Mohit Khanna
90d7ebd385 qcacmn: add periodic data traffic stats
Add support for periodic stats for data packets to be displayed in
wlan driver logs.

Change-Id: Ifb8fc5cabb8ecd31da83b5d307721c1d41a30f9d
CRs-Fixed: 2118581
2017-12-04 19:47:14 -08:00
Linux Build Service Account
a821b5d58f Merge "qcacmn: Add target_if ops init for offhchan txrx" 2017-12-04 04:45:41 -08:00
Linux Build Service Account
48b20361a6 Merge "qcacmn: Add WMI service define for offchan_data_tid" 2017-12-04 04:45:41 -08:00
Kiran Venkatappa
303c1f655e qcacmn: Add target_if ops init for offhchan txrx
offchan txrx module should query target to know offchan_data_tid
support. Add target_if ops for offchan module to query this.

Change-Id: I8bca8bbaa5c68eb42daf025235b50a5b512d6911
CRs-Fixed: 2145450
2017-12-04 03:25:30 -08:00
Kiran Venkatappa
1d3e529597 qcacmn: Add WMI service define for offchan_data_tid
Add offchan_data_tx_support service enum to map to new service bit for
this support.

Change-Id: I772d1d43e507469efc678f791ce92ef26eb844a5
CRs-Fixed: 2145450
2017-12-04 03:25:28 -08:00
Linux Build Service Account
6531f05fd5 Merge "qcacmn: skb->cb reorganize, use new FLOW_ID macro" 2017-12-03 13:28:20 -08:00
Gerrit - the friendly Code Review server
419c93e1b1 Merge changes into wlan-cmn.driver.lnx.2.0 2017-12-02 02:23:47 -08:00
Manjunathappa Prakash
71772a5317 qcacmn: skb->cb reorganize, use new FLOW_ID macro
Fix compilation failure because of skb->cb reorganize change.
Use new macro QDF_NBUF_CB_RX_FLOW_ID instead of
QDF_NBUF_CB_RX_FLOW_ID_TOEPLITZ

Change-Id: I4f34c4710c4352a1895d0a08ce7f2e0632b1d30a
CRs-Fixed: 2120295
2017-12-02 01:41:00 -08:00
Vivek
de90e59667 qcacmn: Reorganize the tx & rx member of skb->cb structure
The current tx & rx member of skb->cb structure has lot of common members
duplicated across win & mcl sub structures.
The common members are now moved out
and new members are added as per the requirement.
Also the members are organized to avoid additional padding
and fit within the 48 byte boundary for both 32bit & 64 bit platforms.

Change-Id: I27abc95d51127513cf2e7e9657a4ee84324b2cc9
CRs-Fixed: 2120295
2017-12-02 01:40:58 -08:00
Soumya Bhat
6fee59c4d5 qcacmn: RX AM Copy mode
Provision to send first MSDU of a PPDU to upper layer based
on PPDU ID received in RX monitor lite ring.
FR 42926

Change-Id: I6daed9382b57fb3355ec6453e0609085cc7b9bb0
CRs-Fixed: 2127108
2017-12-01 22:28:23 -08:00
Soumya Bhat
2f779b050b qcacmn: AM copy mode for TX
Provision to send first data frame of a PPDU to upper layer, based
on PPDU ID and peer ID received in MSDU TX completion indication.
FR 42926

Change-Id: Ifac443b1d56d3e91cd72d1868f253ca10beae8ee
CRs-Fixed: 2127108
2017-12-01 22:28:21 -08:00
Soumya Bhat
89647efbf6 qcacmn: Enable/Disable AM copy mode
AM copy mode
Have a configuration to send first 100 bytes of PPDU, whenever
requested by upper layer.

Add required variable and handle code to enable/disable AM copy mode.

Change-Id: I1ebdcd0d1777e276af8c16334dae1f1a0760d5a8
CRs-Fixed: 2127108
2017-12-01 22:28:19 -08:00
Soumya Bhat
28541119a5 qcacmn: Populate RU tones in TX PPDU stats
Populate per user RU tones for TX PPDU

Change-Id: I5725c0500d8a22247913d3656047e25eaaa8c6d3
CRs-Fixed: 2147797
2017-12-01 21:40:10 -08:00
Shashikala Prabhu
38d5f6fc61 qcacmn: Add KOREA_ROC3 country code to regdb database
Add KOREA_ROC3 country code to regdb database

Change-Id: Ifa71577d7c0795067654128112f58a4ed9568072
CRs-Fixed: 2124070
2017-12-01 21:40:08 -08:00
Manjunathappa Prakash
e23acaf21e qcacmn: Setup RXDMA to software Ring for WMAC1
Setup RxDMA to software ring of both MACs, required for
DBS MCC case.

Change-Id: I1a094c1fafe39a2a41e8867c82c1236c4b9b6593
CRs-Fixed: 2135851
2017-11-30 23:40:37 -08:00
Rohan Dutta
a301c8343d Revert "qcacmn: Add WPA/RSN IE from driver"
This reverts Change-Id 2088888.

Change-Id: I12fd8ad77a36d6c7e1247ec29fa08c7caa68ce91
2017-11-30 22:05:28 -08:00
Dustin Brown
013400c3e1 qcacmn: Add several QDF logging APIs
For use by various QDF features, add the following convenience logging
APIs. These APIs mirror logging helpers used by other components.

	* qdf_alert
	* qdf_err
	* qdf_warn
	* qdf_info
	* qdf_vtrace_msg

Change-Id: I0e9194eeaf34ffca2b2130c4a7e62300e2e41ecc
CRs-Fixed: 2144969
2017-11-30 19:38:16 -08:00
Dustin Brown
c2fa95196d qcacmn: Abort scan cancel upon failure to get vdev ref
ucfg_scan_cancel currently grabs a vdev reference unconditionally. This
opens the possibility of operating on a destroyed vdev. Instead, try to
get a vdev reference, and abort the scan cancel operation if a reference
cannot be obtained.

Change-Id: I6380775c6cd09920ad70feed0ec67e4c85ba890d
CRs-Fixed: 2149645
2017-11-30 19:38:14 -08:00
Adil Saeed Musthafa
65dabe448c qcacmn: Add WMI_UNIT_TEST_EVENTID extraction code
Add corresponding host side extraction for WMI_UNIT_TEST_EVENTID

CRs-Fixed: 2073983
Change-Id: Id8455f58d1ba1accdee7095b211abf9a25c7538c
2017-11-30 17:39:10 -08:00
Edayilliam Jayadev
e0c7fbdb93 qcacmn: Callback functions for legacy spectral apis
Use table of function pointers for legacy api calls
instead of calling legacy apis directely

CRs-Fixed: 2146231
Change-Id: Ia5840208d0de5bd4e78c1d27b8ffdc0cf6cbf298
2017-11-30 05:27:58 -08:00
Edayilliam Jayadev
d8c6a467dd qcacmn: Add QCA vendor commands for spectral scan
Add following vendor commands and their handlers.

 1) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
        Set the spectral parameters and start scan.
 2) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS
        Stop spectral scan.
 3) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG
        Get current values of spectral parameters.
 4) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS
        Get stats for spectral scan debug.
 5) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO
        Get the spectral hardware capability.
 6) QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS
        Get the current status of spectral scan.

CRs-Fixed: 2146272
Change-Id: I8e048d6c21e9fb1ed286c19df0edcad46f6e6414
2017-11-30 05:27:57 -08:00
Shiva Krishna Pittala
a3d50e8a85 qcacmn: Removing WIN specific structures from spectral
Removing WIN specific structures 'scn' and 'ic'
from the spectral module in cmn_dev

CRs-Fixed: 2146258
Change-Id: Ie4def4dfb401f4b1a5920277f8fa79acb67dd46b
2017-11-30 05:27:55 -08:00
Shiva Krishna Pittala
de0cb20d07 qcacmn: Moving spectral module to cmn_dev
As part of second phase of Spectral Analysis(SA)
convergence [WIN & MCL], spectral module code is being moved to cmn_dev.
Also includes fixes for checkpatch.

CRs-Fixed: 2146231
Change-Id: I939509193786b0bd2cbd5f1af64d4a94739a2af5
2017-11-30 05:27:54 -08:00
Kiran Kumar Lokere
f5a56570a9 qcacmn: Fix NULL pointer dereference in regulatory object
Add NULL check for vdev pointer passed to the regulatory
component to avoid NULL pointer dereference

Change-Id: Ia49ef8ddebab42da5f28f09fb5f7b2b81d91a3b8
CRs-Fixed: 2147328
2017-11-30 05:27:52 -08:00
Ashish Kumar Dhanotiya
1872489c4c qcacmn: Fill correct mode information for deleted sta
80211 mode information is not getting filled correctly,
fill correct 802.11 mode information.

Change-Id: I7013db95c5010bdaac1f84209534f63d6c7f5719
CRs-Fixed: 2142110
2017-11-30 05:27:51 -08:00
Mukul Sharma
396cef7bcf qcacmn: Converge on wmi event registration / unregistration
Converge on wmi event registration / unregistration method.

Change-Id: If03a38d74a47cc1d900bc5734a7c8f950513efaa
CRs-Fixed: 2148479
2017-11-30 03:40:33 -08:00
jiad
78e34459fd qcacmn: Unmap DMA region mapped for nbuf in rx_desc
In attach and replenish path, nbuf maps a DMA region for device access.
But the DMA region mapped is not unmapped in detach path.

Fix is to unmap the DMA region when rx_desc_pool is freed.

Change-Id: If3e93113e59c7eec4419cb1d9228ee95c5b74b39
CRs-Fixed: 2149014
2017-11-28 19:39:08 -08:00
chenguo
f254886c3d qcacmn: Mapping between NAPI budget and internal budget
There is a scale factor mapping between NAPI budget and internal
budget. Add logic for this dynamic translation.

CRs-Fixed: 2140049
Change-Id: Iac03bd431ab7a416a87e488b14bc8b5c1bb7869f
2017-11-27 22:40:17 -08:00
Manjunathappa Prakash
98b30de852 qcacmn: Track available ext descriptors in the pool
Check for available ext descriptors before accessing freelist.

Change-Id: Iaeea9c7b3b69d14d53bcc23054ebd309b8be2ea9
CRs-Fixed: 2148174
2017-11-27 15:20:47 -08:00
Ruchi, Agrawal
bd894b3bb9 qcacmn: NAWDS multicast issue CR2130039
Multicast frames in NAWDS mode causing flood of packets between the
nawds enabled AP's due to continuous sending of mutlicast frames received
from  another AP and vicevera.Resolved the issues by droppping the 3
address Multicast frames and 4 address multicast frames with sa_peer
same as tx_peer.

Change-Id: I5edbcb060720510eb6ea5f5ffd46402535ba6748
CRs-Fixed: 2130039
2017-11-27 03:34:02 -08:00
Abhishek Singh
7b59903d41 qcacmn: Update new scoring logic with configurable user value
Adds new scoring logic with configurable user value

Change-Id: Ie8c051a3f380930d8a7951617b27aa8f8187619b
CRs-Fixed: 2144588
2017-11-24 03:21:56 -08:00
Tallapragada Kalyan
a867edf5ee qcacmn: pass correct argument to qdf_nbuf_alloc
till date we were passing wrong argument to qdfnbuf_alloc
now we are passing the right argument.

Change-Id: Ie3ee8f1d870b410cbea3236d2fa42ae035a67e0f
2017-11-24 02:36:53 -08:00
Padma, Santhosh Kumar
bc6003b78f qcacmn: Fix PMF check
Currently driver assigns WLAN_PMF_REQUIRED to AP pmf capability
even if rsn capability do not matches with RSN_CAP_MFP_REQUIRED.
Add check for rsn capability against RSN_CAP_MFP_REQUIRED to fix
this issue.

Change-Id: Iff51090c9a65fd7c0d45048b73c5383d56bb13a5
CRs-Fixed: 2146881
2017-11-23 17:19:42 -08:00
Padma, Santhosh Kumar
b5088bf0b8 qcacmn: Add OWE AKM in umac component
Add support for OWE AKM in UMAC component.

Change-Id: I37ffc36207ca128373a5e0c451e9311aa50387d2
CRs-Fixed: 2148452
2017-11-23 15:31:15 -08:00