Commit graph

3,280 commits

Author SHA1 Message Date
Linux Build Service Account
a75fdd8b0c Merge "qcacmn: Fix the use of uninitialized variable in policy manager" 2017-08-24 08:11:07 -07:00
Linux Build Service Account
e18cb77f4e Merge "qcacmn: Reduce log spam from policy manager" 2017-08-24 08:11:06 -07:00
Linux Build Service Account
9472baa04e Merge "qcacmn: Add support for back to back htt stats" 2017-08-24 08:11:05 -07:00
Linux Build Service Account
39017b6b93 Merge "qcacmn: Fix DSCP to TID map table" 2017-08-24 08:11:04 -07:00
CNSS_WLAN Service
36aea6f563 Merge "qcacmn: Fix key index extraction for mesh rx stats" into wlan-cmn.driver.lnx.2.0-dev 2017-08-22 19:59:52 -07:00
Linux Build Service Account
418996a5ef Merge "qcacmn: Expand the use of gDualMacFeatureDisable INI" into wlan-cmn.driver.lnx.2.0-dev 2017-08-22 19:56:38 -07:00
Linux Build Service Account
51f59338d3 Merge "qcacmn: Fill rssi value in the mgmt rx event structure" 2017-08-22 13:11:59 -07:00
Tushnim Bhattacharyya
7c535ebbfa qcacmn: Reduce log spam from policy manager
Reduce log spam from policy manager by converting non essential & periodic
logs to debug level.

Change-Id: I3cb01b47dd56edcf141479b14ea1e51e89b0473a
CRs-Fixed: 2094743
2017-08-22 10:56:00 -07:00
Venkateswara Swamy Bandaru
348e125905 qcacmn: Fix key index extraction for mesh rx stats
Fixed key index extraction in hal api to get correct key index from
key id octet.

Change-Id: I342c05260b17c5baba868223e1b6e75d995823aa
CRs-Fixed: 2073737
2017-08-22 09:29:23 -07:00
Tushnim Bhattacharyya
3441a08f56 qcacmn: Expand the use of gDualMacFeatureDisable INI
Few OEMs want DBS to be disabled for connections while
keeping DBS scan enabled.
Few OEMs want advance DBS scan features to be disabled.
Provide different value to gDualMacFeatureDisable INI item
to achive the goal.

Change-Id: Iddf5df23575a2f907bb8dbd0c37e03ff4ebbdea8
CRs-Fixed: 2068779
2017-08-22 08:40:53 -07:00
Linux Build Service Account
5e29e77a44 Merge "qcacmn: Fix for kernel panic in wifi up path" 2017-08-22 08:06:12 -07:00
Linux Build Service Account
afcbbb23b3 Merge "qcacmn: Fix Key derivation for mesh rx stats" 2017-08-22 08:06:11 -07:00
Venkateswara Swamy Bandaru
6d840bcb94 qcacmn: Fix for kernel panic in wifi up path
Same nbuf pointer is getting used after skb_unshare. This is fixed now.

Change-Id: I98cdbf5929553f20e78b04b32874beea03208cce
CRs-Fixed: 2094334
2017-08-22 07:26:04 -07:00
Venkateswara Swamy Bandaru
3f4e1c48cc qcacmn: Fix Key derivation for mesh rx stats
Fixed key derivation for mesh rx stats for received packet. Added cdp api
to get the key by passing key index and peer mac address.

Change-Id: I6a4c342b614ae85a5ad2fb047f2d8686aa068196
CRs-fixed: 2094335
2017-08-22 07:26:02 -07:00
Om Prakash Tripathi
121268292f qcacmn: Add support for back to back htt stats
In existing implementation when previous stats handling is under process
and a new stats event is received, new stats event is dropped.
Add support to queue any received stats message and process it
later in work queue context.

Change-Id: I7895a2f7ac49456c49374ce209da97c2148f43a2
CRs-Fixed: 2076552
2017-08-22 16:15:14 +05:30
Debasis Das
03bcfb0479 qcacmn: Fill rssi value in the mgmt rx event structure
The rssi field in the mgmt rx_event structure needs to be
filled.

Change-Id: I41b61c48f08ea70d749eee8f5a8987f4a6f3d32e
CRs-Fixed: 2096685
2017-08-22 01:38:56 -07:00
Yun Park
e56aa7b89a qcacmn: Markings updated
Markings updated

Change-Id: I8f031513a2adf5005be26965f73d2e9e1f52a15f
CRs-Fixed: 2093948
2017-08-21 16:50:13 -07:00
Tushnim Bhattacharyya
0b1a7ffdc0 qcacmn: Fix the use of uninitialized variable in policy manager
Initialize the uninitialized variable in
policy_mgr_get_channel_from_scan_result().

Change-Id: I435e6021b989562b69b3bccaa9a90d9cfd3ae560
CRs-Fixed: 2091884
2017-08-21 13:16:35 -07:00
Om Prakash Tripathi
5425c52aa0 qcacmn: Fix DSCP to TID map table
Add below fixes:
1. wifi3.0 only supports 2 HW DSCP to TID map tables.
   Check for supported number of tables before
   updating registers.
2. Do not overwrite previous DSCP TID config for
   different DSCP values while updating TID map
   for new DSCP value.

Change-Id: Icd8af1053fa48d3f1e2db317290f806cd41cd797
CRs-Fixed: 2091195
2017-08-21 01:35:11 -07:00
Aniruddha Paul
fbeb4bb9fa qcacmn: API for upating astentry active flag
API added to update the astentry active flag

Change-Id: I749960135d645cdf736fef01200c200147700f91
2017-08-20 05:16:17 -07:00
Rajeev Kumar Sirasanagandla
a3f4a29130 qcacmn: Add support to include selective scan IEs only
qcacld-2.0 to qcacmn propagation

Add support to include only selective IEs in probe requests in
order to improve user's privacy.

Change-Id: I59cf4181f60f5b4cd87a32fbcf29160d87ca59c8
CRs-Fixed: 1105495
2017-08-19 01:27:07 -07:00
Liangwei Dong
7a3433459f qcacmn: add FW self recovery for SDIO
add hif_check_fw_reg implementation for SDIO
solution.

Change-Id: Ic6948cfc7400d93a53e27074a17d5ceac45b558b
CRs-Fixed: 2071352
2017-08-18 21:27:08 -07:00
Mukul Sharma
a17d5ecbf4 qcacmn: Add support of GCMP (128/256) support
Add support of GCMP (128/256) security ciper support.

Change-Id: I3c9cb3dc72cce0a2cae3e468d3c1f3c004e11adf
CRs-fixed: 2071087
2017-08-18 18:27:37 -07:00
Rajeev Kumar
7f679457e1 qcacmn: Add QDF rate limit logging API
Add QDF rate limit logging API such that logs are rate limited
on need basis.

Change-Id: I40949155a1938998bc73830929db5c2a07bc380d
CRs-Fixed: 2083921
2017-08-18 17:46:44 -07:00
Kiran Venkatappa
22046183ed qcacmn: Update chaninfo extract API for TLV target
FW implementation is updated to add more fields in chan info event.
Update host implementation to extract these fields.

Change-Id: I4935f3aa1c2e87d27a13a29651db8d8835cb4f91
CRs-Fixed: 2090787
2017-08-18 17:46:43 -07:00
Poddar, Siddarth
725e9f5a0d qcacmn: Add missing qdf_spinlock_destroy() to free debug cookie
Add missing qdf_spinlock_destroy() to destroy spin lock debug cookie
for SLUB build. For normal builds, qdf_spinlock_destroy() is a NO-OP
function.

Change-Id: If5a3843a468e460952dc64f0e6b5b1fba05ebbb3
CRs-Fixed: 2078940
2017-08-18 05:37:30 -07:00
Radha krishna Simha Jiguru
f70f991f45 qcacmn: Send peer create to NSS only for connected peers
Send peer create to NSS only when peer map comes for connected peers.
When peer map comes for WDS peers only update WDS peer specific entries.

Change-Id: I32d785180bcd1dae2703d40b55f4536685f10439
2017-08-17 20:51:16 -07:00
Tushnim Bhattacharyya
f80cf0eccb qcacmn: Relax the check on nss field during HW mode table lookup
Relax the check on nss field during FW advertised HW mode table lookup.
Instead of looking for exact match look for less than or equal to the FW
advertised nss value.

Change-Id: I360d14282f03aad25f4338546cbcbfb3cbd3a76b
CRs-Fixed: 2090863
2017-08-17 17:25:19 -07:00
Tallapragada Kalyan
1c14d5d8e9 qcacmn: MEC loopback check even when sa_is_valid not set
There is a case when the multicast/broadcast frame gets loop backed
even before a MEC WDS entry gets added, in this case
the MEC check based on sa_is_valid will fail, hence added
another ast lookup check.

Also fix the ast entry iterator to use _safe option, since
we are deleting ast entries in the same iterations

Change-Id: I0567893783649d991c3623a61c60fbc63d1a24ef
2017-08-17 14:55:13 -07:00
Tallapragada Kalyan
fb72b637f7 qcacmn: AST based MEC support for HAWKEYE
Implemented MEC support using AST entries rather than
using a separate MEC table.

Change-Id: Ifaafb4be1f8a981ad28609ea9740e8bbccec9046
2017-08-17 14:55:11 -07:00
tfyu
6c7625b2ca qcacmn: Add macro protection for HIF CE
Add macro protection for HIF CE, it shouldn't include the ce head file
when the module is usb or sdio.

Change-Id: Icc38ffaa24581141f86d41afe2db7c5aa944a1cd
CRs-Fixed: 2090621
2017-08-17 03:26:53 -07:00
Ashok Ponnaiah
b696221fd3 qcacmn: Fix wep-shared in sta mode
Add selfpeer setting in obj manager
moved handling peer wep keys during peer obj creation
addressed wep encap issue, added trailer bits.
Wep key length check fixed

CRs-Fixed: 2090497
Change-Id: I0a409e12941270dd65fcffabcbee2d5d06cc1f06
2017-08-16 22:46:20 -07:00
Varun Reddy Yeturu
947606fe4a qcacmn: Fill rssi_thresh_offset_5g in WMI
Fill rssi_thresh_offset_5g in WMI to configure this
value into the target

Change-Id: I0e5dde987fcc9fbb1f0556ec6f195d0a5ada4ffe
CRs-Fixed: 2093335
2017-08-16 17:36:53 -07:00
Kabilan Kannan
7419feb01e qcacmn: Fix the invalid MAC address config issue in TDLS
When an invalid mac address(all zeros 00:00:00:00:00:00) sent
to the host via user configuration, it triggers the crash in
the system.
Add checks to reject the invalid mac address configuration
in TDLS.

Change-Id: I340f581e7011f78faf5f58c10f7b6eec15ea2940
CRs-Fixed: 2068026
2017-08-16 09:56:10 -07:00
bings
ff86e37d20 qcacmn: Fix connection information deleting and restoring
Currently only one connection information corresponding to the
provided mode is deleted and restored, which causes channel
selecting failure in DFS testing with AP+AP concurrency mode.
When radar is found in AP+AP concurrency mode, a new valid channel
should be selected. Before selecting the channel, all existing
connection information of SAP mode should be deleted, otherwise
no valid channel can be selected.

All the connection information corresponding to the provided mode
should be deleted and restored.

Change-Id: Id363dbb2c31485fefcd6915696060923063079bb
CRs-Fixed: 2079597
2017-08-16 03:27:29 -07:00
Adil Saeed Musthafa
fe366639e9 qcacmn: fix a bug in qdf_trace_hex_dump
The for loop was wrongly written. buf_len was decremented but the
counter was compared against buf_len, leading to lost bytes in the dump
Now with this change we compare buf_len is compared with 0, i.e., when
buf_len reaches 0, the loop exits

CRs-Fixed: 2091891
Change-Id: Ic5276e964e08a7db757bfed0569b290d987ddf5f
2017-08-15 19:27:39 -07:00
Dustin Brown
56897ecb6c qcacmn: Remove membership check from list APIs
Getting the next node of a linked list should be a O(1) operation.
qdf_list_peek_next, however, iterates though the list first, checking
for node membership, before returning the next node. This makes the O(1)
operation a O(n) operation instead. Code that uses this API for list
traversal inadvertently performs a O(n^2) operation, causing unexpected
performance issues. Similar problems exist for qdf_list_remove_node as
well. Remove the membership checks in qdf_list_peek_next and
qdf_list_remove_node to prevent unexpected performance penalties.

Change-Id: If20825690ad861815c8164caebbf75318e572f0a
CRs-Fixed: 2091815
2017-08-15 19:27:37 -07:00
Pamidipati, Vijay
623fbee5f9 qcacmn: Clean up TxRx statistics
Cleanup the print format for rate stats.
Add missing elements in HAL tx completion structure.

Change-Id: I57aaac605fce5060f7943b9bbe95ef8e8c2d3b7b
2017-08-15 17:32:16 -07:00
Karunakar Dasineni
09120790f8 qcacmn: Enable per TID AMPDU and AMSDU WMI params
Enable WMI PDEV parameters to configure per TID AMPDU and AMSDU in TLV implementation

Change-Id: I12982e78f880bf9bf8858aaa99aa416d7f775c17
CRs-Fixed:2089935
2017-08-15 16:27:54 -07:00
Varun Reddy Yeturu
8ee469b48e qcacmn: Add ldpc_rx_enabled to vdev start parameters
Add a field ldpc_rx_enabled to vdev start parameters so that
this information can be propagated from the upper layers to
WMI and further to firmware.

Change-Id: I25fd148f77d86eb646a0e40fef6ac99c4fbcdf22
CRs-Fixed: 2023893
2017-08-15 16:27:53 -07:00
Prashanth Bhatta
65b0eaa24b qcacmn: Change semantics of Runtime Lock APIs
Runtime PM lock init API right now returns pointer to a context
but this would cause confusion to the caller if feature is not
defined and dummy function return NULL as caller can't find real
failure versus dummy function returning because feature not being
enabled.

Fix declaring a data structure in QDF layer that caller can use
but it hides the internal details of HIF implementation for
Runtime PM locks.

CRs-fixed: 1116509
Change-Id: I4dcba604e803faa0e14fac6403610391895e382e
2017-08-15 13:27:07 -07:00
Pramod Simha
ccb15fbd29 qcacmn: Enable WBM scatter ring support
Program additional registers to enable the WBM scatter ring
support for providing link desc to HW.

Change-Id: I0d240150f81a333758a311af35c97e1f93ef4ed2
CRs-Fixed: 2068757
2017-08-15 13:27:05 -07:00
Rajeev Kumar Sirasanagandla
d8d18f187a qcacmn: Add support to randomize probe req SA and Seq number
qcacld-2.0 to qcacmn propagation

Randomize probe request's source address and sequence number to
improve user's privacy.

Change-Id: I265f15476f1a23a268f159a44b6a3e4243fb9068
CRs-Fixed: 1105081
2017-08-14 20:07:22 -07:00
Kapil Gupta
b9abb628db qcacmn: Correct shash APIs calling
Add changes to correct shash APIs calling.

Change-Id: Ic1756311c3869c0b4881e1ac07a8d32be6e1e481
CRs-Fixed: 2089258
2017-08-14 19:26:22 -07:00
Arif Hussain
e22618a790 qcacmn: Change soc level pdev id as per new definition
soc level pdev id changed from zero to WMI_HOST_PDEV_ID_SOC (0xFF)
change pdev id in wmi_unified_dfs_phyerr_offload_en_cmd call
according to new definition.

Change-Id: I3c55dc8821c4186190515564b00f54f2427d5702
CRs-Fixed: 2090282
2017-08-14 14:58:11 -07:00
Arif Hussain
877f3236d8 qcacmn: Refactor dfs cac timer and other logic in dfs component
It is possible to use host based cac timer even for the dfs
offload, So make sure to do all initialization for cac timers.

Also store dfs offload flag in dfs component.

Change-Id: Id30730fb1f84285e225c4221fde9846fbfd960cc
CRs-Fixed: 2069362
2017-08-14 14:58:09 -07:00
Karunakar Dasineni
9a4ddd6a40 qcacmn: Compilation fix without FEATURE_NAPI
Fix compilation failures with NAPI disabled.

Change-Id: I5ebd122436b7fc2f85b09880eddd884ca114e121
CRs-Fixed: 2080092
2017-08-14 13:58:08 -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
Varun Reddy Yeturu
eea59a38ac qcacmn: Add vdev as argument to wlan_serialization_comp_info_cb
Add an additional argument to wlan_serialization_comp_info_cb to pass
the vdev information while filling the information required to apply the
rules.

Change-Id: I44dadc01108e746fd2ce6353a90cdf9401dd6d06
CRs-Fixed: 2090987
2017-08-13 16:16:06 -07:00
Rajeev Kumar
eca1b64d6c qcacmn: Add host initiated self recovery callback in qdf
Add host initiated self recovery callback in qdf such that
self recovery can be invoked from all layers.

Change-Id: Ied2a468019a2e27039686a4acb0e4c8b4577ba8f
CRs-Fixed: 2083099
2017-08-13 15:36:36 -07:00