커밋 그래프

3566 커밋

작성자 SHA1 메시지 날짜
Rachit Kankane
3eef916a40 qcacmn: Correction in PCL index fetching routine
In case of SBS or DBS, both the MACs are used for operations.
We have issue in PCL index fatching routines for 3-port
concurrent combinations when first two ports are configured
in DBS mode.

Change-Id: I36ca9979ef4222428e383d89b52ff1388c79ac22
CRs-Fixed: 2127091
2017-10-23 06:12:36 -07:00
Rachit Kankane
0e5479e08c qcacmn: PCL update for 3-port combinations
Updated PCL table to support 3-port concurrent scenarios AP+AP+STA,
AP+GO+STA and AP+AP+AP.
The PCL entries are updated to have below behavior:
1. AP+GO or AP+AP will be supported either in DBS or in SCC mode
2. The Precedence order will be DBS, SCC.

Also disabling 3-port combinations with P2P-CLI.

Change-Id: I678e2b5a49577e173c0e34f83a7ccc528313aadd
CRs-Fixed: 2127091
2017-10-23 06:12:34 -07:00
Abhishek Singh
65c4be7ef3 qcacmn: Add support to enable/disable scans
Adds support to enable/disable scans for the psoc.
Also adds API to set and get the scan enable/disable status.

Change-Id: I2ebb6f9c7fffabef90e9f8c461bdf735e95f0db3
CRs-Fixed: 2124783
2017-10-23 03:42:51 -07:00
Pratik Gandhi
51b6b6d21b qcacmn: Control frame stats Rx BAR frames
Add Pdev level stats for Rx BAR frames.

Change-Id: I1cce56559fd1ffec11f873e35cb1c42b49c1c9ff
CRs-Fixed: 2110552
2017-10-23 01:55:58 -07:00
Nachiket Kukade
110e03024d qcacmn: Create a list for events and force complete them during SSR
During an SSR/PDR any threads waiting on an event won't be purged
unless they are timed out. This increases the recovery time taken
by the host after an SSR/PDR. Before waiting on an event, put the
event in a list. During an SSR set all the events in the list and
return error to the threads.

Change-Id: Iac4790a88cde1665fba4c23924566b4b309a2b03
CRs-Fixed: 2045141
2017-10-23 01:55:57 -07:00
Varun Reddy Yeturu
0f6d121446 qcacmn: Log the debug information before freeing the buffer
Log the necessary debug information before freeing the dynamically
allocated memory while sending WMI commands
WMI_ROAM_CONFIGURE_MAWC_CMDID and WMI_NLO_CONFIGURE_MAWC_CMDID.

Change-Id: I10c8a96f8bb1a6cb661501f9ae9b9b21560980de
CRs-Fixed: 2094763
2017-10-21 06:20:35 -07:00
Krunal Soni
80898349e8 qcacmn: Add NULL pointer check before dereferencing it
Few of the serialization APIs are de-referencing the pointer without
checking it against NULL.

Add a NULL check before de-referencing it.

CRs-Fixed: 2130161
Change-Id: I109518332e593e1f32936404021db1db7a332df7
2017-10-21 02:29:29 -07:00
Manjunathappa Prakash
136dd82676 qcacmn: Compilation fix, replace VOS by QDF macro
Change VOS_TRACE_LEVEL_ERROR to QDF_TRACE_LEVEL_ERROR.

Change-Id: I75575860e3ceea615740c34fc21db75082f10dfd
CRs-Fixed: 2121017
2017-10-20 18:59:58 -07:00
Sandeep Puligilla
d2c91d97a2 qcacmn: Initialize the mgmt tx params
Triggering crash at firmware due to
uninitialized value sent to firmware
as part of wmi_mgmt_params.

Initialize the management tx params
at p2p_mgmt_tx before populate.

Change-Id: Iea77266ee11f5742ea6a0074e4a6612452a764b1
CRs-Fixed: 2128419
2017-10-20 18:17:39 -07:00
Vignesh Viswanathan
9b9aedcfb4 qcacmn: Add cmn changes for supporting flush PMKSA fw
Currently, driver sends add/delete pmksa entry to fw
whenever supplicant sends set/delete pmksa to driver.

Add support to flush all PMKSA entries as well.

Change-Id: Iace843cdf26bf06f3e70703f87c082997a78b894
CRs-Fixed: 2094234
2017-10-20 16:10:29 -07:00
Naveen Rawat
9523aa15fa qcacmn: Add ucfg_wifi_pos set/get apis for FTM value
Define ucfg_wifi_pos apis for set/get of fine_time_meas_initiator.

Change-Id: Id33ba633c58e5b286211da9343797fc99ec364aa
CRs-Fixed: 2124286
2017-10-20 13:54:00 -07:00
Wu Gao
73b1f73a8c qcacmn: Add suspend and resume handler in P2P
Add suspend and resume handler in P2P component. Cleanup mgmt tx
queue and roc queue in P2P suspend handler.

Change-Id: I36bbe98e51eb817b60f08404636f0617b6aa537f
CRs-Fixed: 2058858
2017-10-20 13:53:58 -07:00
Houston Hoffman
41b912cfff qcacmn: DP logging adjustments (1)
Adjust logging to reduce printing to the console by datapath.

Change-Id: I9354cf939a6edcf6cd6fc66dbeb4638b517f30da
CRs-Fixed: 2117150
2017-10-20 12:17:26 -07:00
Jeff Johnson
bcb1eefaf6 qcacmn: Fix camelCase issues with DHCP Offload
Both the unified DHCP offload struct dhcp_offload_info_params and all
of the function prototypes use "camelCase" which is frowned upon by
the Linux Coding Style. Replace the camelCase.

Change-Id: I3f2ce74bc150668b96b1946ef7b2d556c23dad94
CRs-Fixed: 2121485
2017-10-20 10:06:20 -07:00
Hanumanth Reddy Pothula
73112fd8aa qcacmn: utils: Validate packet length, before processing PTT commands
There is a possibility of buffer overread while processing PTT
commands, because of packet length check is missing.

While processing PTT commands, validate packet length to make sure
there is no buffer overread.

Change-Id: I65b2839b0812fc8b2421e4d73e14a05620411c53
CRs-Fixed: 2121017
2017-10-20 10:06:18 -07:00
Sridhar Selvaraj
e73a5ae04c qcacmn: Fix compilation issues of FILS roaming
Fix compilation issues of FILS roaming

Change-Id: I00c8dfe7090623c2962aa209030bc1de6ba2604d
CRs-Fixed: 2096104
2017-10-18 18:28:56 -07:00
Vignesh Viswanathan
051ef2e644 qcacmn: Support FILS roaming
Add cmn support for the following:
- Update ERP info in RSO Start
- Update HLP info in a new command WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID
- Set/Delete PMK cache info with WMI_PDEV_UPDATE_PMK_CACHE_CMDID
- Process FILS TLV in Roam Synch Indication and update the FILS info
  [seq number,PMK, KEK, realm] to Supplicant.

Change-Id: I239bf5d6c4455d39181e335dbf73bcade16aee8e
CRs-Fixed: 2089128
2017-10-18 18:28:54 -07:00
c_cgodav
3f2a92dd13 qcacmn: Clean up of magpie/k2 related code and files
Since support for magpie/k2 are EOL WLAN for past several
releases, we do not expect customer revisiting these products.
So all the code under ATH_SUPPORT_HTC has been removed.
Tests done:
MIG has passed

CRs-Fixed: 2105074

Change-Id: Idc6a1f28eda5cb09edf5375c142d9cb12d81ce0b
2017-10-18 02:03:11 -07:00
Kiran Venkatappa
6cbb319e7a qcacmn: Add fw build version in (ext) service event data
FW reports build number in service ready and ext_service ready event.
Save these to display FW build version during brinup.

Change-Id: Ia86a392f826c5bb836be9353e3938ab1f811ab62
CRs-Fixed: 2125667
2017-10-18 02:03:09 -07:00
Houston Hoffman
ef615e7655 qcacmn: Use atomic set bit ops for mc thread
The basic qdf bit ops are not atomic.  Race conditions
can lead to messages stuck in queues without mc thread
being woken up.

Change-Id: I42093b863c7ed93c5c2baf0bd14106eb4fe082fc
CRs-Fixed: 2118014
2017-10-17 21:49:24 -07:00
Sandeep Puligilla
4296edb2c9 qcacmn: vendor support to block scans
Add vendor command support to block all the
scans triggered from host.

Change-Id: Id225ebade05f6cba11382b0dd8f67e9d1ee006e4
CRs-Fixed: 2080146
2017-10-17 11:48:44 -07:00
Nandha Kishore Easwaran
b39fce7bc3 qcacmn: Add mac address check in mec handler
Add a check in mec handler to see if mac_address is same as that of
vdev_macaddr.raw. If both mac addresses are equal, then add_wds_entry should
not be called. This corner case is seen in qwrap mode where the vdev address
is same as that of the backend wired station

Change-Id: I17504de8ef379680c2a2b962280e1853a5b2930d
CRs-fixed: 2109554
2017-10-17 10:42:32 -07:00
Wu Gao
02782bed09 qcacmn: Initialize variable in cfg80211 roc and mgmt tx
To avoid unexpect issue, initialize variable in cfg80211 roc and mgmt
tx.

Change-Id: I5cc11cf011a136f29f6815142a45918ed71583fa
CRs-Fixed: 2091906
2017-10-17 10:42:30 -07:00
Aniruddha Paul
e3a0334ad0 qcacmn: Fix for interrput masking of NSS Tx/Rx rings
Added logic to reset the host interrupt mask bits for
NSS offloaded rings (WBM Tx completion ring and REO Destination ring)

Change-Id: I96ae29051b6294647cf0610d3cda6c2a995f77a8
CRs-fixed: 2121607
2017-10-17 06:44:19 -07:00
Wu Gao
fcfdd4e018 qcacmn: Add debug functions to P2P component
In order to facilitate debugging P2P issues, add debug information to
P2P component.

Change-Id: I0192b1ee25bb74dc512b01ad451b03d1a45a5446
CRs-Fixed: 2105782
2017-10-17 06:44:17 -07:00
Mahesh Kumar Kalikot Veetil
44c6d56027 qcacmn: Fix a double free crash
The atomic flag 'mem_struct->in_use' should be accessed only after
a sanity check for 'mem_struct' in the function qdf_mem_free(). There is
a possibility that a double free can cause panic before the debug
logic kicks in.

Change-Id: I162b7e72e0f28f8808a7ae56efabb6620d17a6bd
CRs-Fixed: 2073968
2017-10-17 03:02:10 -07:00
Aniruddha Paul
b2f7ab65cf qcacmn: Added new debug module id for NSS
A new debug module ID is added for NSS offload.

Change-Id: Ie14aa4fda6ff9d68eb8b810fa3e7071addf8e1c6
CRs-Fixed : 2125829
2017-10-17 03:02:08 -07:00
Mahesh Kumar Kalikot Veetil
457b5a25c0 qcacmn: Add debugfs API definition
Implement debugfs APIs abstraction for Linux. If a particular operating
system is not supporting debugfs or similar feature, these API's will
be a no-op.

Change-Id: I51316012876fec258e546fce8fc2f877e4311343
CRs-Fixed: 2097140
2017-10-17 00:07:47 -07:00
Mahesh Kumar Kalikot Veetil
68bb47153d qcacmn: Add debugfs APIs
Add qdf abstraction for debugfs APIs such as create file, create
directory, create types and remove files/directory. If a particular
operating system is not supporting debugfs or similar feature, these
API's will be a no-operation.

Change-Id: I09fe366b85d4914ebdab52d3fb23acab72aa2116
CRs-Fixed: 2097140
2017-10-17 00:07:45 -07:00
Mahesh Kumar Kalikot Veetil
164ecb724a qcacmn: Add QDF file permissions
Add file permissions and a function to map that to Linux OS. Also
define a type for __qdf_dentry_t and __qdf_debugfs_file_t.

Change-Id: I91b293b262d955324e65157909ca9d3b831e2cf6
CRs-Fixed: 2097140
2017-10-17 00:07:43 -07:00
Tallapragada Kalyan
61cb97c58e qcacmn: choose proper REO destination ring for invalid hash
for cases where hash is invalid (non TCP/UDP) let us remap
the traffic to a configured REO DESTINATION ring instead of
using default ring 0.

Change-Id: I3d08f684f1914b60a2457bdcc5c184fc8a0068e7
2017-10-16 12:20:37 -07:00
Karunakar Dasineni
ead27fb613 qcacmn: Move packet log to HTT
Packet log messages be coming as HTT messages for Lithium. Temporary
change to bypass HTC connection for this new HIF pipe (CE 5), which
will be used for packet log and other high-priority HTT messsages.
Proper HTC connection to be added later once required FW changes
are available

Change-Id: I53361b4c28b838dacf62f435cc12051bb2eb65b6
2017-10-16 08:05:18 -07:00
Shaakir Mohamed
03a8b15221 qcacmn: Handle dfs pulse information in host side
Adds support to dump dfs pulse information from firmware to host
for debug purpose.

Change-Id: I3b2042f8df6e077eed1a3847cd2d8550794bc6f7
CRs-fixed: 2121833
2017-10-16 05:55:59 -07:00
Santosh Anbu
9fef1a1c0d qcacmn: Add the entries "WLAN_SA_API_ID" & "WLAN_SPLITMAC_ID"
"string_from_dbgid" takes any value from 0 to WLAN_REF_ID_MAX(29) and
return a string corresponding to that index.
'strings' array has only 28 entries(0to27).
Add the remaining two missing entries

Change-Id: I27bf0ffe8341461c3f56eb02ae6482495b3cc338
CRs-Fixed: 2120818
2017-10-16 01:56:42 -07:00
Santosh Anbu
1fae3c8f03 qcacmn: Remove qdf_nbuf_free for NULL buf
qdf_nbuf_free was invoked even if buf is NULL
Remove qdf_nbuf_free

Change-Id: Ibb77d073501b320d27ff5c42cc9d86e27863585d
CRs-Fixed: 2120169
2017-10-16 01:56:40 -07:00
Shaakir Mohamed
4db22523ff qcacmn: Fix to prevent channel switch to channels in NOL list
This fix prevents channel switch to a DFS channel already in the NOL list
during a doth_chanswitch or chan command, within the NOL time out.
When a DFS channel gets added to NOL list, channel flags update to
indicate a radar set on the channel

Change-Id: Ifddd6e861b408a680ec310d42d6518fbb46d733e
CRs-fixed: 2121225
2017-10-15 15:48:11 -07:00
Shaakir Mohamed
a1a7e163af qcacmn: Add support for bangradar for hawkeye
Add support for bangradar command to send unit test command
to firmware as a hook to simulate radar injection

Change-Id: Ieaa7eab6d452ab864a10beca1478d0e61d605107
CRs-fixed: 2113724
2017-10-15 15:48:09 -07:00
Shaakir Mohamed
6f35bb0636 qcacmn: Add usenol support for full offload
In fulloffload mode, based on the value of the usenol variable decide
whether to add the channel to NOL or not. In future, we need to merge
this code with non-full offload. That will remove redundant code.

Change-Id: I2bb403c3983a4a1eac906e6c13a3ec6a13fdc436
CRs-fixed: 2102829
2017-10-15 15:48:08 -07:00
Shashikala Prabhu
42978fd43f qcacmn: Fix channel list validation failure
Problem:
Channel list validation is failed for Algeria country code where
regulatory frequency 5660 is not present in the channel list.

Solution:
Add frequency 5660 to Algeria country channel list.

Change-Id: Ie023a4f1dd54829a891dd08ddeffb527605a0797
CRs-Fixed: 2124092
2017-10-15 05:40:40 -07:00
Mahesh Kumar Kalikot Veetil
7df92bada9 qcacmn: Fix compilation issue in wlan_ptt_sock_svc.c
Fix a compilation issue introduced by the change
"Change-Id: I3bb7170c971f66178efe5cda837337a2e362f822".

Change-Id: Icfb204a5c6b0f5e471583df1c7b84441a6ee546a
CRs-Fixed: 2126606
2017-10-14 19:40:02 -07:00
Soumya Bhat
1c73aa673b qcacmn: Parse PPDU stats TLV
Parse PPDU TLVs provided by FW which are required to
capture TX data path stats

Change-Id: If91834aa94ff8893ba1f292d801f2c00ecdaea1f
CRs-Fixed: 2104488
2017-10-14 09:39:16 -07:00
Varun Reddy Yeturu
2576425ab6 qcacmn: Fix serialization log to use proper module ID
Fix serialization log to use proper module ID.
Replace QDF_MODULE_ID_HDD with QDF_MODULE_ID_SERIALIZATION.

Fix logging levels as per logging guidelines.
INFO_HIGH is not supposed to be used anymore.

Change-Id: I349254abc36565e5ba520d46588e5c3e27178ad9
CRs-Fixed: 2090993
2017-10-14 05:59:23 -07:00
Varun Reddy Yeturu
edb7a95706 qcacmn: Dump PMKID information
Dump the PMKID information in host driver for debugging purposes.

Change-Id: I0be8add08d45bc09d9120bf36eb9110600c56673
CRs-Fixed: 2111909
2017-10-14 05:59:22 -07:00
Rohan Dutta
bec3ab7f30 qcacmn: Fix for wapi ping with x86 sta
The change adds support to fix ping issue for wapi with x86 sta
We add the txiv field to wlan_crypto_req_key structure, this will
be filled for wapi security only

Change-Id: Ic80ecf3aaf4440ba5f56bb9c243bfbca5be574e3
CRs-Fixed: 2098697
2017-10-14 03:51:05 -07:00
Dustin Brown
e8dffb2cc9 qcacmn: Cleanup qdf_print_thread_trace conditional compilation
Initially, save_stack_trace_tsk was not exported from the Linux kernel
for ARM targets. This export has since landed in the 4.14 upsteam
kernel, and internal msm-4.4 and msm-4.9 kernels have added a backport
flag for this export. Cleanup the conditional compilation surrounding
qdf_print_thread_trace to reflect the new situation.

Change-Id: I0c98b38dddf460d4a65c0f19ebce609bd83bbf10
CRs-Fixed: 2126609
2017-10-13 12:49:37 -07:00
Mukul Sharma
9b53a47e39 qcacmn: Add AUTH STATUS and RETAIN CONNECTION attribute
Add QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS /
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION attribute in vendor
QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX subcmd.

Change-Id: I1a96a240c314c1c4199b2fac38ebbaa4f667b28d
CRs-Fixed: 2045932
2017-10-13 09:48:13 -07:00
Gurumoorthi Gnanasambandhan
c1e317ea40 qcacmn: Fix compile error
2017426 removed rssi_args causing compile error.

Change-Id: I5f428535373cd7716e993f4447b27fc33296aa5c
2017-10-13 13:43:44 +05:30
Soumya Bhat
835033e388 qcacmn: Fix TX PPDU stats issues
1. Define bitmap array appropriately and expand ppdu per user
tx stats array to accomodate upto 8 users stats
2. Fix issue where even with 1 WLAN STA user_index was exceeding zero
3. Allocate 5 bits for ppdu_type variable

Change-Id: I969c929c3e16d4027a5e642a0a9195979c95e9cc
CRs-Fixed: 2121122
2017-10-12 14:22:42 -07:00
Sathyanarayanan
0a00062f58 qcacmn: Fix MIPS regression
Change-Id: I34d30e097cfedef9b805d3e97cd256da232b1e28
CRs-Fixed: 2123844
2017-10-12 14:22:39 -07:00
Himanshu Agarwal
99881a9668 qcacmn: WMI changes to send BSS scoring params from INI to firmware
Add support to send BSS scoring params from INI to firmware.
Firmware will use these params to select best candidate during
roaming.

Change-Id: Iad0e71c770ac4f4c31ce3b19552f09fd27dc37bf
CRs-Fixed: 2121739
2017-10-12 14:22:36 -07:00