Commit Graph

7518 Commits

Author SHA1 Message Date
Jingxiang Ge
04c945017f qcacld-3.0: Add buffer length check to avoid over-read
In wma_mgmt_rx_process, mgmt_rx_params->buf_len is read
from message, if mgmt_rx_params->buf_len is larger than
data_len, it is possible to over-read from bufp with
corrupted message.

Change-Id: I7f06d81fd18960d0d6c57cdb4594680178022087
CRs-Fixed: 2126972
2017-10-25 21:26:44 -07:00
snandini
d4d7c8d1f6 Release 5.2.0.51D
Release 5.2.0.51D

Change-Id: I9b28aeb75a8013052011ed4cac3edfb415bbd926
CRs-Fixed: 774533
2017-10-25 19:41:30 -07:00
Jeff Johnson
7c0d3b27a5 qcacld-3.0: Rename hdd_station_ctx WextState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field WextState in struct hdd_station_ctx.

Change-Id: I57efdc0120b4e84b1c9f385d77ed148080d6db82
CRs-Fixed: 2132662
2017-10-25 19:41:30 -07:00
Jeff Johnson
8380f231b3 qcacld-3.0: Rename hdd_station_ctx staDebugState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field staDebugState in struct hdd_station_ctx.

Change-Id: Iab6712fac703b0a610226805a83349406e4109c9
CRs-Fixed: 2132661
2017-10-25 19:41:28 -07:00
Jeff Johnson
690fe95c47 qcacld-3.0: Rename hdd_station_ctx hdd_ReassocScenario field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hdd_ReassocScenario in struct hdd_station_ctx.

Change-Id: Ief794badd19ef9291a75c375ab919f1ffadb488a
CRs-Fixed: 2132660
2017-10-25 19:41:26 -07:00
Dustin Brown
018477577d qcacld-3.0: Reject interface up during SSR
A recent change added a sleeping wait to the interface up handing code
in hdd_open, which can lead to transient deadlocks and cascading bad
behavior when Sub-System Restart (SSR) is in progress. Instead, simply
return -EBUSY when SSR is in progress, allowing the user to try again.

Change-Id: Id029090f9aafefa76d9778f8e5de5698b852495b
CRs-Fixed: 2132580
2017-10-25 19:41:23 -07:00
Orhan K AKYILDIZ
57a78ea90d qcacld-3.0: Trigger recovery in rx-hash no-match
In case host receives a paddr in a HTT_RX_IN_ORDER_IND_PADDR msg
from FW that is not found in the rx_hash, instead of forcing an
APPS crash, iniate a host-triggered recovery. If the feature
is not enabled, this would be equivalent to the old code.

Change-Id: Iaab5329c13d626c4b94c690f5537899eecf2637b
CRs-Fixed: 2084522
2017-10-25 19:41:21 -07:00
snandini
7dbfa474db Release 5.2.0.51C
Release 5.2.0.51C

Change-Id: I9cf9db204a4e61b506f826d2186bf6710773089b
CRs-Fixed: 774533
2017-10-25 17:48:23 -07:00
Yuanyuan Liu
67abd8054f Revert "qcacld-3.0: Do not access target register in driver unloading"
This reverts Change-Id: I2a4980b6cd4b689da07c34f2acdfaafbbb0715bb.
This change set driver unload state before unload work is scheduled,
which causes async between platform driver and wlan host driver.

Change-Id: Ieaf1cf0a257f69bf8958085c48d9020f1b5ec610
CRs-Fixed: 2124953
2017-10-25 17:48:22 -07:00
Sravan Kumar Kairam
905b4c512f qcacld-3.0: Management MGMT TXRX component over HTT
Currently there is no support for management MGMT TXRX
component over HTT endpoint and supports only over WMI.
As a result for platforms which does not support MGMT
over WMI will break other components which uses MGMT TXRX
component to send mgmt packets. In this change support MGMT
TXRX component over HTT.

Change-Id: I414269abb5a5c616cc890dab450a7782e6829d0e
CRs-Fixed: 2128213
2017-10-25 17:48:20 -07:00
Varun Reddy Yeturu
e5a35d1ecc qcacld-3.0: Differentiate roaming disabled by supplicant and on iface
Currently, do_not_roam flag is used for denoting both supplicant
disabled roaming and the roaming disabled on an interface during
the interface bring up. Differentiate these two flags with proper
nomenclature to make it clear and distinguishable. Name the new
flags to be supplicant_disabled_roaming and roaming_allowed_on_iface.

Currently in a sta+sta scenario roaming is supported only on wlan0.
Based on the flag roaming_allowed_on_iface, send/discard the
roaming commands to be sent to the firmware.

Change-Id: I1bd19e938b00c26c06ff06c73754560d4502ef2c
CRs-Fixed: 2130204
2017-10-25 17:48:18 -07:00
Varun Reddy Yeturu
82e39cd004 qcacld-3.0: Fix the max length of keyname nai
Fix the maximum permissible length for Keyname NAI and also
perform a check for the same.

Change-Id: Ib6eaa11a470202fcde7495f788ab6d3c0272cefe
CRs-Fixed: 2126720
2017-10-25 17:48:16 -07:00
Varun Reddy Yeturu
5faa177d01 qcacld-3.0: Handle non-FILS connection properly
Do not attempt to do any FILS processing for a
non-FILS connection request.

Change-Id: If05fb2bcac0f7d86cefef08bab4f5f216af2f264
CRs-Fixed: 2126425
2017-10-25 17:48:14 -07:00
Orhan K AKYILDIZ
3332be36b5 qcacld-3.0: Add sanity check on adapter before clean-up
Add sanity check on the adapter structure, using the magic field
before accessing any fields on it.

Change-Id: If6965415bc0e6400ffb5924461715dff4c9efa36
CRs-Fixed: 2054084
2017-10-25 17:48:13 -07:00
snandini
8523492b1c Release 5.2.0.51B
Release 5.2.0.51B

Change-Id: Ib3d2420a0487ad178b37b5fbb1bb38e22ce80206
CRs-Fixed: 774533
2017-10-25 16:15:43 -07:00
Varun Reddy Yeturu
625a641a29 qcacld-3.0: Add sanity checks for FILS connection
Add the sanity checks to the authentication types for a
FILS connection to ensure if it is a FILS type connection
and if it is, then add a check for the currently supported
FILS authentication types. This should also take care of
getting rid of dangling pointers for fils_con_info which
are not set to NULL after a memory release operation.

Change-Id: I688086fdff1536bf7e314832e34012878e3a3304
CRs-Fixed: 2123393
2017-10-25 16:15:43 -07:00
snandini
bedf1d798c Release 5.2.0.51A
Release 5.2.0.51A

Change-Id: Ia1b4fed9d872970acf56e0c44a38bdd59f8e52ba
CRs-Fixed: 774533
2017-10-25 13:41:21 -07:00
Sameer Thalappil
2767f44d87 qcacld-3.0: Reset suspended flag during recovery
When WLAN driver goes thru recovery, it's no longer suspended. All
threads are woken up, and FW is also reset during the recovery.

CRs-Fixed: 2110156
Change-Id: I4f586919c0a25345c981149d79c707fbfd1c347e
2017-10-25 13:41:20 -07:00
Dustin Brown
05557181ba qcacld-3.0: Abort suspend if critical events are in flight
There are some events from firmware that the driver would prefer to
process immediately. In some cases, these events can race with the
suspend process such that the event is not processed until the device
resumes. Keep a counter of so called "critical events" so the suspend
process can be aborted in the event of the aforementioned race
condition.

Change-Id: Ic8a557368d6cb62bed9fba424c851b48b16bc574
CRs-Fixed: 2125904
2017-10-25 13:41:18 -07:00
Dustin Brown
28b1789ad0 qcacld-3.0: Move cds_config cleanup into start modules
In the event of an error during cds_open, the cds config is not released
until very late in error handing process. Instead, release the cds
config immediately after an error occurs in cds_open.

Change-Id: I5fdf446c3cad82cbe3cbdec40f1dce4b46a0c3fb
CRs-Fixed: 2124189
2017-10-25 13:41:16 -07:00
Manjunathappa Prakash
71c74a4d6c qcacld-3.0: Add protection for pkt_log ops with module stop
Packet log ops are protected against load-unload and SSR, but not
against module stop. Take care to add check for module stop.
Also takecare to NULLing of wdi_event_list and NULL check before accessing.

Change-Id: I20d49ff587719fc14f60a53e86092383de6ef5b8
CRs-Fixed: 2082135
2017-10-25 13:41:13 -07:00
Orhan K AKYILDIZ
e0d84884a2 qcacld-3.0: Enable TSO segmentation debug for SLUB
Enable TSO segment history collection per TSO segment. This will
allow a better understanding of a rare instance (only 1 instance
so far) where a single TSO segment is detected by memory leak
detection logic.

Change-Id: I7b8277a7307706abdc9a68c8d62fe8c9bcf24513
CRs-Fixed: 2054062
2017-10-25 13:41:11 -07:00
snandini
ac926d2c33 Release 5.2.0.51
Release 5.2.0.51

Change-Id: Ib44d73ea96463384d257facc3196887471ec9f56
CRs-Fixed: 774533
2017-10-25 07:40:52 -07:00
Ajit Pal Singh
813383c330 qcacld-3.0: Force SCC for STA+P2PGO if gWlanMccToSccSwitchMode!=0
While selecting P2PGO channel in sap_goto_channel_sel(), force SCC
if there is STA + P2PGO concurrency AND gWlanMccToSccSwitchMode!=0,
This makes behaviour similar to STA + AP concurrency.

Change-Id: Ib80a36c22432791c5466b68b625373c58e4c8206
2017-10-25 07:40:52 -07:00
Ganesh Kondabattini
41f3478d2e qcacld-3.0: Restart SAP on channel switch
Check if SAP restart is required when STA is changing the channel
as part of CSA handling.

CRs-Fixed: 2115904
Change-Id: Ie8c798c0964def5c3d5db6dbe55a3de3ff8a3381
2017-10-25 07:40:49 -07:00
snandini
d01bfc70f6 Release 5.2.0.50Z
Release 5.2.0.50Z

Change-Id: I19ffc45b7fdc52b7ab3bd896f44ef9daf22f2367
CRs-Fixed: 774533
2017-10-25 05:27:04 -07:00
Jeff Johnson
8f91d85e31 qcacld-3.0: Delete obsolete struct hdd_cfg80211_state
Change "qcacld-3.0: Remove legacy P2P codes in HDD" (Change-Id:
Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d) removed almost all of the
legacy P2P code. However it left behind struct hdd_cfg80211_state (and
associated enums p2p_action_frame_state and action_frm_type) which are
no longer used, so remove those as well.

Change-Id: I3713fa2c940fd5b481ddc32dbd4fcc9ea138799d
CRs-Fixed: 2131863
2017-10-25 05:27:03 -07:00
snandini
71e9767d0a Release 5.2.0.50Y
Release 5.2.0.50Y

Change-Id: I3fb1d5805b9cf530da00dd9fc9f140d53d524f34
CRs-Fixed: 774533
2017-10-25 01:41:59 -07:00
Orhan K AKYILDIZ
ecf401c790 qcacld-3.0: move print outside of lock
It has been observed that prints are adding significant overhead
to the period a lock is being held. Move the prints outside of lock.

Change-Id: Ifc84b562bc294ae2348f6d152b2852c21c963762
CRs-Fixed: 2040486
2017-10-25 01:41:59 -07:00
Jeff Johnson
f8cadecb9e qcacld-3.0: Rename hdd_stats ClassD_stat field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field ClassD_stat in struct hdd_stats.

Change-Id: Iffd826b5d179e824a2f5bdaeca1ecfd4fe4ba02a
CRs-Fixed: 2131838
2017-10-25 01:41:57 -07:00
Jeff Johnson
861dd4f7ce qcacld-3.0: Rename hdd_stats ClassA_stat field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field ClassA_stat in struct hdd_stats.

Change-Id: I33c773b08767e733d69c0dd843f64edc3c00fbee
CRs-Fixed: 2131838
2017-10-25 01:41:55 -07:00
snandini
12cc30d32d Release 5.2.0.50X
Release 5.2.0.50X

Change-Id: I1b4f48cfa8be8d28a9f7e8befde6d1854d5f1b63
CRs-Fixed: 774533
2017-10-24 23:50:42 -07:00
Rajeev Kumar
752d64eff3 qcacld-3.0: Do not send limit_off_chan param if vdev is not up
Add sanity check to reject limit off channel param configuration
if vdev is not up to avoid fw assert.

Change-Id: I8b550e3963896cb8b202747b70f3553750290ee5
CRs-Fixed: 2121828
2017-10-24 23:50:42 -07:00
Will Huang
0ca39e2fef qcacld-3.0: Fix input parameter mismatch in hdd_ipa_uc_proc_pending_event
Once IPA resource loading timeout when 1st connection of SAP, the later
come in ipa event will be queued, but when process pending event it
calls __hdd_ipa_wlan_evt with mismatched type/sta_id.

Change-Id: If6bd8d234d12dcc044e49883be38420dbe15f7db
CRs-Fixed: 2130614
2017-10-24 23:50:39 -07:00
Rajeev Kumar
2d0f219479 qcacld-3.0: Deinit QDF print infra after printing memory leak objects
Deinit QDF print infra after printing leaked objects such that leak objects
detail gets logged before QDF print infra is destroyed.

Change-Id: I55494de6253c0409c8156a838b28bcc20a60913b
CRs-Fixed: 2129306
2017-10-24 23:50:38 -07:00
Rajeev Kumar
6ee644c082 qcacld-3.0: Clean up unwanted blank lines from wlan_pmo_obj_mgmt_api.c
Clean up unwanted blank lines from wlan_pmo_obj_mgmt_api.c

Change-Id: I4c77e9bef3fb1c6799a802095125c21979f7ba3e
CRs-Fixed: 2129039
2017-10-24 23:50:36 -07:00
Mohit Khanna
69672c0f8f qcacld-3.0: Fix dumpStat logging levels
Fix NAPI and flow pool info logging levels. NAPI stats are showing up in
kmsg, when they should not. flow pool stats are simply not showing up
since debug levels are disabled for TXRX module.

Change-Id: I5fa3ca24cf3c31c2cf5183ccf9044eb085153da7
CRs-Fixed: 2127633
2017-10-24 23:50:34 -07:00
Naveen Rawat
a802966c01 qcacld-3.0: Fix logging level in wma_he.c
Fix logging level in wma_he.c. Move Info level logs to debug level
logs.

Change-Id: I193c12e2a0174d904d3e34a4bbd7e24fe42b8287
CRs-Fixed: 2131082
2017-10-24 23:50:32 -07:00
snandini
8b8b7bc150 Release 5.2.0.50W
Release 5.2.0.50W

Change-Id: If364d0cc092f328437c11a7f66a07863d195ab0a
CRs-Fixed: 774533
2017-10-24 22:56:34 -07:00
Rajeev Kumar
6dd45a84ec qcacld-3.0: Ignore target suspend if fw is down
Ignore target suspend timeout if fw is down such that
system can recover gracefully.

Change-Id: I26c3a1fb34483a46cd4f9d48d17408b688e5ad6c
CRs-Fixed: 2130097
2017-10-24 22:56:34 -07:00
snandini
bc227bafff Release 5.2.0.50V
Release 5.2.0.50V

Change-Id: I8542f1bea927bd1a33dd57bb5ddc6d9ea36cf10f
CRs-Fixed: 774533
2017-10-24 19:19:21 -07:00
Rajeev Kumar
07bbe12d29 qcacld-3.0: Remove faulty unload check from stop bss callback API
Stop BSS callback runs in driver's internal scheduler thread context
which should not check for driver load/unload state which is required
for external thread of execution. Stop BSS callback is supposed to
free the peer object which is created by HDD when driver gets unloaded.

Change-Id: I3b8586498f3e9783be3ca4ba8cc06b7f1e9d70a2
CRs-Fixed: 2131209
2017-10-24 19:19:21 -07:00
Rajeev Kumar
7774cc8178 qcacld-3.0: Add sta_id check before updating sta adapater array
Add sta_id check before updating sta adapater array in all other
places.

Change-Id: I1877bf0f7e0d4091877c094e03f9f429cf73dd34
CRs-Fixed: 2129779
2017-10-24 19:19:19 -07:00
Rajeev Kumar
4bc998faa6 qcacld-3.0: Add sta_id check before updating sta adapater array
Add sta_id check before updating sta adapater array

Change-Id: Ic2beadbf07d5071e2d9c69e04f178df39ab64136
CRs-Fixed: 2129645
2017-10-24 19:19:17 -07:00
snandini
e0b5101388 Release 5.2.0.50U
Release 5.2.0.50U

Change-Id: I91620e9cdfe21b55918e9928eb7fdf0a773fa41f
CRs-Fixed: 774533
2017-10-24 16:41:01 -07:00
Ravi Kumar Bokka
990edccddb qcacld-3.0: Add ini param to support power collapse of phy registers
Add a new ini param to enable power collapse of physical registers.
ini values can be:
 0-Disable Phy register retention
 1-Statically enable Phy register retention
 2-Dynamically enable/disable Phy register retention
by default ini value is set to zero.

Change-Id: Ia922c4c25a47b3251c765fda5d4189c69d1a1d14
CRs-Fixed: 1100324
2017-10-24 16:41:01 -07:00
Srinivas Girigowda
09ae07d4b3 qcacld-3.0: Remove unused function lim_active_scan_allowed()
Remove unused function lim_active_scan_allowed().

Change-Id: I912112a8857d7bf07d32bc1ee08f66e2df9ce684
CRs-Fixed: 2131122
2017-10-24 16:40:58 -07:00
Srinivas Girigowda
b9086af019 qcacld-3.0: Fix checkpatch warnings (QUOTED_WHITESPACE_BEFORE_NEWLINE)
Fix checkpatch warnings (QUOTED_WHITESPACE_BEFORE_NEWLINE).

Change-Id: I8901c49fa48c8a9c3a9c83c6be5ff003fe0eae62
CRs-Fixed: 2126814
2017-10-24 16:40:56 -07:00
Srinivas Girigowda
ea4d806da9 qcacld-3.0: Fix checkpatch warnings (SPACING)
Fix checkpatch warnings (SPACING).

Change-Id: I966fe641b4722cc15584defc42c90921090687fb
CRs-Fixed: 2126814
2017-10-24 16:40:54 -07:00
Srinivas Girigowda
828ef23f5e qcacld-3.0: Fix checkpatch warnings (SPACE_BEFORE_TAB)
Fix checkpatch warnings (SPACE_BEFORE_TAB).

Change-Id: I8f370187be5d9018559ce00d723f19064de9b836
CRs-Fixed: 2126814
2017-10-24 16:40:52 -07:00