نمودار کامیت

5913 کامیت‌ها

مولف SHA1 پیام تاریخ
Rhythm Patwa
8ff2fb7fa8 qcacmn: Add WMI support for configuring UL parameters
Add wmi vdev param support for UL parameters.

Change-Id: I3f742daf5691b0867c42b447c26efa640478800f
CRs-fixed: 2226303
2018-11-09 08:19:53 -08:00
Pavankumar Nandeshwar
03b0b38c07 qcacmn: Add flags to enable vow stats in firmware
Add flags WMI_HOST_FW_FEATURE_VOW_FEATURES and
WMI_HOST_FW_FEATURE_VOW_STATS which will be sent
to firmware to enable VOW stats.

Change-Id: I7829327ac21406af309f21b79f9f040687997275
CRs-Fixed: 2340765
2018-11-09 04:12:22 -08:00
jiad
4320219982 qcacmn: Fix format build error
This change fixes build errors with compiler option
-Werror=format=.

Change-Id: I98b93f776c7d58a12d93e1be3a6acf34486ddfab
CRs-Fixed: 2344756
2018-11-08 09:40:18 -08:00
Vivek
4f60ed9111 qcacmn: Log history of serialization commands
Capture the addition and removal of commands
to the serialization queues and the associated
action that resulted in queue changes.

Provide an interface to dump the commands
in either active and pending of scan or non scan
queues and the history of commands that moved in
and out of the serialization queues

Change-Id: I87291f3649f27cc1cb84709d24c0cf8403a41a65
CRs-Fixed: 2334156
2018-11-08 05:44:42 -08:00
Sandeep Puligilla
08d71d6ae5 qcacmn: Reduce VDEV manager log level
Reduce log level of VDEV manager debug messages
to avoid clogging of kernel console log.

Change-Id: I20cf6ef9d7870bb69696fa533d0351ae3c19a979
CRs-Fixed: 2342961
2018-11-08 01:30:54 -08:00
Abhinav Kumar
55229dfcec qcacmn: Possible Out of bound read in policy_mgr_get_channel_list
To prepare the channel list suggestion for a new connection,
policy_mgr_get_channel_list invokes policy_mgr_get_valid_chans to
get the number of valid channels. Driver uses returned num channel
and iterates channel list to divide the list into 2.4 & 5 GHz
lists. In case if, num of valid channel returned by
policy_mgr_get_valid_chans is greater than the maximum number of
channel supported in the channel list, QDF_MAX_NUM_CHAN(128),
possible OOB read occurs.

Validate the value of chan_index of channel list in
policy_mgr_get_channel_list against the maximum number of
channels supported in the channel list.

Change-Id: I6beb9231aaef491731557434d1ae210ac0bdb036
CRs-Fixed: 2346125
2018-11-07 21:17:43 -08:00
Venkata Sharath Chandra Manchala
f0b7fdb82e qcacmn: Remove excessive logging in tx path
Invalid status completions have already been accounted
in the counters. Remove error message for every
invalid status completion as it would lead to excessive logging.

Change-Id: I4af025f3a8731e8488d1d49799c65399a6cc9e37
CRs-Fixed: 2342963
2018-11-07 10:52:25 -08:00
Bala Venkatesh
f2e35432fe qcacmn: Send the supported channel list length correctly to FW
Currently, peer supported channel list length is updated first,
and then channel list updated by removing the DFS and invalid
channels. So, Wrong channel list length is sent to FW.

Change-Id: I1e71bdeae3d5368fbea85ae5e47e13c326e36375
CRs-Fixed: 2344729
2018-11-07 05:09:25 -08:00
Adil Saeed Musthafa
8325200db5 qcacmn: Fix for wrong packet type in monitor mode
In monitor mode, the packet type is wrongly filled radiotap header as
11n when the actual incoming packet is 11b frame.
The packet type field is common for all MPDUs and is obtained from
PPDU_END_USER_STATS and hence no need to overwrite that value from the
MPDU specific TLV in the function hal_rx_mon_hw_desc_get_mpdu_status

Change-Id: I97f96e64012636f562f7ac2e4a91b63ffc7553db
CRs-Fixed: 2333915
2018-11-07 02:58:15 -08:00
Abhishek Singh
d22c097aaa qcacmn: cleanup the unused serialization commands
Cleanup the serialization commands that are not used now.

Change-Id: I3b2dd5021476bc59669029f536e4e0b804f01555
CRs-Fixed: 2344571
2018-11-07 01:35:58 -08:00
Lin Bai
2a78c0054c qcacmn: Avoid excessive defrag log in spinlock
The excessive/unnecessary ERROR level log during defrag_flush will
cause WDOG timeout on MSM platform. Also, it will lead to the
spinlock be held too long.
Move them out of spinlock, and de-priority/remove unnecessary one.

Change-Id: I3501e0e40a268f073c80ab36abfe762a007e5672
CRs-Fixed: 2342065
2018-11-07 01:35:55 -08:00
Arif Hussain
e1a66b56e2 qcacmn: Add support for obss spatial reuse default threshold
Add support to send default offsets to firmware.

Change-Id: I5d566fbd5eb074e7aac94f793c5431734c2e0922
CRs-Fixed: 2345173
2018-11-07 00:12:24 -08:00
Liangwei Dong
a903e9330a qcacmn: Increase Max HW mode number
Increase Max HW mode Number to 3 for
dual dbs mode hw.

Change-Id: I7cf37f854027470cd1decdccc5bd2cd5919ac486
CRs-Fixed: 2340756
2018-11-06 22:40:08 -08:00
narayan
fdf921110e qcacmn: Adding wmi param as part of peer_extd_stats
Adding two members including tx sgi_count in
host peer_extd_stats structure which is received from
the fw and populated to upper layer along with adding two
members to cdp_rx_stats.

Change-Id: Id45b2d0042d01771ac74a906d72c369c3dc31394
CRs-Fixed: 2147922
2018-11-06 22:40:05 -08:00
Yeshwanth Sriram Guntuka
d8ee7699e6 qcacmn: Reduce scan time when in GO+STA MCC
Scan on STA interface is taking around 10 secs to
complete. There is a 7secs expiry time used in nl
which could result in scan results received for
the first 3secs, which are from 2G channels, to
be flushed.

Fix is to not set offchannel simultaneous feature
capability, decrease the active dwell time for 2G
channels to 40msecs and increase burst duration
to 240msecs when GO is active.

Change-Id: If014b2115048018432943d863bbe184beb498408
CRs-Fixed: 2340516
2018-11-06 22:40:03 -08:00
Adil Saeed Musthafa
ae6a73dac7 qcacmn: fill timestamp and lsig in hal_rx_status_get_tlv_info
This was added earlier but got lost during HAL code refactoring

Change-Id: I9b7acc17aa68b1a2b6bc1c7fec0c39231c84a82e
CRs-Fixed: 2339289
2018-11-06 22:40:01 -08:00
Bala Venkatesh
f327b8c30f qcacmn: Pass valid arguments to hdd_wmm_is_acm_allowed
Currently pointer of the vdev object is sent to the callback
hdd_wmm_is_acm_allowed to get the adapter. But this can't
be used to get the adapter. Instead pass the vdev id to get the
adapter.

Change-Id: I3cb2f58d09a263c77a3696a36e863cc4137c7821
CRs-Fixed: 2341799
2018-11-06 21:07:54 -08:00
Tallapragada Kalyan
887fb5d580 qcacmn: dp_peer use after free condition
there is a use after free case observed with the
recent changes to wait for a WMI WDS delete response
Basically the peer got deleted by the time we got
response for WDS delete and we are trying to access this
peer when trying to delete the AST entry from host.

Change-Id: I78215345ccd12d5bdd801fccf8d9f5cd196466de
2018-11-06 21:07:50 -08:00
Rajeev Kumar
1803278802 qcacmn: Fix excessive console logging from qdf set print level
qdf set print verbose level is using pr_info to log debug logs
and pr_info logs are logged on console hence change pr_info
to pr_debug to avoid logging debug logs on console.

Change-Id: I43ccef244c9576483f1520c0a5027ac88e0cbb07
CRs-Fixed: 2342962
2018-11-06 18:02:55 -08:00
Kiran Kumar Lokere
7b5131b757 qcacmn: Add test config attribute for action frame tx in TB PPDU
Define new test config attribute to configure action frame
transmission in HE trigger based PPDU.

Change-Id: Iad53381ec75303ba0717292b1cff94e94cda3de5
CRs-Fixed: 2322602
2018-11-06 16:16:20 -08:00
Kiran Kumar Lokere
82ba870f2d qcacmn: Define test config attribute to configure HE SU PPDU Tx
Define new test config attribute to configure HE single user
PPDU transmission.

Change-Id: I4539ead98f31d0f0c4dee0534f6a8f29b8bd86cc
CRs-Fixed: 2322595
2018-11-06 16:16:17 -08:00
Kiran Kumar Lokere
fd7bd58138 qcacmn: Define test config for HE OM control config
Add a new wifi test config QCA vendor attribute to configure
HE operating mode control field bandwidth and number of
spatial streams.

Change-Id: Ibe70d28329353e48c7bb323ab367c63be9706038
CRs-Fixed: 2320749
2018-11-06 16:16:14 -08:00
Harprit Chhabada
ab6c10d3bd qcacmn: Fix OOB read in util_scan_gen_scan_entry
qdf_mem_copy() is called in util_scan_gen_scan_entry() to copy the ssid
into scan_entry using a length of WLAN_SSID_MAX_LEN. Because the length
of ssid is only checked against the maximum value this will result
in an OOB read of up to WLAN_SSID_MAX_LEN bytes.

Change-Id: I150e7c7a75e7134cab1c4abeb799578166400461
CRs-Fixed: 2341004
2018-11-06 16:16:11 -08:00
Aditya Sathish
dc949c59be qcacmn: Add CDP support for resolving RA from DA for ME6
Add support for parsing AST entries to resolve the RA for
multicast enhancement (mode 6) and enabling access of the API to
the higher layers through the use of the CDP framework.

Change-Id: I909bea86b90c22f311484c0b2653dd7623971c24
CRs-Fixed: 2333014
2018-11-06 00:22:24 -08:00
Frank Liu
f846d94d79 qcacmn: Fix potential resource leak when post msg in TDLS
Fix potentail memory leak when post message in TDLS module:
1. Add flush callback to hanlde memory free and release reference count;
2. Check the return status when post message and free the resource for
failure case.

Change-Id: I0a693ccb5704509a4220f26e024ce8c6c823890c
CRs-Fixed: 2341652
2018-11-05 16:15:24 -08:00
Shashikala Prabhu
75279662ac qcacmn: Set NOL-History flag in the regdb component
In case of STADFS feature, when STA vap detects the RADAR, it marks the
channel as RADAR and adds the RADAR found channel to both NOL and
NOL-HISTORY list.
After nol expiry, STA vap does the CAC before connecting to the RootAP if
the RootAP channel is present in the  STA NOL-HISTORY.

Set nol_history_flag in regulatory component current channel list when STA
vap detects the RADAR.

Change-Id: Ic5d15d78409af15918185147fef8d5cbe87c1686
CRs-Fixed: 2337921
2018-11-05 13:31:55 -08:00
Shashikala Prabhu
62ce2260e9 qcacmn: Use regdb component to set/get NOL-History channel list
In case of STADFS feature, when STA vap detects the RADAR, it marks the
channel as RADAR and adds the RADAR found channel to both NOL and
NOL-HISTORY list.
After nol expiry, STA vap does the CAC before connecting to the RootAP if
the RootAP channel is present in the STA  NOL-HISTORY.

Set nol_history_flag in regulatory component current channel list when STA
vap detects the RADAR.

Change-Id: I8d01f5830e6b4dd634b71c551ac347bc7d3d5c4c
CRs-Fixed: 2337921
2018-11-05 13:31:52 -08:00
Shashikala Prabhu
a38c0cd7c8 qcacmn: Add function pointer to enable STADFS in DFS component
Add function pointer to set/get STADFS in DFS component.

Change-Id: Ib20ca02952632fb7089f74067b955f8bf35dd875
CRs-Fixed: 2323831
2018-11-05 13:31:49 -08:00
jiad
a007ac831b qcacmn: Abstract BMI CE callbacks
As part of WIN BMI modularization, hif_bmi_register_callbacks
are removed from if_pci.c in qcacmn project. As a result,
MCL needs to invoke hif_bmi_register_callbacks in qcacld project.

Fix is to define hif_bmi_register_callbacks for SDIO and USB builds
so that SDIO and USB products can build when WLAN_FEATURE_BMI is
defined.

Change-Id: I559af0205dd4671214a8d7f2972fdba379e10b6a
CRs-Fixed: 2332250
2018-11-02 19:11:43 -07:00
Karunakar Dasineni
2b7628c863 qcacmn: Fix interrupt batch count initialization
Interrupt batch count configuration "dp_int_batch_threshold_other"
was initialized to wrong values, which was causing missed interrupts
from REO status ring.
Also remove the extra RXDMA2SW ring handling, which is currently
done in both UMAC and LMAC interrupt processing loops.

Change-Id: I9a9e951780356db6b491d1301d2c08ef1ac585d5
2018-11-02 15:26:19 -07:00
Abhishek Singh
8d80aa857b qcacmn: Validate the scan requester id before un-registering index
In ucfg_scan_unregister_requester even if caller provide an invalid
requester id, the index is unregistered without checking if
requester id is valid.

Validate the scan requester id before un-registering the index.

Change-Id: I0e946b8c1bdb87b7929745bcd646076d2b664c38
CRs-Fixed: 2343177
2018-11-02 14:02:27 -07:00
Abhishek Singh
1b28621e9d qcacmn: Call scan failure callback in case scan is not serialized
In case scan req is not serialized in some case failure callback
are not called and thus the requestor might not get this callback
and thus might not clean up its states.

Fix this by calling failure callback in case scan is not serialized.

Change-Id: Ife2f22a71fc3fcf60ef96209ec179594ab60c074
CRs-Fixed: 2343144
2018-11-01 22:34:34 -07:00
Arif Hussain
fde69dee82 qcacmn: dfs: Add flag for zero cac
zero cac is not applicable for mcl
add flag to avoid compilation issue.

Change-Id: I0f0373d6d2724f4f5cc9b10272dfe8c6e00ace55
CRs-Fixed: 2343690
2018-11-01 17:24:12 -07:00
Manikandan Mohan
6fa99dd7f6 qcacmn: Fix mem leaks in nan msg posting to scheduler
Fix possible mem leaks in NAN module when msg posting to scheduler
fails. Also setup schduler flush callback for NAN module to purge
messages during driver unload.

Change-Id: I8d034d9bc9a58af95f2c4330a6fc7423885bdae6
CRs-fixed: 2341213
2018-11-01 15:38:26 -07:00
Nandha Kishore Easwaran
800b18c640 qcacmn: Revert Retrieve MAC address from nbuf for MEC EVENT
This reverts change Iab8dc346b9a2108e4cb107fb61d242700a084223

Change-Id: I63826f31a7fc65518d19c8bce699e4ca789451c1
2018-10-31 23:04:37 -07:00
Hariharan Basuthkar
4fdc754bca qcacmn: Delete WIN only files from cmn_dev
WIN DFS only files are moved from cmn_dev to qca-wifi-oss

Change-Id: I597386caf00992b82e8ce52c65a6e82395119aa4
CRs-Fixed: 2330709
2018-10-31 23:04:34 -07:00
Om Prakash Tripathi
628dfd3422 qcacmn: Add failure reason to default failure prints
Print failure reason and BSSID when parse failure happens
for better debugbility.

Change-Id: I383611472d3ca03d74cf55326fcc65d5c9417aee
CRs-Fixed: 2334809
2018-10-31 23:04:31 -07:00
Dustin Brown
f88a90fad9 qcacmn: Reduce 'no event handler registered' log
Change I9a14a3defc61462bf4c7a8f0278e258603b781c7 moved a log in
wmi_control_rx indicating that a specific event Id has no associated
handler from debug-level to error-level. This resulted in excessive
logging, as the driver has no obligation to handle every event type
received from firmware and very well might not want to handle every
event type received from firmware. Restore the original debug-level to
the log.

Change-Id: I4b1118fef7e4752dbaaf796db2f9444927c7e178
CRs-Fixed: 2341953
2018-10-31 19:20:52 -07:00
phadiman
e9fb5477c5 qcacmn: Add debug logs for AST
Add debug logs for AST add, delete
and update functions under debug
level trace for debugging purpose

Change-Id: I2a1728fc97cdd00dd9bdabab5a6055e9f8464e65
2018-10-31 19:20:50 -07:00
Wu Gao
d4b6e218c6 qcacmn: Fix potential memory leak when post scheduler msg in P2P
To avoid potential memory leak, add flush callback for some of P2P
messages, handle post scheduler messages fail case.

Change-Id: If700eba689bb2423ca84fbba08f7434cc75dbd14
CRs-Fixed: 2341756
2018-10-31 16:28:21 -07:00
Pamidipati, Vijay
22c79d586e qcacmn: Do not use wds_en flag for ADDR search flag update
Using wds_en flag to control ADDR search flags in Transmit Descriptor was
causing DP to wrongly use ADDRY search instead of ADDRX search
on WDS repeater for DBDC repeater and SON scenarios.

Fix this by removing the use of this flag in dp_tx_vdev_update_search_flags
API

Change-Id: Id8ca40f926d58b8267e89d30c2b54cc42b4d4182
CRs-Fixed: 2335867
2018-10-31 15:00:29 -07:00
Om Prakash Tripathi
a2f9c7c8b4 qcacmn: Update scan request with all channels
When scan is issued with 0 channels, use all valid channels
on underlying vap to scan. In essence 0 channel in scan
request is expanded to all supported channel list in scan
request by host driver.

Change-Id: Ie1677fa804b290bb1e4715244efb5789641260f4
CRs-Fixed: 2339615
2018-10-31 13:21:31 -07:00
Amir Patel
756d05e9e5 qcacmn: Replace interface of dp stats updation to upper layer
Replace ol_if interface with WDI for dp stats updation to upper layer.
Define a new CDP API to get radiostats.

CRs-Fixed: 2326789
Change-Id: Ieaee2fe18fc9a0ad0e259e36f59529fe9bc4e208
2018-10-31 13:21:28 -07:00
Pramod Simha
95c59f2993 qcacmn: Add force wake APIs for register access
Add force wake request/release API before accessing
BAR+4K register space.

Change-Id: I6583d24925de9f4464f800e19c2d27c0d1b62819
CRs-Fixed: 2302152
2018-10-31 11:50:51 -07:00
Shiva Krishna Pittala
3e4f08be93 qcacmn: Increase the DBR_NUM_RESP_PER_EVENT to 2
Increase the number of repsonses per dbr event to 2 to
support Spectral scan in 160MHz mode

Change-Id: I47ee933b06d94a9a02f7d448b631dfdb99e297c4
CRs-Fixed: 2297498
2018-10-31 11:50:48 -07:00
Amir Patel
8ae687908d qcacmn: Avoid processing tx rate stats
Avoid processing tx rate stats if STATS_USR_RATE_TLV is not processed
in htt_ppdu_stats

Change-Id: Icce8ca0b351ae1ae784ba605d1d984dcdd033715
CRs-Fixed: 2316130
2018-10-30 08:47:20 -07:00
Rajeev Kumar Sirasanagandla
3e8da3a6a6 qcacmn: Avoid buffer overflow in roam scan stats extract handler
In extract_roam_scan_stats_res_evt_tlv(), there is potential
buffer-overflow due to no input validation of following event
parameters from firmware:
(a) Roam scan frequencies against maximum value of 50
(WMI_ROAM_SCAN_STATS_CHANNELS_MAX) and
(b) Roam scan candidates against maximum value of 4
(WMI_ROAM_SCAN_STATS_CANDIDATES_MAX)

To fix this, validate roam scan stats event parameters.

Change-Id: I866b492f7ccb48c4960ff25a9e817cbdb394509e
CRs-Fixed: 2335530
2018-10-30 06:29:39 -07:00
Nirav Shah
eeb9962b24 qcacmn: Fix compilation error due to uninitialized variable
Fix compilation error due to uninitialized variable(write_index)
in hif_ce_bus_late_resume function.

Change-Id: Ia69e56cf74f2970dd0c047740d6499bb5ce07563
CRs-Fixed: 2317219
2018-10-30 05:08:26 -07:00
Uraj Sasan
ff4f2d20fb qcacmn: Add Support for msdu retry stats
Requirement to provide various msdu retry stats to host:-
1. successfully transmitted msdus
2. Retried msdus
3. msdus retried for more than once
4. failed msdus

Change-Id: I4cd7dfceae16b4223df605fa174299858a8651c8
2018-10-30 03:43:20 -07:00
Will Huang
0f5ddf9578 qcacmn: Add bi-direction dma map flag to qdf_nbuf_cb
In case of 11w PMF tx frame, some target would dma write to this tx
buffer, it may cause smmu check fault.

Add a bi-direction map flag to mcl skb.cb[] for this special case.

Change-Id: I72a2c11abb9f3e7e8fb9c6f5290cd4f8d209b19a
CRs-Fixed: 2337204
2018-10-30 00:24:04 -07:00