Commit Graph

10322 Commits

Author SHA1 Message Date
Rachit Kankane
0dc3e850ea qcacld-3.0: Featurize WEXT support
Add feature flag and featurize WEXT support

Change-Id: I14d2640f66e022faaa38ff6c006dca8485234cf1
CRs-Fixed: 2266697
2018-07-03 22:04:46 -07:00
nshrivas
6885e4c334 Release 5.2.0.86X
Release 5.2.0.86X

Change-Id: Iea9cbf3103102db830cc35635f4d106759847b1d
CRs-Fixed: 774533
2018-07-03 19:26:47 -07:00
Jianmin Zhu
c2d91c2313 qcacld-3.0: Fix implicit conversion from enumeration type error
Implicit conversion from enumeration type 'enum dfs_reg' to
different enumeration type 'enum nl80211_dfs_regions'
[-Werror,-Wenum-conversion]

Change-Id: Iceff212456180b995a9432be04af5e39e7863acb
CRs-Fixed: 2271384
2018-07-03 19:26:44 -07:00
nshrivas
8743677392 Release 5.2.0.86W
Release 5.2.0.86W

Change-Id: I144b5fb055c0aa8e47202f4f8e20f63660d0b220
CRs-Fixed: 774533
2018-07-03 16:36:39 -07:00
gaurank kathpalia
6f53cf10d5 qcacld-3.0: Fix pointer dereference condition
In the APi wlansap_roam_callback, under switch
case of roam result eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND,
the driver passes csr_roam_info in
wlansap_roam_process_infra_assoc_ind without a NULL check for
the same, which may cause pointer dereference.

Fix is to call wlansap_roam_process_infra_assoc_ind only if
csr_roam_info is valid

Change-Id: I6388b7c8f7af827a5c2a862779f04b22c5c5f23e
CRs-Fixed: 2260094
2018-07-03 16:36:39 -07:00
Jeff Johnson
6aaaa997e4 qcacld-3.0: Rename hHdd to hdd_handle
Rename hHdd to hdd_handle to avoid camelCase.

Change-Id: I338b39e128dbd3c1560695fcbb49c5a4bc470169
CRs-Fixed: 2271551
2018-07-03 16:36:35 -07:00
nshrivas
d91b9e1f96 Release 5.2.0.86V
Release 5.2.0.86V

Change-Id: Ia2146637c323794db8bc79afd547e3b3b3da6859
CRs-Fixed: 774533
2018-07-03 15:16:38 -07:00
gaurank kathpalia
2b6f50708a qcacld-3.0: Fix pointer dereference condition
In the API csr_roam_read_tsf, the driver assigns
pBssDescription to handoffNode.pBssDescription but
it may happen that handoffNode.pBssDescription was NULL,
which would result in a pointer dereference.

Fix is to assign pBssDescription, and perform related
operation with pBssDescription after valid check for
handoffNode.pBssDescription.

Change-Id: I2b9ff44e22aa86b1430d8a624bac2f0e50b91738
CRs-Fixed: 2259253
2018-07-03 15:16:37 -07:00
nshrivas
3a8d2d6e1a Release 5.2.0.86U
Release 5.2.0.86U

Change-Id: Ic589fa11f506091d897727908f81a5947ebbf8bd
CRs-Fixed: 774533
2018-07-03 13:42:15 -07:00
Dundi Raviteja
3566823ebe qcacld-3.0: OOB read while processing extscan change results
In function wma_extscan_change_results_event_handler(), numResults
in dest_chglist is assigning as total_entries in the event, but the
memory allocated to dest_chglist is based on the numap variable,
which may cause out of buffer read in extscan indication callback
function wlan_hdd_cfg80211_extscan_signif_wifi_change_results_ind().

Also tSirWifiSignificantChange array parsing in both the functions
is not efficient which may lead to accessing unallocated memory.

To address out of buffer read, assign numap to numResults in
dest_chglist and to address accessing of unallocated memory,
parse tSirWifiSignificantChange array with efficient logic.

Change-Id: Ia0c287147e80e17de84fe6b1cb83c8e3c29a1fa0
CRs-Fixed: 2253396
2018-07-03 13:42:14 -07:00
Himanshu Agarwal
cf5b89316f qcacld-3.0: Check for beacon channel in ACS channel list correctly
Beacon's channel is checked against ACS channel list before even
getting the beacon's channel resulting in no beacon parsing at all.

Check for beacon channel in ACS channel list after getting the
beacon's channel.

Change-Id: I16edcf9eaa0eafce289cc050652702eb90d79c9d
CRs-Fixed: 2271461
2018-07-03 06:38:18 -07:00
nshrivas
eceda1e04b Release 5.2.0.86T
Release 5.2.0.86T

Change-Id: I3b2aebc1bfd8d5b395b7245b03c34e32124cf5df
CRs-Fixed: 774533
2018-07-03 05:07:11 -07:00
Rachit Kankane
308073384d qcacld-3.0: Allocate DP_TRACE buffer dynamically
Allocate memory for g_qdf_dp_trace_tbl buffer dynamically.

Change-Id: Id9c757fd700929528b8a047248aa942134f60160
CRs-Fixed: 2268787
2018-07-03 05:07:09 -07:00
nshrivas
2353f2df10 Release 5.2.0.86S
Release 5.2.0.86S

Change-Id: Ie27d7637b11d789ab65f861aea0680af04232555
CRs-Fixed: 774533
2018-07-03 02:59:59 -07:00
Nachiket Kukade
54e7be76f3 qcacld-3.0: Add upper limit check on Listen Interval configuration
User can override the Listen Interval value set during association
by using wifi config set vendor command. Since there is no limit
check in host, a very high value causes an assert in the Firmware.

Add an upper limit check on the user Listen Interval value.

Change-Id: I8128ccbb875adf57c95a15d0391fb442d3dbbbc3
CRs-Fixed: 2256334
2018-07-03 02:59:59 -07:00
nshrivas
7d2a3e0be9 Release 5.2.0.86R
Release 5.2.0.86R

Change-Id: I31a7a592dce4c1a15cc88fb2b7d5081b63d4da6d
CRs-Fixed: 774533
2018-07-03 00:09:22 -07:00
Sriram Madhvapathi
50f9e400a3 qcacld-3.0: Fix build issue caused by redefinitions
Variable "request" is redefined causing build failures.
Fix by renaming the variables.

Change-Id: I147f98270b135536aa2b499fef2ebd3f41807223
CRs-Fixed: 2271925
2018-07-03 00:09:22 -07:00
nshrivas
6994d12089 Release 5.2.0.86Q
Release 5.2.0.86Q

Change-Id: Ie323e44935ddf3edd0d64d15c01902814e930b5b
CRs-Fixed: 774533
2018-07-02 18:17:48 -07:00
Jeff Johnson
edfaf0bc96 qcacld-3.0: Consolidate PE message handling
During the review of "qcacld-3.0: lim: Replace tSirRetStatus with
QDF_STATUS" it was observed that the documentation for function
pe_process_messages() referenced an incorrect return type and return
value. While addressing this issue it was further observed that
pe_process_messages() was only being called from within lim_api.c by
pe_mc_process_handler(). Since these are both trivial functions,
consolidate them into one function.

Change-Id: Ia66088b79003e0c8c517a8e3ae32540c19fec070
CRs-Fixed: 2271550
2018-07-02 18:17:47 -07:00
Jeff Johnson
d9e03511ef qcacld-3.0: Replace eSirRetStatus with QDF_STATUS
A recent set of changes replaced all tSirRetStatus definitions with
QDF_STATUS. However some code comments were overlooked since they
incorrectly referred to eSirRetStatus instead of tSirRetStatus. Change
those comments to correctly reference QDF_STATUS.

Change-Id: I3b5779d0a09e594f1371362d161d3ea4c887110c
CRs-Fixed: 2271549
2018-07-02 18:17:44 -07:00
Jeff Johnson
c9f4462ff3 qcacld-3.0: Fix LIM message posting API definition and usage
Currently lim_post_msg_api() and lim_post_msg_high_priority() are
defined to return a uint32_t status.  This is an artifact of many
generations of driver changes. These functions now return QDF_STATUS,
so update the signatures as well as all callers to properly expect
this return type. In addition remove the legacy wrapper function
pe_post_msg_api() since it is unused.

Change-Id: I00f991d64e3542336526e7ed2ca36e4112918cb7
CRs-Fixed: 2271548
2018-07-02 18:17:40 -07:00
nshrivas
2754593ec1 Release 5.2.0.86P
Release 5.2.0.86P

Change-Id: I6061beaa0b435553f8ad9eb50ed32da39473e8ff
CRs-Fixed: 774533
2018-07-02 16:08:49 -07:00
psimha
8696f772fe qcacld-3.0: Add CDP API to set key in data path
Add CDP API to set RX MIC key in datapath.
Required to perform RX demic of fragmented packets.

Change-Id: I3c05da62ff20f8551cdc5780ce2f7b8d23c73a37
CRs-Fixed: 2217884
2018-07-02 16:08:48 -07:00
nshrivas
f7ab655435 Release 5.2.0.86O
Release 5.2.0.86O

Change-Id: Ib64f7935daed6824c386472f486251f748f30a79
CRs-Fixed: 774533
2018-07-02 12:23:27 -07:00
Manjunathappa Prakash
5f5ed13024 qcacld-3.0: Post high TPUT event to DPTrace
Add ultra low verbosity level to distinguish datapackets and special
packets. And post TPUT event to DPTrace logic so
that it can disable data packet logging during TPUT scenarios.
Disable print and in memory logging when packets per second exceeds
4 packets.

Change-Id: I70c9368de4cb2423901449b267452a34d652213d
CRs-Fixed: 2185186
2018-07-02 12:23:26 -07:00
Manjunathappa Prakash
3a21bea166 qcacld-3.0: Move rx_thread to perf core for udp
rx_thread can sustain the TCP DL KPIs with silver core.
So let system decide scheduling of rx_thread for TCP.

Move rx_thread to perf cluster only for UDP traffic exceeding
the threshold. This is achieved by having monitoring non
rx_offload traffic. This takes care of platform(such as ROME)
which doesnot support rx_offload and also cases when we don't
support rx_offload(SAP, concurrency etc..)

This rx_thread affinity can be overridden by INI configured
rx_thread CPU mask.

Change-Id: I0e47221a2491c67c8da4b331756a3b5a18a82e37
CRs-Fixed: 2185186
2018-07-02 12:23:23 -07:00
Manjunathappa Prakash
b6b4ff1809 qcacld-3.0: Add CPU mask INI option for Rx_thread affinity
Add INI option to specify CPU mask for Rx_thread and affine
Find current online cores.
During high TPUT,
1) If user INI configured cores, affine to those cores
2) Otherwise perf cores.
3) Otherwise to all cores.

During low TPUT, set affinity to any core, let system decide.

Change-Id: I10e906d484e300bb32491d7d60d717e92b92aaef
CRs-Fixed: 2185186
2018-07-02 12:23:20 -07:00
Manjunathappa Prakash
cb6df76414 qcacld-3.0: Add INI option to set NAPI CPU affinity
Current NAPI IRQ affinity logic doesnot have way to specify
configurable CPU affinity option. Instead it starts affining them from
starting from biggest available core.
Current profiling experiment suggest that NAPI IRQ affinity is not
required, so set default as no affinity.

Change-Id: I0bea3389a7565f8ec157d4587a442b5e11c33fb2
CRs-Fixed: 2185186
2018-07-02 12:23:16 -07:00
Wu Gao
24c1e1f35b qcacld-3.0: Avoid to over read buffer
Refine sch_get_p2p_ie_offset and avoid to over read buffer.

Change-Id: Ic833c06b220e1e064abde0a2db9c413f7203e54b
CRs-Fixed: 2266611
2018-07-02 12:23:13 -07:00
nshrivas
a5adc6a844 Release 5.2.0.86N
Release 5.2.0.86N

Change-Id: I34d631b50ae4d0283dd9d63305fb3017eae08d00
CRs-Fixed: 774533
2018-07-02 08:45:39 -07:00
Abhinav Kumar
3ff56da2fa qcacld-3.0: Revert "qcacld-3.0:Fix the IOT issue with TxBF CSN value"
This reverts The Change-Id: Ifa2872ef62925f99bf49ef504ade4a4bb431672b
because this change results slower down the downloading speed of file
from the server in weak signal (-70 RSSI) area.

Change-Id: Iec7423809f5225de9b5c4d08d7806a8a2a9dfe06
CRs-Fixed: 2270285
2018-07-02 08:45:39 -07:00
Bala Venkatesh
b816ce8e7c qcacld-3.0: Add support to allow user select preferred band for SAP
Add enum QDF_MCC_TO_SCC_WITH_PREFERRED_BAND(6) for this.
If ini gWlanMccToSccSwitchMode is selected to
QDF_MCC_TO_SCC_WITH_PREFERRED_BAND(6) then following will be the
behaviour of STA+SAP concurrency.
1. If second interface(SAP/STA) comes in same band as
   first interface(STA/SAP) respectively then force SCC
   irrespective of channel.
2. If second interface(SAP/STA) comes in other band as
   first interface(STA/SAP) then dont force SCC allow
   interband MCC or DBS based on DBS capability.
Allow interband MCC but not intraband MCC.

Change-Id: I91d41b4b0306ed4e362b5bcab9538f5fd5feea7d
CRs-Fixed: 2260672
2018-07-02 08:45:36 -07:00
Jinwei Chen
ef742dc73c qcacld-3.0: Fix sme_update_tgt_he_cap param and indent
Fix checkpatch issue introduced by change "qcacld-3.0:
separate HE caps per band", use new mac_handle_t instead
of tHalHandle in sme_update_tgt_he_cap param and fix
indent issue.

Change-Id: I91e11fd38ac72266b4afcf42d71340975127f559
CRs-Fixed: 2268400
2018-07-02 08:45:32 -07:00
nshrivas
8bd1d088ec Release 5.2.0.86M
Release 5.2.0.86M

Change-Id: I93b9fc79928527c6792984bcb32f9c67c6297c3a
CRs-Fixed: 774533
2018-07-02 07:21:28 -07:00
nshrivas
275a24081e Release 5.2.0.86L
Release 5.2.0.86L

Change-Id: Ia4932a1c8d517e2f1f668249ebceae5ec6495c26
CRs-Fixed: 774533
2018-06-30 15:58:49 -07:00
Jeff Johnson
a50c52eed6 qcacld-3.0: Remove tSirRetStatus transition macros
Change "qcacld-3.0: Remap tSirRetStatus to QDF_STATUS" introduced a
set of macros to map tSirRetStatus to QDF_STATUS. All of the
tSirRetStatus identifiers have been renamed, so remove the now unused
macros.

Change-Id: Ie95c9806bdcc52e25e81c8adaecacbdc79207e37
CRs-Fixed: 2270654
2018-06-30 15:58:49 -07:00
Jeff Johnson
0301ecbb4c qcacld-3.0: lim: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac pe/lim folder.

Note that this change introduces some checkpatch issues, but due to
the number of pre-existing checkpatch issues in lim these are just
noise, and in order to have this change just address the issue at hand
any checkpatch issues will be addressed as part of a separate cleanup
activity.

Change-Id: I677292c208fe08f1bbba8bf294870cbc73cc3b5c
CRs-Fixed: 2270620
2018-06-30 15:58:46 -07:00
nshrivas
40080b4322 Release 5.2.0.86K
Release 5.2.0.86K

Change-Id: I6e303705082a111abf052236e805c5a1c3dc774e
CRs-Fixed: 774533
2018-06-30 12:23:02 -07:00
nshrivas
bb50a29279 Release 5.2.0.86J
Release 5.2.0.86J

Change-Id: If6db49e9392a6770c071fd3b9d5fe3a9c6f37dc5
CRs-Fixed: 774533
2018-06-30 02:10:25 -07:00
Sandeep Puligilla
39b5040dac qcacld-3.0: Cleanup legacy passive scan min channel time
Clenaup legacy passive scan minimum channel time configuration
value and the code references related to the same.

Change-Id: I15d508484dde8f4db775a6fb263646a7af8e5f69
CRs-Fixed: 2262691
2018-06-30 02:10:24 -07:00
Sandeep Puligilla
e0511d7a67 qcacld-3.0: Cleanup legacy active scan min channel time
Clenaup legacy active scan minimum channel time
configuration item and the code references related
to the same.

Change-Id: I5eef7ec09345e199946700c033eaa85fbf69d289
CRs-Fixed: 2262691
2018-06-30 02:10:21 -07:00
nshrivas
eb733d5334 Release 5.2.0.86I
Release 5.2.0.86I

Change-Id: I0fc0318505b97641043913f9dffb7c40e1633e09
CRs-Fixed: 774533
2018-06-30 00:17:54 -07:00
Amar Singhal
ac26de2077 qcacld-3.0: Use the regulatory sync kernel API with no lock
The init thread takes the rtnl lock during initialization.
So use kernel API regulatory_set_wiphy_regd that does not
take the rtnl lock.

Change-Id: I50e7aa96dd8c819d1531b84b181a058197d9b24f
CRs-Fixed: 2265624
2018-06-30 00:17:53 -07:00
Amar Singhal
4228c39d30 qcacld-3.0: Check for wmi_ready before processing wmi messages
If wmi_ready is not set, we can infer that WMI_READY_EVENTID has not
been fully processed yet. Completion of WMI_READY_EVENTID is necessary
for any follow-on messages to be processed properly, since it builds
infrastructure on host. Therefore, serialize the follow-on message with
WMI_READY_EVENT if wmi_ready is not set yet.

CRs-Fixed: 2267180
Change-Id: I2e5df318f8e40a9487502a49539252c9fde9892b
2018-06-30 00:17:50 -07:00
nshrivas
9b4a9fa933 Release 5.2.0.86H
Release 5.2.0.86H

Change-Id: Iee4eefc9e20be832d26f07ac1a40b809628b17b4
CRs-Fixed: 774533
2018-06-29 19:37:17 -07:00
Abhinav Kumar
50d4dc7645 qcacld-3.0: Fix high latency during BTM roaming
While processing the WMA_ROAM_OFFLOAD_SYNCH_IND event, The
driver takes nearly 150 to 200 msec time to just write fatal,
error and info messages to the kmsg log buffer. Also to get
tx power supplicant runs another thread while roaming. These
cause more latency(300ms) to send WMA_ROAM_OFFLOAD_SYNCH_CNF
message to fw. To decrease roam latency, the driver should
write the only necessary error message to kmsg buffer.

The fix is to change irrelevant fatal, error and info message
type to debug add a check in __wlan_hdd_cfg80211_get_txpower
to reject the request to get Tx power while roaming in progress
otherwise driver will process this and will increase the roaming
latency.

Change-Id: I6c31637f21991b5b29c1e2dd2c2935ae7d4fc3d0
CRs-Fixed: 2251824
2018-06-29 19:37:17 -07:00
Dustin Brown
cfc54fe81b qcacld-3.0: Scale HDD inactivity timeout by multiplier
Emulation builds can be very slow, leading to watchdog timeout issues.
One specific issue involves the HDD inactivity watchdog timer. Scale the
HDD inactivity timer by the qdf timer multiplier to avoid false
positives on emulation setups.

Change-Id: Idc7f3d25f836ff5406d4fb5758e975ab5d83f596
CRs-Fixed: 2269834
2018-06-29 19:37:14 -07:00
nshrivas
54bd784a48 Release 5.2.0.86G
Release 5.2.0.86G

Change-Id: I179f3e23c10be5c5e8d82d6431ae44b353b2b9eb
CRs-Fixed: 774533
2018-06-29 17:27:36 -07:00
Tushnim Bhattacharyya
d2e085d002 qcacld-3.0: Don't move SAP if SCC on lte coex channel is allowed
If STA+SAP is doing SCC & g_sta_sap_scc_on_lte_coex_chan is set,
don't move SAP to a different channel when LTE channel avoidance
event comes.

Change-Id: I3dfdbb6d59769a8ff9b3b2e6d828feee94630569
CRs-Fixed: 2261795
2018-06-29 17:27:35 -07:00
Will Huang
ea70106cda qcacld-3.0: Fix HDD reassociate fail case for LFR2.0
If station connect with infrastructure network, might connect to AP
different with the hint bssid, if reassociate command issued, it will
invoke hdd_reassoc(). It might bring down connected station without
bring down vdev of the LFR2.0 path if the process of scanning for ssid
failed.

Add back logic of checking uOsRequestedHandoff and route to correct
LFR2.0 roaming path.

Change-Id: I406b55270dc70e5d3494250d6013f7d35824970f
CRs-Fixed: 2256194
2018-06-29 17:27:32 -07:00
nshrivas
587b37ea7f Release 5.2.0.86F
Release 5.2.0.86F

Change-Id: I2ce73f717f6cb765a36bebd06ff0756167100fcc
CRs-Fixed: 774533
2018-06-29 13:31:43 -07:00
Mohit Khanna
571a550f17 qcacld-3.0: use netif_receive_skb for UDP packets
Using netif_rx_ni for UDP packets has a lot of overhead because of the
softirq(NET_RX) used to process the backlog queue. Hence use
netif_receive_skb for UDP packets.

Change-Id: I02e4de17e55ce448a87b55075465003b03fcd5f5
CRs-Fixed: 2185186
2018-06-29 13:31:42 -07:00
Kabilan Kannan
caa8550b4c qcacld-3.0: Add SAR V2 support
Add changes to support SAR V2 power limits.

Change-Id: I35f8a194ac9c53c8fd564bd301398b78fa995bed
CRs-Fixed: 2217067
2018-06-29 13:31:37 -07:00
nshrivas
a0e8242bc6 Release 5.2.0.86E
Release 5.2.0.86E

Change-Id: I44a28d4e16439e775a3f51f1a601e5232aee55e8
CRs-Fixed: 774533
2018-06-29 10:44:19 -07:00
Jeff Johnson
f1a99eae5a qcacld-3.0: Transition HDD to OSIF Request Manager
The HDD Request Manager was replicated in the converged project as the
OSIF Request Manager so that the infrastructure could be used by the
converged code. Transition HDD to the OSIF Request Manager and remove
the now duplicated HDD Request Manager.

Change-Id: I2dfdd2da4f98e95a74ba13d04bb42d25a90c9ec8
CRs-Fixed: 2269909
2018-06-29 10:44:18 -07:00
Jeff Johnson
ceb4e9b46e qcacld-3.0: pe: rrm: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac pe/rrm folder.

Change-Id: Iba8b15a3f17ee4bd827d384cf775ac0679590208
CRs-Fixed: 2269739
2018-06-29 10:44:15 -07:00
Jeff Johnson
65250f2456 qcacld-3.0: pe: sch: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac pe/sch folder.

Change-Id: I7301c209adccdb63b1f1ac063d4590b5019f2e40
CRs-Fixed: 2269738
2018-06-29 10:44:11 -07:00
nshrivas
cb88d0abbc Release 5.2.0.86D
Release 5.2.0.86D

Change-Id: I706e5fe367952ec44daf0ff48d2abe74801ff2f4
CRs-Fixed: 774533
2018-06-29 09:25:31 -07:00
Jeff Johnson
97dad0855d qcacld-3.0: Change the underlying type of mac_handle_t
Currently mac_handle_t is defined as a void pointer. This is
convenient from an information hiding point of view since that means a
non-MAC component cannot dereference a MAC handle to access MAC
private data. However this is not convenient from a defect prevention
point of view since the C standard allows any other pointer type to be
freely and silently converted to and from a void pointer, and hence
the compiler is unable to detect when a MAC handle is used in a
context where a different pointer type is expected.

An example of multiple such defects was addressed by Change-Id
I01812b2390269805da4d1a5cb40a811d1e22ec56 (qcacld-3.0: Fix bad
pointers being passed from SME to WMA).

To help prevent these kinds of defects change the definition of
mac_handle_t to be a pointer to an opaque struct.

Change-Id: I72483bf0e693d6eca24355f31d3a1653b8f31302
CRs-Fixed: 2268814
2018-06-29 09:25:31 -07:00
Jeff Johnson
1021f89889 qcacld-3.0: Fix sme_qos_is_ts_info_ack_policy_valid() param
Currently sme_qos_is_ts_info_ack_policy_valid() takes a tpAniSirGlobal
mac context param. However this is a global function that is called by
HDD, so it should be taking an opaque handle. Update the function and
all callers to use the appropriate type.

Change-Id: I71759ce184306a90f46e37d79d6bdd7a545c1bc2
CRs-Fixed: 2269181
2018-06-29 09:25:28 -07:00
Jeff Johnson
9d7c99eccf qcacld-3.0: Fix sme_process_ready_to_ext_wow() context param
Currently sme_process_ready_to_ext_wow() takes a tHalHandle context
param.  However this is a static internal function, and hence it
should be using the "real" context pointer type tpAniSirGlobal instead
of the opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal (which is what is already being passed by
sme_process_msg()).

Change-Id: I06a2c00334867902e185726d1c7b3ba8c8cb08f5
CRs-Fixed: 2269965
2018-06-29 09:25:24 -07:00
nshrivas
143e9f0578 Release 5.2.0.86C
Release 5.2.0.86C

Change-Id: I45f9d28f9914469fb6df2fb4d0f00b51b4be83c9
CRs-Fixed: 774533
2018-06-29 07:12:35 -07:00
Frank Liu
0e7ac56180 qcacld-3.0: Update soc info by structure member
Update pld soc info by structure member to decouple between pld soc info
with platform soc info.

Change-Id: I0e62d4784d7bccfb2f08d3678e1c78e6baaa9ca9
CRs-Fixed: 2268191
2018-06-29 07:12:34 -07:00
nshrivas
7e3cfd4e94 Release 5.2.0.86B
Release 5.2.0.86B

Change-Id: I784a1f03baea3724d355723081380b75c430a1ca
CRs-Fixed: 774533
2018-06-29 03:29:40 -07:00
Padma, Santhosh Kumar
dbef1c57f4 qcacld-3.0: Fix use after free of pCurRoamProfile
Currently there is a chance that driver can access pCurRoamProfile
even after freeing it. While driver frees pCurRoamProfile as part of
csr_roam_process_command in mc thread context/user space context(if
there is no active command in sme queue), it can access the same
variable as part of __wlan_hdd_cfg80211_set_ext_roam_params in user
space context and can result in use after free.

Acquire lock before freeing roam profile to fix this issue.

Change-Id: I16863f35405fa41424060bb2d12c779681095a85
CRs-Fixed: 2265905
2018-06-29 03:29:39 -07:00
nshrivas
06e5f7a963 Release 5.2.0.86A
Release 5.2.0.86A

Change-Id: I7aae6cc84cb9413066972dc035cb5e6da5d64b16
CRs-Fixed: 774533
2018-06-28 22:28:11 -07:00
Kiran Kumar Lokere
4de8755491 qcacld-3.0: Remove obsolete code in SME QOS module
Remove the obsolete logic in the SME QOS module.
QDF_STATUS_PMC_PENDING status is not used, so remove the
obsolete code based on this status.

Change-Id: Ie891eddad2b536e43f5f933c8683d41b096bf578
CRs-Fixed: 2269866
2018-06-28 22:28:10 -07:00
Kiran Kumar Lokere
af034cc564 qcacld-3.0: Remove obsolete code in SME QOS module
Remove the obsolete logic in the SME QOS module

Change-Id: Ic918fca795caaf76fa9fd69912ee81750c426592
CRs-Fixed: 2269866
2018-06-28 22:28:08 -07:00
Kiran Kumar Lokere
9163390d67 qcacld-3.0: Remove obsolete SME QOS event
SME_QOS_CSR_HANDOFF_FAILURE event is not used and the event
handler is obosolete. Remove the obsolete functionality

Change-Id: I7d3c9732b0550bdedb1c2b06b9d31e2ee3db2480
CRs-Fixed: 2269866
2018-06-28 22:28:05 -07:00
nshrivas
a3cd76f687 Release 5.2.0.86
Release 5.2.0.86

Change-Id: I06429328e3744ca2b928bd4859f5e44b99b4ffac
CRs-Fixed: 774533
2018-06-28 17:49:53 -07:00
Arif Hussain
baf28b8ec0 qcacld-3.0: Send dfs offload enable command based on ready event
Send dfs offload enable command to firmware after receiving
ready event.

Change-Id: I8bec60543f4514ddb30a2cdcb1ccab9260130ca8
CRs-Fixed: 2269832
2018-06-28 17:49:53 -07:00
nshrivas
3223dec57a Release 5.2.0.85Z
Release 5.2.0.85Z

Change-Id: Ieb9025c4bf774d6aa04f7a7d809404fc24017fdf
CRs-Fixed: 774533
2018-06-28 16:38:23 -07:00
Vignesh Viswanathan
e92b6cec9d qcacld-3.0: Send roam_scan_mode as 0 for RSO Stop during disconnect
Currently if disconnet is triggered from the supplicant, RSO Stop
is sent with reason REASON_ROAM_STOP_ALL and this sends roam_scan_mode
as 0 to the FW.
However, if disconnect is triggered from the LIM/FW, the RSO Stop
is sent with reason REASON_DISCONNECTED and leads to roam_scan_mode
being sent as 4 which does not disable RSO in the FW.
In STA+STA scenario where vdev0 receives a disconnect from LIM,
RSO is not stopped for vdev0, however driver goes ahead to enable
RSO for vdev1, which leads to FW assert.

Send roam_scan_mode as 0 for RSO Stop command with REASON_DISCONNECTED
also.

Change-Id: Id2147653ecbd91e033f42382aa00a717d280f6e6
CRs-Fixed: 2266778
2018-06-28 16:38:23 -07:00
Jeff Johnson
7ca9424665 qcacld-3.0: Remove command debug support from tDblLinkList
The csr_linked_list implementation has remnants of a command debugging
infrastructure that is no longer used, so remove those remnants.

Change-Id: Ic217c99b755744eed36c153a4183ed98724e86d7
CRs-Fixed: 2269026
2018-06-28 16:38:20 -07:00
nshrivas
fcbefe49db Release 5.2.0.85Y
Release 5.2.0.85Y

Change-Id: If659440c41dd8af2d02b310cc8a9526962b8275b
CRs-Fixed: 774533
2018-06-28 15:17:04 -07:00
Tushnim Bhattacharyya
84e1e23f32 qcacld-3.0: Don't update the global channel list on channel avoidance
Don't update the global channel list on channel avoidance event. The
LTE channel avoidance is relevant for beaconing entities only.

Change-Id: Iad991e63d59d7070d487c2aef5302ced1d0f91c6
CRs-Fixed: 2267371
2018-06-28 15:17:03 -07:00
nshrivas
a94dbf7bdf Release 5.2.0.85X
Release 5.2.0.85X

Change-Id: I512decf37b01fd8bca55eb13227bc392303c7054
CRs-Fixed: 774533
2018-06-28 10:42:39 -07:00
jitiphil
335d24162d qcacld-3.0: Implement descriptor pool for fw stats
The kernel address is used as cookie to keep track
of stats request. This address can be disclosed to
target leading to a security vulnerability.

Implement a FW stats descriptor pool, and use a
descriptor ID to keep track of stats requests,
instead of the kernel address, to prevent
kernel address leak.

Change-Id: Ib49150da899c0b9314f614868a90867f4aa92d3d
CRs-Fixed: 2246110
2018-06-28 10:42:39 -07:00
Ashish Kumar Dhanotiya
10b0c91904 qcacld-3.0: Do not select any invalid channel from acs list
Driver is selecting first channel from the preferred channel list
if no channel is selected from the sap channel select algorithm.
This leads to the selection of an invalid channel if the entire
preferred channel list is invalid.

To resolve this issue, do not select any channel from the preferred
channel list if the entire list is invalid or if the entire list
is unsafe.

Change-Id: Ic90416fe62f854e2c1f124884c200876f543caba
CRs-Fixed: 2234142
2018-06-28 10:42:36 -07:00
nshrivas
4c35fd7743 Release 5.2.0.85W
Release 5.2.0.85W

Change-Id: I1b22c59d0db9cbdd582e1ee99cc633ba88bdbd56
CRs-Fixed: 774533
2018-06-28 04:51:46 -07:00
Bala Venkatesh
7e9c688006 qcacld-3.0: Defer the channel switch if it is already in progress
When sta+sap scc enabled on dfs channel then SAP cannot operate on
DFS channel in standalone mode. If STA+SAP are operating in SCC mode
on a DFS channel and STA gets disconnected from reference AP then driver
schedules a workqueue to move the SAP from DFS channel to user configured
channel. At this time if STA again connects to reference AP within few ms
then driver again schedules one more workqueue to move the SAP to STA's
channel. Sometimes the second workqueue may fail to switch the channel
if first one is not yet completed. So added event variable to schedule
second workqueue only when first one is complete.

CRs-Fixed: 2163412
Change-Id: Ia6ce4b6264c35f6d2c809e2a3f65f535e930874e
2018-06-28 04:51:46 -07:00
Jeff Johnson
616417f17d qcacld-3.0: Remove unused HDD handle from tDblLinkList
The HDD handle hHdd in struct tDblLinkList is never referenced, so
remove it from the struct. In addition remove the hHdd parameter from
csr_ll_open() since it is only being used to populate this field.

Change-Id: I6c123c5338feb795fdaea194c2cb7f9bd7a36093
CRs-Fixed: 2269025
2018-06-28 04:51:42 -07:00
nshrivas
28771297de Release 5.2.0.85V
Release 5.2.0.85V

Change-Id: I0253648b98c72c5e4b8abb858981ef1d13f090b4
CRs-Fixed: 774533
2018-06-28 03:11:06 -07:00
Pragaspathi Thilagaraj
6cf025f727 qcacld-3.0: Fix possible heap overflow in lim_update_ext_cap_ie
In the function lim_process_set_default_scan_ie_request, memory
of MAX_DEFAULT_SCAN_IE_LEN (2048) is allocated for local_ie_buf.
This local_ie_buf accommodates the ie data and also the ext
capabilities. If the local_ie_len, that is used to copy the
ie_data to local_ie_buf is greater than
MAX_DEFAULT_SCAN_IE_LEN(2048) - (DOT11F_IE_EXTCAP_MAX_LEN(15) +
EXT_CAP_IE_HDR_LEN(2)), then heap overflow could occur.

Validate the MAX_DEFAULT_SCAN_IE_LEN against the difference
between MAX_DEFAULT_SCAN_IE_LEN and sum of EXT_CAP_IE_HDR_LEN
and DOT11F_IE_EXTCAP_MAX_LEN.

Change-Id: Id2f950440d69ddb09090643f8a426061c0d336c3
CRs-Fixed: 2231300
2018-06-28 03:11:05 -07:00
Ajit Pal Singh
2650d4eb6e qcacld-3.0: Return supported max tx groups for all HIFs
Return max tx groups supported in driver for all HIF types.
Earlier max tx group was being returned for SDIO only.

Change-Id: Id0431b03b89945386dd0f5aa0fe01b6d66fadde2
CRs-fixed: 2268757
2018-06-28 03:11:01 -07:00
Ajit Pal Singh
c31d10199c qcacld-3.0: Credit Management changes for Genoa
1) Genoa FW by default enables HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET.
When this flag is enabled, credits are reported through
HTT_T2H_MSG_TYPE_TX_CREDIT_UPDATE_IND and not through
HTT_T2H_MSG_TYPE_TX_COMPL_IND.
However when TSF and PTP features are enabled we need to get TX
Completions from FW.
Since credits can also be updated through TX Completions
we need to disable updation of credits through TX Completion for Genoa.

2) Enable flag : cfg_ctx->tx_free_at_download to free ol tx descriptors at
   download.

Change-Id: I176dc8391ded9fc57f8be2b465effd8ae84eda49
CRs-fixed: 2268757
2018-06-28 03:10:58 -07:00
Bala Venkatesh
5479cf853f qcacld-3.0: Skip CAC and ignore radar indication for SAP
If STA is already connected on DFS channel and SAP is going to start
on the same channel then skip the CAC for SAP.
If STA and SAP sessions are already operating on same DFS channel,
then ignore radar indication received on SAP interface.

CRs-Fixed: 2130000
Change-Id: Ife0ab6979a07c8773001a43f5a30c9a555dab37a
2018-06-28 03:10:54 -07:00
Anurag Chouhan
47cb171622 qcacld-3.0: Fix compilation error for LE targets
Fix compilation errors for the LE target.

Change-Id: Id6e6d88fba3c70ee0f680a19dfa0c1ab29e34a02
2018-06-28 03:10:51 -07:00
nshrivas
db1d88da3e Release 5.2.0.85U
Release 5.2.0.85U

Change-Id: I3cf48ca415ebc511dce22295585a289c7e128291
CRs-Fixed: 774533
2018-06-27 22:16:37 -07:00
Varun Reddy Yeturu
363809c17a qcacld-3.0: Set disconnection in progress after starting disconnect
Currently, discon_in_progress flag is set in SME from HDD when
there is a disconnection request. But after setting the flag it
may wait for any on-going roaming to complete.Doing this may
unnecessarily stop the on-going roaming process. Hence set the
flag after completing the wait time and during the actual time
when the disconnection is about to be started in SME layer.

Change-Id: Ie91049ef2e385ff86d8aa6881799caf432a7e8a5
CRs-Fixed: 2266432
2018-06-27 22:16:37 -07:00
nshrivas
c024ebf15a Release 5.2.0.85T
Release 5.2.0.85T

Change-Id: I092d16b10f8521a8ae3dad92c2a6f54a1dd92bcc
CRs-Fixed: 774533
2018-06-27 18:58:39 -07:00
Jeff Johnson
ec56395f88 qcacld-3.0: Pass correct pointer type to mac_open()
In cds_open() the call to mac_open() currently passes a pointer to the
gp_cds_context->mac_context field. This is a void * field but
mac_open() expects a mac_handle_t * (aka tHalHandle *). This currently
compiles because mac_handle_t is itself a void *. But in the future
the underlying type of mac_handle_t will change, so pass a pointer to
an object of the correct type to mac_open().

Change-Id: Ie3e54c5288bc7d1e9287f30d997b005a5c8dc2ef
CRs-Fixed: 2268813
2018-06-27 18:58:38 -07:00
Jeff Johnson
a67929a3a0 qcacld-3.0: Correctly call sme scan APIs from rrm
The sme scan APIs sme_scan_get_result(), sme_scan_result_get_first(),
sme_scan_result_get_next() all take a mac_handle_t (aka tHalHandle) as
the first parameter. However in sme_rrm_send_scan_result() currently a
tpAniSirGlobal is being passed. Even though these ultimately reference
the same structure, an upcoming change will enforce type safety so
update the code to pass a parameter of the correct type.

Change-Id: I83e585bc91cbd9eeab5ecdeae0274196c98f3b4f
CRs-Fixed: 2268812
2018-06-27 18:58:34 -07:00
Jeff Johnson
c18469b4c7 qcacld-3.0: Correctly call sme cfg APIs
The sme cfg APIs sme_cfg_get_int(), sme_cfg_set_int(),
sme_cfg_get_str(), and sme_cfg_set_str() all take a mac_handle_t (aka
tHalHandle) as the first parameter. However in some cases the caller
is actually passing a tpAniSirGlobal. Even though these ultimately
reference the same structure, an upcoming change will enforce type
safety so update the bad callers to pass a parameter of the correct
type.

Change-Id: I7f602c2c6c25f15efe239cb1ba2c0c8e5bfd3e0a
CRs-Fixed: 2268811
2018-06-27 18:58:31 -07:00
Jeff Johnson
ff26c61989 qcacld-3.0: Fix csr_set_channels() context param
Currently csr_set_channels() takes a tHalHandle context param.
However csr is internal to the UMAC, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: Idf260cce60cd436ac871b4df3620cf1baf2b06c3
CRs-Fixed: 2268810
2018-06-27 18:58:27 -07:00
Jeff Johnson
0c4f48175e qcacld-3.0: Correctly call sme_get_rssi_snr_by_bssid()
Currently csr_dump_connection_stats() passes a tpAniSirGlobal to
sme_get_rssi_snr_by_bssid() but a tHalHandle is expected, so correct
the call to pass the correct parameter.

Change-Id: I51216e2636a88fea30b007dcc5eee95000cafe60
CRs-Fixed: 2268809
2018-06-27 18:58:23 -07:00
Jeff Johnson
c074933e90 qcacld-3.0: Fix bad csr_parse_bss_description_ies() typecast
In csr_roam_call_callback() there is a call to
csr_parse_bss_description_ies() where the MAC context is typecast to
tHalHandle as part of the function call. However this typecast is
incorrect since csr_parse_bss_description_ies() expects to get a MAC
context. Due to the manner in which tHalHandle is defined this does
not current cause a build issue, but an upcoming change will enforce
type checking so update this call to remove the inappropriate
typecasts.

Change-Id: I16e1f33e6f00ed1c610511a60f5974f0f0d71cd5
CRs-Fixed: 2268807
2018-06-27 18:58:20 -07:00
Jeff Johnson
ed3de52ce5 qcacld-3.0: Correctly call sme_rrm_neighbor_report_request()
Currently sme_neighbor_report_request() passes a tHalHandle to
sme_rrm_neighbor_report_request(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: I4a9ba52ef0a6e345d784937f645cf926bebf8919
CRs-Fixed: 2268806
2018-06-27 18:58:16 -07:00
Jeff Johnson
46841a5e1c qcacld-3.0: Correctly call sme_ft_open()/close()
Currently csr passes a tpAniSirGlobal to sme_ft_open() and
sme_ft_close() but a tHalHandle is expected, so correct the calls to
pass the correct parameter.

Change-Id: I1b33aff2aa9f9ca09384e643aad4e36e79c52af3
CRs-Fixed: 2268804
2018-06-27 18:58:13 -07:00
Jeff Johnson
1d3f867e4d qcacld-3.0: Correctly call csr_scan_flush_selective_result()
Currently sme_scan_flush_p2p_result() passes a tHalHandle to
csr_scan_flush_selective_result(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: Ibee01bb0606fc3d8a294b455f09c76823b8043bc
CRs-Fixed: 2268803
2018-06-27 18:58:09 -07:00
Jeff Johnson
a1a36512c3 qcacld-3.0: Correctly call csr_scan_flush_result()
Currently sme_scan_flush_result() passes a tHalHandle to
csr_scan_flush_result(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: I618ed5e16752eb6910060389f7c645b4e9ef5c83
CRs-Fixed: 2268802
2018-06-27 18:58:06 -07:00
Jeff Johnson
1b56f6bfc9 qcacld-3.0: Correctly call csr_scan_get_result_for_bssid()
Currently sme_scan_get_result_for_bssid() passes a tHalHandle to
csr_scan_get_result_for_bssid(), but a tpAniSirGlobal is expected, so
correct the call to pass the correct parameter.

Change-Id: I7fd7c06f320e14278cb621415bc4631d9c83b5d4
CRs-Fixed: 2268801
2018-06-27 18:58:03 -07:00
nshrivas
d84ba4f880 Release 5.2.0.85S
Release 5.2.0.85S

Change-Id: Ic433393d867eeccef6e58daf7ca524f8f510a7a5
CRs-Fixed: 774533
2018-06-27 17:41:09 -07:00
Dustin Brown
2946296b04 qcacld-3.0: Check pdevs in hdd_check_for_leaks
Before checking for other kinds of resources leaks, check to ensure all
objmgr pdevs have been properly freed.

Change-Id: I026a9e7497f593ba1d69fe220bbe0a33828811d3
CRs-Fixed: 2267144
2018-06-27 17:41:09 -07:00
Himanshu Agarwal
170b497c19 qcacld-3.0: Avoid beacon parsing on channels not in scan list for ACS
When STA is already up on some 2.4Ghz channel and SAP needs to be started
on some 5Ghz channel through ACS, scan channel list contains only 5Ghz
channels. But scan results contains beacons on STA 2.4Ghz channel as well
which is getting parsed contributing to bsscount and rssi on that 2.4Ghz
channel which should not be the scenario as bsscount should be 0 and rssi
should be -100 on this 2.4Ghz channel as it is not present in the scan
channel list sent by HOST to fw.

Avoid beacon parsing on all the channels other than the channels present
in ACS scan channel list.

Change-Id: I85ab967386b19748c32e98a7e468d471e31f9b9a
CRs-Fixed: 2266170
2018-06-27 17:41:06 -07:00
nshrivas
3bd8c70606 Release 5.2.0.85R
Release 5.2.0.85R

Change-Id: I45ceb260feee7a76a3d758994a0f9b4d98c5bbd7
CRs-Fixed: 774533
2018-06-27 16:14:15 -07:00
Venkata Sharath Chandra Manchala
27a4296314 qcacld-3.0: Enable QCA6390
1. Enable emulation flags for QCA6390 bring up.
2. Select QCA6390 header files based on
   CONFIG_QCA6390_11AX flag.
3. Compile API's based on QCA_WIFI_QCA6390 flag.

Change-Id: I6330c734587ef772b25e722762e194eadd043d28
CRs-Fixed: 2259314
2018-06-27 16:14:14 -07:00
Krunal Soni
8a06d83ca8 qcacld-3.0: Don't process scan command when vdev delete is in process
When driver performs vdev delete operation, it changes vdev state
to logically deleted or physically deleted only after receiving vdev
delete command's response from FW. In between (sending vdev del req
and receiving vdev del rsp) if thread gets pre-empted and other thread
start posting command (like scan command) to process then it could
lead to use after free scenario.

Notify scan component when vdev delete is intiated and let scan
component record that in to vdev's scan private object as one of the
flags.

check this flag before processing the scan command.

CRs-Fixed: 2265542
Change-Id: Id884d6c42cd8766e70835808863632e096158487
2018-06-27 16:14:12 -07:00
nshrivas
ccd1c74461 Release 5.2.0.85Q
Release 5.2.0.85Q

Change-Id: If172edd90bce7b613ef75dc007464074ab608373
CRs-Fixed: 774533
2018-06-27 12:04:46 -07:00
nshrivas
878a1eddc4 Release 5.2.0.85P
Release 5.2.0.85P

Change-Id: I8aad2106cffcac453f91e8930d30d70a77505a90
CRs-Fixed: 774533
2018-06-27 07:24:30 -07:00
nshrivas
b7dbf88839 Release 5.2.0.85O
Release 5.2.0.85O

Change-Id: I5006cdd89580a8a2961e08cb550dd85bba3110bb
CRs-Fixed: 774533
2018-06-27 05:32:51 -07:00
nshrivas
efd997de07 Release 5.2.0.85N
Release 5.2.0.85N

Change-Id: Ife92303612d380f0b764b14d6fe00a47a3abc018
CRs-Fixed: 774533
2018-06-27 03:44:42 -07:00
Min Liu
ef92ef599c qcacld-3.0: Fix assert when netdev is going down
Move destruction of blocked_scan_request_q and related lock
from __hdd_netdev_notifier_call to hdd_close_adapter
for the former one might be invoked for more than once and
could cause issues.

Change-Id: Ifb62750a09a2dcca381217a41280ad943942ee35
CRs-Fixed: 2267481
2018-06-27 03:44:38 -07:00
Jeff Johnson
1652836585 qcacld-3.0: Use mac_handle_t in wlan_hdd_main
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_main to use the new naming.

Change-Id: If9ddbe0935d859d4c71dc11576cd7062a715b3e9
CRs-Fixed: 2267227
2018-06-27 03:44:35 -07:00
Jeff Johnson
3f1b15c421 qcacld-3.0: Use mac_handle_t in wlan_hdd_he (2)
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Subsequently change
"qcacld-3.0: Use mac_handle_t in wlan_hdd_he" transitioned wlan_hdd_he
to use the new naming. But subsequently a new instance of the old
naming was added by change "qcacld-3.0: separate HE caps per band" so
replace that new instance.

Change-Id: Id450debfd30f54df050be7d02543581ce46eb5a5
CRs-Fixed: 2268167
2018-06-27 03:44:32 -07:00
Jeff Johnson
adf800d07e qcacld-3.0: Pass correct param to csr_scan_get_result()
In sme_scan_get_result() when calling csr_scan_get_result() a
tHalHandle is currently being passed as the context parameter.
csr_scan_get_result() is expecting a tpAniSirGlobal so pass the
correct parameter.

Change-Id: I6b704f4e1074b15cfbe86a539ac2dee60789e9e0
CRs-Fixed: 2268183
2018-06-27 03:44:27 -07:00
Jeff Johnson
9d11885da4 qcacld-3.0: Fix csr_is_mcc_channel() context param
Currently csr_is_mcc_channel() takes a tHalHandle context param.
However csr is internal to the UMAC, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I4feecd5dbc056929ee406e8794e2b284b0b40f21
CRs-Fixed: 2268182
2018-06-27 03:44:24 -07:00
nshrivas
56ea3a46c5 Release 5.2.0.85M
Release 5.2.0.85M

Change-Id: I7df0090e060a8e82f7612aaaa555fe096841ddd0
CRs-Fixed: 774533
2018-06-27 02:11:34 -07:00
Nirav Shah
13ecbedb75 qcacld-3.0: Fix compilation issue for legacy flow control
Fix compilation issue for legacy flow control
(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY flag).

Change-Id: I2462d5b689ad6ea027411ff56c7550ab6036c0f4
CRs-Fixed: 2267924
2018-06-27 02:11:34 -07:00
Yeshwanth Sriram Guntuka
4fe30bdde0 qcacld-3.0: Send mode change event after addkey
On STA connection, mode change event is sent to
userspace after association is complete. This causes
delay in processing of M1 frame at supplicant due to
latency associated with nl80211_get_wiphy_index
function as part of processing mode change vendor event.

Fix is to send mode change event for STA after key
is added.

Change-Id: Id403bfdd26ed3a47449ba3f2967f4b4322ad5da6
CRs-Fixed: 2257117
2018-06-27 02:11:30 -07:00
Nirav Shah
74be384d1c qcacld-3.0: Fix compilation error to enable genoa pcie
Fix compilation error while enabling QCA_WIFI_3_0_ADRASTEA
and CONFIG_CNSS2 flag for Genoa.

Change-Id: Ic44da39377f722c19edcd291d1b35fac1fee9462
CRs-Fixed: 2267927
2018-06-27 02:11:24 -07:00
nshrivas
c959b05942 Release 5.2.0.85L
Release 5.2.0.85L

Change-Id: I46713bbde3f5ecd500a5398ae987de29478db158
CRs-Fixed: 774533
2018-06-27 00:17:48 -07:00
Jeff Johnson
c6ab08f3cd qcacld-3.0: Fix csr_validate_any_default() context param
Currently csr_validate_any_default() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I6bbfe2329e776e1438dca06ad7642cb870796ff6
CRs-Fixed: 2268181
2018-06-27 00:17:48 -07:00
Jeff Johnson
0589eec8e3 qcacld-3.0: Fix csr_is_wapi_match() context param
Currently csr_is_wapi_match() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I0befea1f804204bc5589d33cf2d5fe6fd5126bf1
CRs-Fixed: 2268180
2018-06-27 00:17:44 -07:00
Jeff Johnson
d80e9159e4 qcacld-3.0: Fix csr_get_wapi_information() context param
Currently csr_get_wapi_information() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I54004093c729add183fc3e02033d78f829f47241
CRs-Fixed: 2268179
2018-06-27 00:17:40 -07:00
Jeff Johnson
353650ea71 qcacld-3.0: Fix csr_get_rsn_information() context param
Currently csr_get_rsn_information() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. So update the API to expect tpAniSirGlobal.

Change-Id: I29ad553360eddcf2b990b83bb0d1418d744a85ec
CRs-Fixed: 2268178
2018-06-27 00:17:35 -07:00
Jeff Johnson
44d0c09a2e qcacld-3.0: Fix csr_is_rsn_match() context param
Currently csr_is_rsn_match() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. So update the API to expect tpAniSirGlobal.

Change-Id: I33a73505039716a38ea94c19d12a0a3ce390b0b3
CRs-Fixed: 2268177
2018-06-27 00:17:31 -07:00
Jeff Johnson
95f0705a72 qcacld-3.0: Fix bad csr_neighbor_middle_of_roaming() typecasts
In both csr_create_roam_scan_offload_request() and
csr_neighbor_roam_indicate_disconnect() there is a call to
csr_neighbor_middle_of_roaming() where the MAC context is typecast to
tHalHandle as part of the function call. However these typecasts are
incorrect since csr_neighbor_middle_of_roaming() expects to get a MAC
context. Due to the manner in which tHalHandle is defined this does
not current cause a build issue, but an upcoming change will enforce
type checking so update these calls to remove the inappropriate
typecasts.

Change-Id: I7eeb3eb6b4502c1934a8cffdd1d7372f93ee8ccb
CRs-Fixed: 2268176
2018-06-27 00:17:27 -07:00
nshrivas
5fd702c44e Release 5.2.0.85K
Release 5.2.0.85K

Change-Id: I6b75a8c48c10668c2817d91323f448cbca73b551
CRs-Fixed: 774533
2018-06-26 22:42:52 -07:00
Jeff Johnson
78334bd8b0 qcacld-3.0: Fix csr_get_dot11_mode() context param
Currently csr_get_dot11_mode() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. In addition the only caller is already passing
the real context pointer type so update the API to expect
tpAniSirGlobal.

Change-Id: I4f57252f0c94949b3219b5c07143d2545c659871
CRs-Fixed: 2267444
2018-06-26 22:42:51 -07:00
Jeff Johnson
8390fe23d8 qcacld-3.0: Fix lim_tx_complete() signature
lim_tx_complete() is currently defined to take a tHalHandle as the
first param. However the generic signature of a TX callback function
specifies that the first param should be a void *context. This
currently compiles because tHalHandle is defined to be a void *, but
this will soon be changed, so update lim_tx_complete() to explicitly
use a void *context.

Change-Id: I421e8acb25beed23d2f3803380a46db33b6f0964
CRs-Fixed: 2267443
2018-06-26 22:42:46 -07:00
Jeff Johnson
82664a6294 qcacld-3.0: Pass correct param type via QoS callback
The QoS callback is supposed to pass a mac_handle_t (aka tHalHandle)
to HDD, but in most cases what is actually passed is a tpAniSirGlobal.
Even though these ultimately reference the same structure, an upcoming
change will enforce type safety so update the bad callers to pass a
parameter of the correct type.

Change-Id: I5913c3cf577606f8c207b1e40897b8cbe681de48
CRs-Fixed: 2267442
2018-06-26 22:42:42 -07:00
Jeff Johnson
64c2b55bce qcacld-3.0: Correctly call sme_get_current_roam_state()
Function sme_get_current_roam_state() takes a mac_handle_t (aka
tHalHandle) as the first parameter. However in some cases the caller
is actually passing a tpAniSirGlobal. Even though these ultimately
reference the same structure, an upcoming change will enforce type
safety so update the bad callers to pass a parameter of the correct
type.

Change-Id: I3e17de9656fd83598cfd35b63843dd3f7b25d072
CRs-Fixed: 2267441
2018-06-26 22:42:37 -07:00
Jeff Johnson
8131a9d1d9 qcacld-3.0: Fix sme_process_ready_to_suspend() context param
Currently sme_process_ready_to_suspend() takes a tHalHandle context
param.  However this is a static internal function, and hence it
should be using the "real" context pointer type tpAniSirGlobal instead
of the opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal (which is what is already being passed by
sme_process_msg()).

Change-Id: Ic2f28613ce0f4df0a104aaa1ab23b311abe5e334
CRs-Fixed: 2267440
2018-06-26 22:42:33 -07:00
Jeff Johnson
bfc58a1000 qcacld-3.0: Fix sme_ibss_peer_info_response_handler() param
Currently sme_ibss_peer_info_response_handler() takes a tHalHandle
context param.  However this is a static internal function, and hence
it should be using the "real" context pointer type tpAniSirGlobal
instead of the opaque reference tHalHandle, so update the API to
expect tpAniSirGlobal (which is what is already being passed by
sme_process_msg()).

Change-Id: I553b485f0e54f173d31e8931f3bda6bba8ede77d
CRs-Fixed: 2267439
2018-06-26 22:42:28 -07:00
Jeff Johnson
24e65b5f76 qcacld-3.0: Fix sme_tsm_ie_ind() context param
Currently sme_tsm_ie_ind() takes a tHalHandle context param.  However
this is a static internal function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal
(which is what is already being passed by sme_process_msg()).

Change-Id: Ica6add4b81ad7ffd664ee6e46f2e8b43a731771f
Crs-Fixed: 2267438
2018-06-26 22:42:24 -07:00
Jeff Johnson
06c447fcb5 qcacld-3.0: Fix sme_ft_send_update_key_ind() context param
Currently sme_ft_send_update_key_ind() takes a tHalHandle context
param.  However this is a static internal function, and hence it
should be using the "real" context pointer type tpAniSirGlobal instead
of the opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal (which is what is already being passed by
sme_ft_update_key()).

Change-Id: I5309a6f9125684bc0d7766d5839f2296150b6834
CRs-Fixed: 2267437
2018-06-26 22:42:20 -07:00
nshrivas
c99eff17c7 Release 5.2.0.85J
Release 5.2.0.85J

Change-Id: I9b85f3d8ea34fa77ec171ec173f1e406e04530a1
CRs-Fixed: 774533
2018-06-26 20:11:38 -07:00
Krunal Soni
da0e1e7d34 qcacld-3.0: Add cmd_id as unique number to legacy sme command
Current driver keeps cmd_id as 0 for all non-scan commands which
makes serialization module's logic more complex in order to identify
between duplicate commands.

Add unique cmd_id and attach it to each legacy sme command to make
serialization module's logic easy to distinguish between duplicate
commands.

CRs-Fixed: 2267418
Change-Id: Id2ccb435137061c963120822326fe5b90f857eb7
2018-06-26 20:11:38 -07:00
Jeff Johnson
3aa54d42ef qcacld-3.0: Remove dead code in start pending ACS callback
In wlan_hdd_cfg80211_start_pending_acs() the result of calling
container_of() is NULL checked. The container of a work_struct is
always a valid pointer, so the NULL check is unnecessary. Remove this
resulting dead code.

Change-Id: Iac4d48037ee27bc5de4c5fbc7f91188d837c6d49
CRs-Fixed: 2267075
2018-06-26 20:11:34 -07:00
Bala Venkatesh
f2a75c0522 qcacld-3.0: Allow scanning on DFS channel if sta+sap scc is enabled
Allow scanning on DFS channel if sta+sap scc on dfs channel is
enabled.

CRs-Fixed: 2163490
Change-Id: I7bb94ed211062ff0f0f0ca93c765d51f26e28ce2
2018-06-26 20:11:31 -07:00
nshrivas
862915744c Release 5.2.0.85I
Release 5.2.0.85I

Change-Id: I701617fd3ec98841b1408ec1dbfe0863ac5bc0c1
CRs-Fixed: 774533
2018-06-26 18:53:22 -07:00
Vignesh Viswanathan
ba40f4b509 qcacld-3.0: Reset fw_peer_count for HO failure during del BSS
Currently fw_peer_count for HO failure is done in wma_roam_ho_fail_handler
which can lead to improper reset of the fw_peer_count if a HDD triggered
disassoc is in progress for the same peer leading to fw_peer_count going
to -1.

Reset the fw_peer_count for HO failure case in wma_delete_bss_ho_fail
API as this is called from the CSR/LIM for handling HO failure as
part of CSR disconnect.

Change-Id: I1526757b085086ca51eef9b9cca0ea757ed20b61
CRs-Fixed: 2266337
2018-06-26 18:53:21 -07:00
Nirav Shah
99923a8330 qcacld-3.0: Map all module logs to per-level log APIs
Map all module level log APIs to per-level log APIs
to compile out specific log level if required.

Change-Id: Icfcc28fb592ee99704d8fb23bc3cb45b6e4c9f53
CRs-Fixed: 2266718
2018-06-26 18:53:18 -07:00
nshrivas
fa4f48a18b Release 5.2.0.85H
Release 5.2.0.85H

Change-Id: I778a35079509d6a5856cb970af8626f3b64fd7b0
CRs-Fixed: 774533
2018-06-26 17:36:00 -07:00
Bala Venkatesh
867d411eea qcacld-3.0: Ignore CSA if the channel is DFS or disabled
If MCC to SCC switch is enabled, SAP is active and CSA
received for STA interface, then ignore the CSA if channel
is DFS/disabled.

CRs-Fixed: 2266838
Change-Id: I98b8d957766358ea86cc9f50339725cf4bf0038b
2018-06-26 17:36:00 -07:00
nshrivas
6d4cab4b01 Release 5.2.0.85G
Release 5.2.0.85G

Change-Id: I9991efbabd8e3fac7e4d7f646d1a7ba8ded1c2bd
CRs-Fixed: 774533
2018-06-26 01:35:55 -07:00
Ajit Pal Singh
a9d5382e9a qcacld-3.0: Check per vdev limits for selecting discard frames
When HL Flow Control is enabled, check for per vdev limits for making
a decision on whether frames should be discarded.

Change-Id: Ifde5f763d253eb644f97afeab9e4e1365c23e672
CRs-fixed: 2236321
2018-06-26 01:35:54 -07:00
Ajit Pal Singh
d6c08f2f0e qcacld-3.0: Add function to set vdev tx_desc limit
1) Add ol txrx function to set TX descriptor limits for a
vdev.
2) Set the TX descriptor limits for STA and AP mode.

Change-Id: Ie9b1e52c3aff05db99ba3748a94792cc8116cdca
CRs-fixed: 2236321
2018-06-26 01:35:51 -07:00
Ajit Pal Singh
aa4a47fedb qcacld-3.0: Restart netdev queues when tx_desc get free
1) Restart high priority netdev queue when tx descriptors get freed
   and the vdev->tx_desc_count < vdev->tx_desc_limit.
2) Restart normal priority netdev queues when tx descriptors get freed
   and the vdev->tx_desc_count < vdev->queue_start_th.

Change-Id: I99cc159289bc31558294e02cd9213a18472563f6
CRs-fixed: 2236321
2018-06-26 01:35:47 -07:00
Ajit Pal Singh
851a777ffc qcacld-3.0: Update OS queue status in TXRX module
Add function: ol_txrx_set_vdev_os_queue_status() to update
OS queue stop/start status in TXRX module.
Also call cdp_hl_fc_set_os_queue_status() from 'flow control
resume timer' to update OS queue status in TXRX module.

Change-Id: I03260985a48084bc523a3814c93c0e6b213e1970
CRs-fixed: 2236321
2018-06-26 01:35:42 -07:00
Ajit Pal Singh
5bcf68a52a qcacld-3.0: Stop netdev queues when limits reach
1) Stop non priority netdev queues when tx-q stop threshold reaches.
2) Stop priority queue when tx_desc_limit reached.

Change-Id: Idcacc19b6d47dd665bb54f210d6da292cbe5af8d
CRs-fixed: 2236321
2018-06-26 01:35:38 -07:00
Ajit Pal Singh
5d269618d5 qcacld-3.0: Populate legacy flow control ops for HL
1) Populate legacy flow control ops 'cdp_lflowctl_ops'
for HL netdev flow control.
2) Also call cdp_hl_fc_register() to register HL flow control
callback.
3) Increase number of netdev queues to 5

Change-Id: I6bdb015b3325e54386f2aad093c89f6f782c24ed
CRs-fixed: 2236321
2018-06-26 01:35:35 -07:00
nshrivas
6e18516d85 Release 5.2.0.85F
Release 5.2.0.85F

Change-Id: I12e05da166f2b66798c31609627f372b69a7d6cc
CRs-Fixed: 774533
2018-06-25 23:52:53 -07:00
Jeff Johnson
d549efa633 qcacld-3.0: Use mac_handle_t in wlan_hdd_ioctl
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ioctl to use the new naming.

Change-Id: I5b6a062e02dc6db387c0a4e4cc363cdac7013f45
CRs-Fixed: 2267221
2018-06-25 23:52:52 -07:00
nshrivas
f8b05e2874 Release 5.2.0.85E
Release 5.2.0.85E

Change-Id: I90bdd714fad2cf6c4eaf5608ecdeba98e56cdf5d
CRs-Fixed: 774533
2018-06-25 22:31:19 -07:00
Jeff Johnson
89a0c74c9b qcacld-3.0: Use mac_handle_t in wlan_hdd_hostapd
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_hostapd to use the new naming.

Change-Id: I63b3bc8017de7f73a09599f9e8c9ef41009d6bc6
CRs-Fixed: 2267151
2018-06-25 22:31:19 -07:00
nshrivas
56a38b34f2 Release 5.2.0.85D
Release 5.2.0.85D

Change-Id: I31217d7700e5be4ffb3828967b8e97bad3930cfd
CRs-Fixed: 774533
2018-06-25 21:19:03 -07:00
Jeff Johnson
2954dedb2d qcacld-3.0: Use mac_handle_t in wlan_hdd_power
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_power to use the new naming.

Change-Id: I6729766eda0b6dc31d62028a8552c9fa9d7ce4f0
CRs-Fixed: 2267218
2018-06-25 21:19:03 -07:00
nshrivas
ba7feddb50 Release 5.2.0.85C
Release 5.2.0.85C

Change-Id: Id4ece5014f266403e3414a21b098d7955a66250b
CRs-Fixed: 774533
2018-06-25 19:54:02 -07:00
Jeff Johnson
cbbc78f93c qcacld-3.0: Use mac_handle_t in wlan_hdd_wmm
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wmm to use the new naming.

Change-Id: I225c7b62b2b104941564856b3ed1ee20e3a8e1cd
CRs-Fixed: 2267123
2018-06-25 19:54:01 -07:00
Jeff Johnson
34fc63ab8d qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg80211
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg80211 to use the new naming.

Change-Id: Ia9a7014db052c46ee16d2cb834b46a0b7afafeee
CRs-Fixed: 2267223
2018-06-25 19:53:58 -07:00
Jeff Johnson
cec6e923a5 qcacld-3.0: Use mac_handle_t in wlan_hdd_wext
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wext to use the new naming.

Change-Id: I3cabec634252453b33c8f480ba785cc739e872df
CRs-Fixed: 2267115
2018-06-25 19:53:55 -07:00
nshrivas
1b32bad189 Release 5.2.0.85B
Release 5.2.0.85B

Change-Id: Id6e7898edce0d6afea6801e37721c99a9b5b6af8
CRs-Fixed: 774533
2018-06-25 15:54:53 -07:00
Dustin Brown
662f48b2a2 qcacld-3.0: Initialize all completion vars for SAP vdevs
Because a SAP vdev can be repurposed as a station adapter, there is a
case where a station vdev that was created as a SAP vdev will try to
access uninitialized completion variables. As these members are directly
attached to the adapter struct, always initialize them, regardless of
the vdev type at time of creation.

Change-Id: Ifc14ec677ffa76551e55fe982a58df21d430d6c6
CRs-Fixed: 2266419
2018-06-25 15:54:53 -07:00
nshrivas
a19536fb16 Release 5.2.0.85A
Release 5.2.0.85A

Change-Id: Ifd268f2dd9e6771bba5b60966cc0d18f4bece11b
CRs-Fixed: 774533
2018-06-25 14:12:48 -07:00
Nirav Shah
23054cfb6d qcacld-3.0: Use only 2 copy engine for RFS in Genoa
Use only 2 copy engine channels for RFS in QCN7605
(Genoa) if IPA is enabled.

Change-Id: Iabc1c21960807c707b2c9c2ad66d2e426dcb38ab
CRs-Fixed: 2265172
2018-06-25 14:12:47 -07:00
Abhinav Kumar
db3c6f57e3 qcacld-3.0: Fix out-of-bounds access in lim_process_assoc_req_frame
Currently the function lim_process_assoc_req_frame uses frame_len
without validation to parse the IE buffer which could lead to
out-of-bounds memory access if the frame_len is less than or
equal to LIM_ASSOC_REQ_IE_OFFSET(4).

Add check to validate the frame_len with LIM_ASSOC_REQ_IE_OFFSET
before sending (frame_len - LIM_ASSOC_REQ_IE_OFFSET) to
cfg_get_vendor_ie_ptr_from_oui to parse only the IE buffer.

Change-Id: Iaa9e8db4a2605169c9ad3904878a2e626eb6de8b
CRs-Fixed: 2259707
2018-06-25 14:12:45 -07:00
nshrivas
41721b79f8 Release 5.2.0.85
Release 5.2.0.85

Change-Id: I4d3de98263738989c2f206923d8f2dfac147c807
CRs-Fixed: 774533
2018-06-25 12:41:08 -07:00
Jeff Johnson
13386da460 qcacld-3.0: Fix csr_is_pmf_capabilities_in_rsn_match() param
Currently csr_is_pmf_capabilities_in_rsn_match() takes a tHalHandle
context param.  However csr is internal to the UMAC, and hence it
should be using the "real" context pointer type tpAniSirGlobal instead
of the opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal.

Change-Id: Ie13e86dac694bc1c17305f12aeb817387cc7c4bd
CRs-Fixed: 2266509
2018-06-25 12:41:07 -07:00
Jeff Johnson
3f9d9fbcd0 qcacld-3.0: Fix csr_is_bss_description_wme() context param
Currently csr_is_bss_description_wme() takes a tHalHandle context
param.  However csr is internal to the UMAC, and hence it should be
using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal.

Change-Id: I2812f57e57a06a71a81bee20773587fa99189e40
CRs-Fixed: 2266506
2018-06-25 12:41:04 -07:00
Jeff Johnson
2ef47449f6 qcacld-3.0: Fix sme_unprotected_mgmt_frm_ind() context param
Currently sme_unprotected_mgmt_frm_ind() takes a tHalHandle context
param.  However this is a static function, and hence it should be
using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalHandle, so update the API to expect
tpAniSirGlobal.

Change-Id: I552cade9adf0bdc7a9cf38c76cd8786548dc7011
CRs-Fixed: 2266505
2018-06-25 12:41:01 -07:00
Jeff Johnson
711fe948c4 qcacld-3.0: Fix param to rrm_change_default_config_param()
Currently in sme_update_config() the call to
rrm_change_default_config_param() is passing a mac_handle_t instead of
a tpAniSirGlobal. Change the call to pass the correct parameter.

Change-Id: I1490e3f491c1c8539acc0054343263366fb8bfca
CRs-Fixed: 2266503
2018-06-25 12:40:57 -07:00
Jeff Johnson
f86cac17cc qcacld-3.0: Pass correct param to sme_ps_start_uapsd()
Currently in multiple places calls to sme_ps_start_uapsd() are passing
a tpAniSirGlobal instead of a mac_handle_t. Change these calls to pass
the correct parameter.

Change-Id: I9cd30be8eb237423cb621b390be2bbc75ecebb92
CRs-Fixed: 2266502
2018-06-25 12:40:54 -07:00
nshrivas
d7e010020e Release 5.2.0.84Z
Release 5.2.0.84Z

Change-Id: I351b585ae121f7981b6cd57d0cf29964f733e29c
CRs-Fixed: 774533
2018-06-25 11:28:41 -07:00
Jeff Johnson
0a38afe444 qcacld-3.0: Pass correct param to sme_get_config_param()
Currently in sme_get_channel_bonding_mode5_g() and
sme_get_channel_bonding_mode24_g() the calls to sme_get_config_param()
are passing a tpAniSirGlobal instead of a tHalHandle. Change these
calls to pass the correct parameter.

Change-Id: I1fc1b357f96d29babc2bb8439b924fbd1fb74b62
CRs-Fixed: 2266455
2018-06-25 11:28:40 -07:00
nshrivas
74437a0b26 Release 5.2.0.84Y
Release 5.2.0.84Y

Change-Id: I4ac4b592eedb0c46e1358723c99b683b1d5703f8
CRs-Fixed: 774533
2018-06-25 10:02:21 -07:00
Bala Venkatesh
b39ed1597e qcacld-3.0: Update nw_type of pe session when switching channel
In peer assoc command, the phy mode of peer is updated based on
the nw_type of pe session. So this value should accordingly as per
the new channel.

Change-Id: Ib596cb343f239456aba688b2b5ea7b19b3034a66
CRs-Fixed: 2161043
2018-06-25 10:02:21 -07:00
Lin Bai
7d83a64f4c qcacld-3.0: Configure num_vdevs for FTM mode
Recent num_vdevs configuration change involved the regression,
that num_vdevs in FTM mode isn't configured, and default 0 interface
allowed. This is blocking FTM initialized.

Though no vdev required for FTM, here use INI configuration
to bypass check as well.

CRs-Fixed: 2266815
Change-Id: I019814fb2c37f1f9b5922545769761bed7a0da52
2018-06-25 10:02:16 -07:00
nshrivas
fd0d832ac8 Release 5.2.0.84X
Release 5.2.0.84X

Change-Id: I6589aa00deaa02a431a770c807267a754b7fcdbf
CRs-Fixed: 774533
2018-06-25 06:31:47 -07:00
Ashish Kumar Dhanotiya
e533f6cdf1 qcacld-3.0: Return success on same MAC address change
Currently if the set mac adderess command comes, driver is
returning failure if any of the interface is using the MAC
address given in the command.
Return success if the same MAC address is passed in the command
for the same interface which is using this MAC currently.

Change-Id: Iaab6109aa015b6be525eba2bacbe05c3c796e033
CRs-Fixed: 2266755
2018-06-25 06:31:47 -07:00
nshrivas
f80f39e026 Release 5.2.0.84W
Release 5.2.0.84W

Change-Id: I85db21dee3d4de4c0a2c0266533ddb0ee149e2b6
CRs-Fixed: 774533
2018-06-25 04:55:53 -07:00
Sriram Madhvapathi
b1a791c99a qcacld-3.0: Abstract SDIO block size
Do not tie up names with mailbox.
This results from SDIO HIF refactoring.
See qcacmn: I12bdf8b07350411093ba35071411525a8333cf93

Change-Id: I99184fbfc95a601f09dba5891098c35d5aa794c5
CRs-Fixed: 2252448
2018-06-25 04:55:52 -07:00
nshrivas
fab4696184 Release 5.2.0.84V
Release 5.2.0.84V

Change-Id: Ia33ccabfdc39b4d3d732951f3d8ddc47813d2135
CRs-Fixed: 774533
2018-06-24 16:10:03 -07:00
Hanumanth Reddy Pothula
04bad8fa9d qcacld-3.0: Resolve possible OOB issue while processing start_bss
Presently, while processing start_bss, after retrieving WPS IE from
the beacon frame, 15th byte of WPS IE is accessed to get WPS state,
without confirming IE length holds that much minimum length to access.

Before accessing 15th byte(WPS state) of WPS IE, make sure IE length
holds minimum length to access it.

Change-Id: Ic00c700a1fbf88183b8b2d834c9700b538700ce7
CRs-Fixed: 2239164
2018-06-24 16:10:03 -07:00
nshrivas
5f80f479e4 Release 5.2.0.84U
Release 5.2.0.84U

Change-Id: Ia08edc8816c64431851fd3f97c901cdecdce6c60
CRs-Fixed: 774533
2018-06-24 11:58:48 -07:00
Jeff Johnson
ac99e473cd qcacld-3.0: cds: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the cds folder.

Change-Id: I689e80fefa0068980a2bf78d2eff13d0892f8d95
CRs-Fixed: 2266521
2018-06-24 11:58:47 -07:00
nshrivas
3379facfc3 Release 5.2.0.84T
Release 5.2.0.84T

Change-Id: Ide6307a5fdb9c58fa025794ad2a4fa54558e4344
CRs-Fixed: 774533
2018-06-24 10:16:59 -07:00
Jeff Johnson
6dca9b3421 qcacld-3.0: Use mac_handle_t in wlan_hdd_clear_link_layer_stats
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Subsequently change
"qcacld-3.0: Use mac_handle_t in wlan_hdd_stats" transitioned
wlan_hdd_stats to use the new naming. But while that change was in the
pipeline a new instance of tHalHandle was added. So now transition the
instance recently added to wlan_hdd_clear_link_layer_stats().

Change-Id: I2d17c729a92eb5c545b829fc6699e34233116f94
CRs-Fixed: 2266545
2018-06-24 10:16:58 -07:00
nshrivas
bc2e6ec14e Release 5.2.0.84S
Release 5.2.0.84S

Change-Id: Ic9e02629b3d34d2846094ed7519fcf0c8a1e7ade
CRs-Fixed: 774533
2018-06-23 22:10:18 -07:00
Wu Gao
ae38aeda71 qcacld-3.0: Do not clear session id
No valid channel found when DUT as P2P GO and radar signal detected,
stop ap and then up layer start ap again, session id of adapter
changed to invalid since session id of sap context is invalid and
passed to adapter in hdd_hostapd_sap_event_cb with event
eSAP_START_BSS_EVENT. So, do not clear session id of sap context for
stopping ap due to invalid channel case.

Change-Id: I3d60ae9b4ec8223dff26ffd9078b31e02bf29ba2
CRs-Fixed: 2257932
2018-06-23 22:10:18 -07:00
nshrivas
c3c01d8dd6 Release 5.2.0.84R
Release 5.2.0.84R

Change-Id: I7577f965875b9ee1471fcf875a5dd72a31e8b5ea
CRs-Fixed: 774533
2018-06-23 14:19:42 -07:00
Jeff Johnson
daa7cd9475 qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg to use the new naming.

Change-Id: Ib3a9d26cb8966b52b71e97d7b9fb8f2cca9ed916
CRs-Fixed: 2266499
2018-06-23 14:19:41 -07:00
Jeff Johnson
792c83bd6c qcacld-3.0: Use mac_handle_t in wlan_hdd_ext_scan
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ext_scan to use the new naming.

Change-Id: I69f8a76ae798ed00953727b7687f53506acd22d3
CRs-Fixed: 2266498
2018-06-23 14:19:37 -07:00
nshrivas
8da43a2f3c Release 5.2.0.84Q
Release 5.2.0.84Q

Change-Id: Icc80583265a7f1c8fe708fca3dd4cb04fb40a643
CRs-Fixed: 774533
2018-06-23 12:33:45 -07:00
Jeff Johnson
d3c51e9d2d qcacld-3.0: sys: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac sys folder.

Change-Id: Ia1d4a570b7c79ea2bd0ad5f82d287c48f73051b9
CRs-Fixed: 2266497
2018-06-23 07:04:39 -07:00
nshrivas
c00e9f9eb6 Release 5.2.0.84P
Release 5.2.0.84P

Change-Id: I35c714906bf33ff1e6b0a92a98176a1884b59d7d
CRs-Fixed: 774533
2018-06-23 03:47:14 -07:00
Jeff Johnson
4d243e60c7 qcacld-3.0: dph: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac dph folder.

Change-Id: I150e024f9b764547267dc8b4673a95e3366c6b70
CRs-Fixed: 2266147
2018-06-22 22:25:15 -07:00
nshrivas
6294193055 Release 5.2.0.84O
Release 5.2.0.84O

Change-Id: I9c107f1d4816daa370ef4766105e21bc6f4d912a
CRs-Fixed: 774533
2018-06-22 22:19:14 -07:00
Jeff Johnson
a9089303f4 qcacld-3.0: pe: nan: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac pe/nan folder.

Change-Id: I762d963f5c19f797b9fe0bc933368d4d700de7b3
CRs-Fixed: 2266394
2018-06-22 22:19:13 -07:00
Jeff Johnson
f7187f24e1 qcacld-3.0: Use mac_handle_t in wlan_hdd_assoc
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_assoc to use the new naming.

Change-Id: I33e58d6c51124036d00e37fa3018379b7f99105a
CRs-Fixed: 2266433
2018-06-22 22:19:09 -07:00
nshrivas
0203c0edf6 Release 5.2.0.84N
Release 5.2.0.84N

Change-Id: I1d19f01ce155cecc5ea8f5831fdfff8a2c2189eb
CRs-Fixed: 774533
2018-06-22 21:07:14 -07:00
Hanumanth Reddy Pothula
834f943961 qcacld-3.0: Report valid MCS index to upper layer
While processing get_station cfg operation, HDD is using Nss
value, which gets updated during association, to calculate data
rate. So, there is a possibility of driver to report invalid
MCS index to upper layer if association happens with Nss 2 and
when data transmission is happening at Nss 1 rate.

On receiving GET STATS response, calculate Nss value based upon
the current data rate received from firmware, and pass it to HDD,
so that HDD can use the same Nss value to report valid MCS index
to the upper layer.

Change-Id: I62f029d53149a4747f619027ce69ce65fb280b8d
CRs-Fixed: 2250993
2018-06-22 21:07:13 -07:00
Sandeep Puligilla
d7b48974fe qcacld-3.0: clean unused API csr_is_duplicate_bss_description
Clean unused api csr_is_duplicate_bss_description

Change-Id: I4a245f9baae79dcb1a942cdada3f321a08b1b413
CRs-Fixed: 2265544
2018-06-22 21:07:10 -07:00
nshrivas
85d1f1bb32 Release 5.2.0.84M
Release 5.2.0.84M

Change-Id: I9a1fd195e12d19d138344c3c77127d1c8e17776e
CRs-Fixed: 774533
2018-06-22 19:52:22 -07:00
Jeff Johnson
5f9ce2d24d qcacld-3.0: Fix sme message callback context param
The SME message callback is currently being used in a manner that is
inconsistent with its signature. The signature specifies that a
tHalHandle should be passed but PE actually passes a tpAniSirGlobal.
Since this is a MAC internal interface update the logic to
consistently use a tpAniSirGlobal.

Change-Id: I8bf94a3dd603b76bdbe7c0db3555736692f64cb7
CRs-Fixed: 2266188
2018-06-22 19:52:21 -07:00
Jeff Johnson
acccf296e4 qcacld-3.0: Remove obsolete utils_api items
utils_api.h exports the following macros, variables, and functions
which are no longer used, so remove them:
- LOG_FIRST_MODULE_ID
- LOG_INDEX_FOR_MODULE
- GET_MIN_VALUE
- gPktAllocCnt
- gPktFreeCnt
- get_vos_debug_level
- sirParseNextIE
- hal_round_s32
- convertto_big_endian
- create_scan_cts_frame
- create_scan_data_null_frame
- create_init_scan_raw_frame
- create_finish_scan_raw_frame

Change-Id: If68849746e1f2507fce8f0cf1d85c6f752fde536
CRs-Fixed: 2266339
2018-06-22 19:52:18 -07:00
Pragaspathi Thilagaraj
655db19762 qcacld-3.0: Fix mem leak in lim_handle_csa_offload_msg
The function lim_handle_csa_offload_msg, posts the
eWNI_SME_CSA_OFFLOAD_EVENT msg to sme. The csa_offload_ind
allocated is not freed during failure cases and this will result
in memory leak during the failure cases.

Free the memory allocated for csa_offload_ind for the failure
cases.

CRs-Fixed: 2263376
Change-Id: I6e25500c0e3a0cc2fa71601d935ec9bbe866dc2b
2018-06-22 19:52:15 -07:00
nshrivas
1b740167df Release 5.2.0.84L
Release 5.2.0.84L

Change-Id: Idd23b9f447d46c2fc6894530a9069b5793756a19
CRs-Fixed: 774533
2018-06-22 17:29:02 -07:00
Abhishek Singh
38da980436 qcacld-3.0: Fix peer use after free in wma_is_ccmp_pn_replay_attack
In wma_is_ccmp_pn_replay_attack peer is used without taking the ref
count and thus this can lead to peer used after free.

Fix this by taking ref of peer before using the peer in
wma_is_ccmp_pn_replay_attack and release ref once access is done.

Change-Id: Iaa5936a1c7f6f8667a68fcb646eaec4cb3aa5469
CRs-Fixed: 2264434
2018-06-22 17:29:02 -07:00
nshrivas
340315abb1 Release 5.2.0.84K
Release 5.2.0.84K

Change-Id: I7cb46bd25bc48abfec3fb3bceadfadcd5e160b87
CRs-Fixed: 774533
2018-06-22 15:36:40 -07:00
Jeff Johnson
a96ee9371e qcacld-3.0: Use mac_handle_t in wlan_hdd_p2p
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_p2p to use the new naming.

Change-Id: I93514340fcfcf136e6e635aa142209f7cf35a68f
CRs-Fixed: 2266176
2018-06-22 15:36:40 -07:00
nshrivas
4a371d0e8e Release 5.2.0.84J
Release 5.2.0.84J

Change-Id: I9a53afadc8038ac7076b9f8df888dd42eba19c1d
CRs-Fixed: 774533
2018-06-22 14:08:02 -07:00
Jeff Johnson
96d162a85a qcacld-3.0: cfg: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac cfg folder.

Change-Id: Ia8a644bc80356cf1dcf7f688d7758902d38af57a
CRs-Fixed: 2266149
2018-06-22 14:08:01 -07:00
Jeff Johnson
83e30fa110 qcacld-3.0: sap: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the sap folder.

Change-Id: I17482713977012d13e0fdb99b67e3f5f4a33efe9
CRs-Fixed: 2266146
2018-06-22 14:07:58 -07:00
nshrivas
72eb98a163 Release 5.2.0.84I
Release 5.2.0.84I

Change-Id: I70724f20a37617745ef58bfd6f3d70db4fca7d28
CRs-Fixed: 774533
2018-06-22 13:02:29 -07:00
nshrivas
0e368f5157 Release 5.2.0.84H
Release 5.2.0.84H

Change-Id: I19105ce61eb3552d0d736d33e30285af285205c4
CRs-Fixed: 774533
2018-06-22 11:36:18 -07:00
Jeff Johnson
c09caa4db6 qcacld-3.0: sme: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the sme folder.

Change-Id: Ib47c297fb19c350f6ccb7d2c433ebb0eac36b2c4
CRs-Fixed: 2263024
2018-06-22 11:36:18 -07:00
nshrivas
3c7c278301 Release 5.2.0.84G
Release 5.2.0.84G

Change-Id: Ibd30d470e3542f301cdb90c8be3bbf0c430e9ad0
CRs-Fixed: 774533
2018-06-22 10:32:35 -07:00
Naveen Rawat
e9d642342d qcacld-3.0: Fix NDI self-peer creation sequence
Make sure to follow AP for NDI self peer creation so that self peer
creation and deletion can be symmetric.

Change-Id: Ie7f9c7b5500540c824a75758337967f8d4f6e692
CRs-Fixed: 2261713
2018-06-22 10:32:34 -07:00
Naveen Rawat
2986a1460d qcacld-3.0: Fix NDP new peer indication memory leak
Fix memory leak in function lim_send_sme_ndp_add_sta_rsp
where memoery for new peer indication for NDP is allocated
but not freed after use.

Change-Id: If5e2df154f5aab8cec21a54dd62a1c1af43e075a
CRs-Fixed: 2261712
2018-06-22 10:32:31 -07:00
Naveen Rawat
23a3b916b4 qcacld-3.0: Fix NDI create sequence
Create NDI vdev after adapter is added to back of hdd adapter list,
so that vdev create completion callback can identify right adapter
and set corresponding completion variable.

Change-Id: If72f779fabc15a9c29f7d94bffa041f7d42db1f4
CRs-Fixed: 2252030
2018-06-22 10:32:27 -07:00
nshrivas
05aa0296cf Release 5.2.0.84F
Release 5.2.0.84F

Change-Id: I4ac99b4c81e875ae34fecd1a74694a7f0d876043
CRs-Fixed: 774533
2018-06-22 08:18:15 -07:00
Ashish Kumar Dhanotiya
ab2a929bb1 qcacld-3.0: Validate hdd_ctx in set peer authorized event
Add a check to validate hdd context in
hdd_set_peer_authorized_event api.

Change-Id: If3f2ed8262f0690d3633da9033531d53709db6e6
CRs-Fixed: 2259273
2018-06-22 08:18:15 -07:00
nshrivas
e85ab82b97 Release 5.2.0.84E
Release 5.2.0.84E

Change-Id: Id860ae923672ffbb710057d826e560072db5c135
CRs-Fixed: 774533
2018-06-22 07:10:18 -07:00
Jeff Johnson
ea52136ad8 qcacld-3.0: Pass correct param to sme_ps_uapsd_disable()
Currently in sme_qos_internal_release_req() and
sme_qos_process_disconnect_ev() the calls to sme_ps_uapsd_disable()
are passing a tpAniSirGlobal instead of a mac_handle_t. Change these
calls to pass the correct parameter.

Change-Id: I93784796753422988a40c4f0f51bdac92b603a43
CRs-Fixed: 2265633
2018-06-22 07:10:18 -07:00
nshrivas
527a0bd1a6 Release 5.2.0.84D
Release 5.2.0.84D

Change-Id: I24e8b9ed97ed15f7e1605ecf78d5d371b1b6c135
CRs-Fixed: 774533
2018-06-22 06:01:51 -07:00
Krunal Soni
a5d89ad663 qcacld-3.0: Check HW mode before sending join request to lower layers
When STA's join req times out on current BSS, SME issues next BSS
internally without checking HW mode for new channel.

For example, STA tries to connect SSID="abc",
BSSID="a1:a2:a3:a4:a5:a6", channel=36 and lets say it fails. It
should try few more times to same BSSID and after that it will try
next bss. Lets say next BSS it found has, SSID="abc",
BSSID="b1:b2:b3:b4:b5:b6", channel=1 then it needs to check whether
hardware mode change is required for channel=1. If driver fails in
checking hardware mode then following check will prevent the bad
situation.

CRs-Fixed: 2242562
Change-Id: Ie31ac5b8b90c6e63122148647ad333fccfbf9dbf
2018-06-22 06:01:50 -07:00
nshrivas
5fa6a57bfa Release 5.2.0.84C
Release 5.2.0.84C

Change-Id: I515ed2eafb8ab98ae2dc6a6ac49343d953a31a82
CRs-Fixed: 774533
2018-06-22 02:58:48 -07:00
Alok Kumar
f28ca24789 qcacld-3.0: Add missing break statement in between switch cases
Add missing break statement between cases in switch statement
in hdd_wlan_dump_stats.

Change-Id: I4e48bec92c06eb4d8c7ff602ad0535826b3ed0d3
CRs-Fixed: 2233182
2018-06-22 02:58:47 -07:00
nshrivas
984139baa4 Release 5.2.0.84B
Release 5.2.0.84B

Change-Id: I88e21ec7730c87d89a7c7f2bcf94ea794deafc5a
CRs-Fixed: 774533
2018-06-21 22:42:19 -07:00
Jeff Johnson
a18d7343e7 qcacld-3.0: Use mac_handle_t in wlan_hdd_twt
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_twt to use the new naming.

Change-Id: Ia7148fa24d9ddfc53f27cdeb0667db6860b8d04a
CRs-Fixed: 2265586
2018-06-21 22:42:18 -07:00
Sravan Kumar Kairam
5eeeb7aa2a qcacld-3.0: Fix compilation error
Fix undeclared variable error compilation issue.

Change-Id: I088336967eb701708c5cbd864f00a7fbb8cc705b
CRs-Fixed: 2265088
2018-06-21 22:42:15 -07:00
Arif Hussain
db6e4e96b4 qcacld-3.0: Send dfs offload enable command based on service bit
Send dfs offload enable command to firmware if phyerror offload
service bit is enabled.

Change-Id: If84164ae6dec8585e5895ee526750df5b15c201f
CRs-Fixed: 2264638
2018-06-21 22:42:11 -07:00
nshrivas
97f92c3864 Release 5.2.0.84A
Release 5.2.0.84A

Change-Id: Ie1113d57b7471ab57e483fa9ed1aeb348d557c8d
CRs-Fixed: 774533
2018-06-21 21:18:51 -07:00
Jeff Johnson
c61622311a qcacld-3.0: Use mac_handle_t in wlan_hdd_apf
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_apf to use the new naming.

Change-Id: I3be23a0d519e872e0f5d3b0cbf6184204f473a17
CRs-Fixed: 2264573
2018-06-21 21:18:50 -07:00
nshrivas
b8b2d77a71 Release 5.2.0.84
Release 5.2.0.84

Change-Id: I71e284697a608144ccdeb908967b779e4069bb74
CRs-Fixed: 774533
2018-06-21 19:57:54 -07:00
Varun Reddy Yeturu
4f849e5032 qcacld-3.0: Send Peer TWT caps in PEER ASSOC
Parse the association response frame to read the
peer TWT extended capabilities and fill them in
the WMI PEER ASSOC command and send it to the
firmware.

Change-Id: I07f21010abbdaa20e212abae127009dd11e6ab7d
CRs-Fixed: 2264690
2018-06-21 19:57:54 -07:00
Varun Reddy Yeturu
ba0b4fc472 qcacld-3.0: Populate extended capabilities for TWT
Populate Extended capablities for TWT requestor and responder.
Set the capabilities accordingly for STA and AP and populate
them into extcaps IE and pack them along with the association
request.

Change-Id: I38df774fa6dc96459f0d08453f48d6646852dbb8
CRs-Fixed: 2264631
2018-06-21 19:57:50 -07:00
Dustin Brown
576eea4d4f qcacld-3.0: Demote hardware capability logs
Hardware capability logs in WMA are currently logged at info level. To
avoid spamming the console logs, reduce these logs to debug level.

Change-Id: I57c9a3712bde728695ef79aab495a429b8ef79e4
CRs-Fixed: 2265455
2018-06-21 19:57:47 -07:00
nshrivas
7accef41b9 Release 5.2.0.83Z
Release 5.2.0.83Z

Change-Id: I1ae1f441bc7d878e8ae24a78c2ece008665f8219
CRs-Fixed: 774533
2018-06-21 18:49:37 -07:00
Kiran Kumar Lokere
0da2ba67a6 qcacld-3.0: Revert sending the reg sync event
Revert sending the reg sync event to fix stability issue.

Change-Id: Ie8e95ca338602d0eb48fcf7cf8c22cfd6716c0a5
CRs-Fixed: 2242697
2018-06-21 18:49:36 -07:00
nshrivas
86198bcca5 Release 5.2.0.83Y
Release 5.2.0.83Y

Change-Id: I184612852a784b3cd3080587af24d499ff44cd68
CRs-Fixed: 774533
2018-06-21 17:40:31 -07:00
Jeff Johnson
003f739f70 qcacld-3.0: Use mac_handle_t in wlan_hdd_stats
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_stats to use the new naming.

Change-Id: Ib61c29e2cc112df47c318cf8cb8848b9430c1066
CRs-Fixed: 2265345
2018-06-21 17:40:31 -07:00
nshrivas
4a70ccb26b Release 5.2.0.83X
Release 5.2.0.83X

Change-Id: I4042789496e37a5d93301a0365914a9b17d6bb53
CRs-Fixed: 774533
2018-06-21 15:26:54 -07:00
Jeff Johnson
e0349a053a qcacld-3.0: Pass correct type to csr_msg_processor()
csr_msg_processor() expects a tpAniSirGlobal as the first param but
sme_process_msg() is currently passing a tHalHandle. At the moment a
tpAniSirGlobal and tHalHandle can be freely interchanged, but a future
change will enforce type checking so update sme_process_msg() to pass
a parameter of the expected type.

Change-Id: I12aab9bddd74ae10eb9004a6369210b4998ebfbd
CRs-Fixed: 2265337
2018-06-21 15:26:54 -07:00
Jeff Johnson
fdecd51166 qcacld-3.0: Clean up SME stats ext event handling
There are multiple trivial issues with the SME stats ext event
handling:
* sme_stats_ext_event() is exported as a global function even though
  its use is local to sme_api.c
* As a local API sme_stats_ext_event() should take an internal MAC
  context instead of an external HAL handle
* The dispatch code in sme_process_msg() incorporates conditional
  compilation within the function body.
* There is replication of parameter checking.

Normally such trivial issues would not be addressed, however an
upcoming change will enforce type safety and no longer allow
tHalHandle and tpAniSirGlobal to be freely exchanged, so in
preparation perform the following cleanups:
* Make sme_stats_ext_event() static
* Change sme_stats_ext_event() to take a tpAniSirGlobal MAC context
* Provide a stub implementation of sme_stats_ext_event() when the
  WLAN_FEATURE_STATS_EXT feature is not enabled
* Remove the WLAN_FEATURE_STATS_EXT featurization from
  sme_process_msg()
* Remove the parameter checking from sme_process_msg()

Change-Id: I367e9d73ca50bd5c24e9261ceb2c3a504fb70e1a
CRs-Fixed: 2264796
2018-06-21 15:26:49 -07:00
nshrivas
6e867f5301 Release 5.2.0.83W
Release 5.2.0.83W

Change-Id: I09ce9e9ac789a5ac8d41d411512d7f814ac3b7bd
CRs-Fixed: 774533
2018-06-21 13:52:13 -07:00
Alok Kumar
4696fb0272 qcacld-3.0: Add Tx comp cbk for DHCP ACK SKB CB
During hard_start_xmit, set a flag in SKB CB to indicate DHCP ACK
packet, and a callback gets called on TX completion.

Change-Id: I4e11b2c35b4747c7af35a387b404e3ccb1e8e8e4
CRs-Fixed: 2253557
2018-06-21 13:52:12 -07:00
gaurank kathpalia
89d3c32488 qcacld-3.0: Move objmgr create/delete from HDD->WMA
Currently the driver creates and deletes the objmgr peer
in HDD layer. According to the latest requirement, the CDP
peer create/delete needs the pointer of objmgr peer, which
thus has to created before CDP peer create, and deleted
after CDP peer delete, which is done in WMA layer.

Remove the objmgr peer create/delete from HDD, and move it
to the WMA layer.

Change-Id: I5bd62a83864e09a3728109e2deec2adf4bb899b5
CRs-Fixed: 2264892
2018-06-21 13:52:08 -07:00