Commit gráf

8647 Commit-ok

Szerző SHA1 Üzenet Dátum
snandini
29751c6b69 Release 5.2.0.59S
Release 5.2.0.59S

Change-Id: I6c002b2e444d366474004b31500c650377aeaed8
CRs-Fixed: 774533
2017-12-28 21:26:32 -08:00
Vignesh Viswanathan
9dd88d39b7 qcacld-3.0: Determine transition status for BSS transition candidates
Determine bss transition status for preferrable candidates provided
by userspace based on the transition reason, rssi of connected and
candidate bssids and other parameters like whether transitiong to the
candidate will result in sub-optimal scenario. The transition status
is either accept or a reason for reject.

Change-Id: Ib83c81909f4d8e31b4125309b8ac392a26a0d6bf
CRs-Fixed: 2007107
2017-12-28 21:26:31 -08:00
snandini
b399834d69 Release 5.2.0.59R
Release 5.2.0.59R

Change-Id: Id7b118b71aaf99623855e205a26341f6d9e1d964
CRs-Fixed: 774533
2017-12-28 15:25:55 -08:00
Rajeev Kumar
6d0b2eaaf0 qcacld-3.0: Rate limit error logs in data path
Rate limit error logs in data path to avoid watch dog bark.

Change-Id: Id20f6224928c6b5e27a04daa6b9a10084ad122b9
CRs-Fixed: 2162954
2017-12-28 11:59:44 -08:00
snandini
63e72af541 Release 5.2.0.59Q
Release 5.2.0.59Q

Change-Id: I74d26e81a21794f9e7581362f697709f3d419313
CRs-Fixed: 774533
2017-12-28 05:06:53 -08:00
Jiachao Wu
d58cfc9eee qcacld-3.0: Check NULL pointer of roam_profile
__wlan_hdd_cfg80211_get_key was invoked when unloading driver.
SAP ctx had been freed at this time.wlan_sap_get_roam_profile will
return NULL.
Check NULL pointer before use roam_profile.

Change-Id: If1f11f0fb7027a6af4e3242fe9af722740d32850
CRs-Fixed: 2162395
2017-12-28 05:06:52 -08:00
Himanshu Agarwal
61990374c0 qcacld-3.0: Add data_len check to avoid OOB access
Add data_len check in wma_stats_ext_event_handler()
to avoid OOB access.

Change-Id: I756ec66fee1cf937f144441a051e973cd561909d
CRs-Fixed: 2160395
2017-12-28 05:06:50 -08:00
snandini
55424ec371 Release 5.2.0.59P
Release 5.2.0.59P

Change-Id: I83d76f13884f55c199acdc7e8ece9c116f3be41d
CRs-Fixed: 774533
2017-12-28 04:27:42 -08:00
Himanshu Agarwal
822187985e qcacld-3.0: Add num_debug_register check to avoid OOB access
Add num_debug_register check in
wma_unified_power_debug_stats_event_handler() to avoid OOB access.

Change-Id: Iae206bc467a940a8fbc1128bff498af958df1c04
CRs-Fixed: 2160403
2017-12-28 04:27:41 -08:00
Himanshu Agarwal
55e1621dd2 qcacld-3.0: Add data_len check to avoid OOB access
Add data_len check in wma_nan_rsp_event_handler()
to avoid OOB access.

Change-Id: Iff42da84567381a4b64bc07e69ff1a0cd4b5a543
CRs-Fixed: 2160375
2017-12-28 04:27:39 -08:00
snandini
a1ebf33bbb Release 5.2.0.59O
Release 5.2.0.59O

Change-Id: If873a066d582d7804f5285cc930ee263a6ae78d8
CRs-Fixed: 774533
2017-12-28 03:38:25 -08:00
Tiger Yu
6a10e3e173 qcacld-3.0: Fix potential buffer overwrite in the htt_t2h_lp_msg_handler
qcacld-2.0 to qcacld-3.0 propagation

Check for the validity of tx_desc_id when received the htt message of
HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND from firmware to ensure the buffer
overwrite does not happen.

Change-Id: I0afc781b7fff303525352b817e7eb60b8b05e4d3
CRs-Fixed: 2164705
2017-12-28 03:38:24 -08:00
Himanshu Agarwal
1b34c1f30f qcacld-3.0: Add num_peer check to avoid OOB access
Add num_peer check in wma_ibss_peer_info_event_handler()
to avoid OOB access.

Change-Id: Id798a2143b201e60fbcc4a3881c1cda3e3376eca
CRs-Fixed: 2160461
2017-12-28 03:38:21 -08:00
Hanumanth Reddy Pothula
07e5f99716 qcacld-3.0: Remove FW memory dump feature
qcacld-2.0 to qcacld-3.0 propagation

FW memory dump feature is no longer used. Hence remove FW memory
dump feature code changes.

Change-Id: Ida655f83630c369df746e7c0c9d61a8fee2932a2
CRs-Fixed: 2140261
2017-12-28 11:54:10 +05:30
snandini
daf47342e0 Release 5.2.0.59N
Release 5.2.0.59N

Change-Id: I399dfbac843e1d69130b6cac99bbbe79ae411782
CRs-Fixed: 774533
2017-12-26 17:26:58 -08:00
Sandeep Puligilla
342d2a6bfc qcacld-3.0: Kbuild changes to enable spectral scan
Add Kbuild changes to build the spectral scan files

Change-Id: Ieeccb322a34ca27642016fec3dc0d7232c7dcf59
CRs-Fixed: 2163445
2017-12-26 17:26:57 -08:00
snandini
f37ce13c6c Release 5.2.0.59M
Release 5.2.0.59M

Change-Id: I29df3be2b462a61b4a9567ae3b95178f89dd2b4f
CRs-Fixed: 774533
2017-12-25 23:26:38 -08:00
Dustin Brown
36e24e273b qcacld-3.0: close all adapters before module stop
Adapter resources are not being released until after stop modules. This
leads to resource leaks on PCIe targets. Move the call to close adapters
to before stop modules.

Change-Id: I18ceba26bb6aab634da91a14cc6890a7b7bd836f
CRs-Fixed: 2162868
2017-12-25 23:26:38 -08:00
Kabilan Kannan
75bd4b3310 qcacld-3.0: Rate limit TX data transmit error in HDD
TX data transmit error is flooding out the logging
system.
Rate limit the TX transmit error to avoid
log buffer overrun.

Change-Id: Ie6f857378f1d8d2ee07ba0d6e10639f6f5dcbd1c
CRs-Fixed: 2160835
2017-12-25 23:26:34 -08:00
Vignesh Viswanathan
bdfbaa9cbf qcacld-3.0: Fix buffer overwrite in lim_send_probe_rsp_template_to_hal
In function lim_send_probe_rsp_template_to_hal, memset is done for the
allocated packet for length nBytes which is calculated as size of payload +
MAC header + addn_ielen.
However, the buffer used psessionEntry->pSchProbeRspTemplate is allocated
for length 512 (SCH_MAX_PROBE_RESP_SIZE) only as part of create session.
This leads to a potential overflow of the memory if nBytes calculated is
greater than 512 leading to kernel panic while freeing the memory in
delete session.

Add sanity check to make sure we do not exceed the SCH_MAX_PROBE_RESP_SIZE
before doing a memset on the buffer.

Change-Id: I4657d34a429b1f0c11ac8ca24869727c222669b8
CRs-Fixed: 2160086
2017-12-25 23:26:31 -08:00
snandini
e6bce00c2c Release 5.2.0.59L
Release 5.2.0.59L

Change-Id: Ie3eb7e2b1ac9f163ebb5993a26b060e07eb5af52
CRs-Fixed: 774533
2017-12-25 21:26:13 -08:00
Ashish Kumar Dhanotiya
d2b9064557 qcacld-3.0: Buffer overwrite in vendor scan request on n_ssid
In function __wlan_hdd_cfg80211_vendor_scan, when SCAN_SSIDS
and QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES are parsed, if the
number of SSIDs or number of channels are more then 255 in
netlink message, n_ssid and n_channels will get overflow
because n_ssid and n_channels are of type uint8_t.

Add a check to validate the max number of SCAN_SSIDs against
MAX_SCAN_SSID and max number of channels against MAX_CHANNEL.

Change-Id: Ib31dcc912fee8639e26d836d2fc5a32bf81fb43d
CRs-Fixed: 2153343
2017-12-25 21:26:13 -08:00
Dustin Brown
26b3d04130 qcacld-3.0: Fix runtime leak compilation issue
HDD calls several qdf_debug_domain APIs when that feature is not
enabled. Add conditional compilation to avoid these calls when runtime
leak detection is not enabled.

Change-Id: I78775c240b5352ed63f2e15f16e25159bbde5666
CRs-Fixed: 2162989
2017-12-25 21:26:10 -08:00
snandini
9355430d8e Release 5.2.0.59K
Release 5.2.0.59K

Change-Id: I9497b81f0c16909f5f01ce8052d32811a3824c91
CRs-Fixed: 774533
2017-12-25 19:26:03 -08:00
Paul Zhang
fb02f45704 qcacld-3.0: Register hdd_netdev_notifier properly
The statement register_netdevice_notifier(&hdd_netdev_notifier)
is replaced by hdd_register_notifiers(hdd_ctx) mistakenly when
propagating from 3.1 to 3.2.

Change-Id: Iddcc2b0375c0e81b944def117b40ea3015f91e4b
CRs-Fixed: 2163113
2017-12-25 19:26:02 -08:00
snandini
64206612cb Release 5.2.0.59J
Release 5.2.0.59J

Change-Id: I56bc7e2d3f87f91c1b8a29971a6a496414c4e380
CRs-Fixed: 774533
2017-12-25 13:26:02 -08:00
Vignesh Viswanathan
59bf3d4bf0 qcacld-3.0: Fix potential OOB read in lim_parse_kde_elements
In function lim_parse_kde_elements, while parsing the KDE list from
the assoc response frame, elem_len is obtained from the frame buffer.
elem_len is then used to find the matching OUI for KDE OUI type and
then to calculate data_len based on the offset for the GTK/IGTK data
types.

If the value in elem_len field in the frame is less than the Data
Offset (which includes the OUI and data type) or the GTK/IGTK offset
then a OOB read would occur.

Add checks to validate the elem_len with Data offset and then with
the GTK/IGTK offset based on the data type.

Change-Id: I8ae31c6d6c28e88ad9bda757b3f1ff2585f8a553
CRs-Fixed: 2161920
2017-12-25 13:26:01 -08:00
snandini
9c8e7e6222 Release 5.2.0.59I
Release 5.2.0.59I

Change-Id: I2055927fba7705f2a909b6e874ed82de8bedd28b
CRs-Fixed: 774533
2017-12-22 19:26:33 -08:00
wadesong
db4d958ba4 qcacld-3.0: Refine peer object cleanup sequence
When a peer object is to be removed in WLAN HDD object manager
code, it should be logically deleted first before it's ref
count is decreased and the peer object is freed, or there will
be a potential race condition, in which a freed peer object
buffer will be accessed.

Change-Id: Ib3179e8207d1e9bbaa9c2b8450a8016e23cfc3f3
CRs-Fixed: 2161627
2017-12-22 19:26:32 -08:00
Poddar, Siddarth
3f97e3dca7 qcacld-3.0: Check for peer delete in progress before assigning to temp var
With the existing implementation of TAILQ_FOREACH_REVERSE
in ol_txrx_remove_peers_for_vdev() function, host traverses
the list, stores the peer in the var, releases the lock and
later temp var is getting deleted as part of peer unmap and
host end up in accessing the stale peer entry.

To avoid this, host should check the peer delete in progress
first before assigning it to the temp var.

Change-Id: I5b9a401ae062efc6d2fbe608b25424a27c9d9f94
CRs-Fixed: 2159446
2017-12-22 19:26:30 -08:00
Naveen Rawat
f939162569 qcacld-3.0: Avoid possible null pointer dereference
Check hdd_ctx, adapter and sta_ctx against null before dereferencing
them in wlan_hdd_nan_datapath.c

Change-Id: Ie81a359be4f03f4f7e411b56d583c12fa3bb03c0
CRs-Fixed: 2162244
2017-12-22 19:26:28 -08:00
snandini
9dae0a4488 Release 5.2.0.59H
Release 5.2.0.59H

Change-Id: If23d863e00f28d1357c3790b4b90adf9b73fe0b2
CRs-Fixed: 774533
2017-12-22 15:26:12 -08:00
Naveen Rawat
170420a953 qcacld-3.0: Change log level of debug message
Change log level of warning message to debug in functions:
__lim_process_operating_mode_action_frame
lim_is_robust_mgmt_action_frame

Change-Id: I8572dc9e6182767809df810fd6f74a307508e32a
CRs-Fixed: 2162961
2017-12-22 15:26:11 -08:00
Arif Hussain
21ad43430c qcacld-3.0: Add null pointer check and fix buffer overflow in sap
Add null pointer validation and fix possible buffer overflow issue
in sap module.

Change-Id: I314e07a31368dd3ca854b9aeab4a0bce0402a81b
CRs-Fixed: 2162246
2017-12-22 15:26:08 -08:00
Himanshu Agarwal
b956c03cb0 qcacld-3.0: Assign correct preamble type for OFDM packets
Presently, OFDM packets are assigned preamble type of
LONG_PREAMBLE when the type should be SHORT_PREAMBLE.

Assign the preamble type correctly.

Change-Id: Ie16936ba54cb8e1dfa5e96ccc52f3fc6693a5d48
CRs-Fixed: 2159511
2017-12-22 15:26:05 -08:00
snandini
61962a876c Release 5.2.0.59G
Release 5.2.0.59G

Change-Id: I36d1f4db20fb6de2ceb3fbc37582c191c5b45fb0
CRs-Fixed: 774533
2017-12-22 13:26:22 -08:00
gaurank kathpalia
90f83f081b qcacld-3.0: Change scores for QBSS/ESP load
Currently in the scoring logic the host has the same
score of 125 for the QBSS/ESP load between 50% to 75%
and 75% to 100% which sometimes may result in improper
scoring for cases where AP1 has air time fraction
127 which  convertes to 51% load and other AP2 has air
time fraction 13 which convertes to 95 % load.
But the score is same for both AP and the host selects
randomly any one of the AP instead of AP1

Fix is to change score for QBSS/ESP load to differentiate
between 50-75% and 75-100% load

Change-Id: I96d0d8a6a0a1854b2faca4435afa612336bc3caf
CRs-Fixed: 2161778
2017-12-22 13:26:22 -08:00
snandini
199108d6c8 Release 5.2.0.59F
Release 5.2.0.59F

Change-Id: I54c141604efa30591533733856dfad40bf970619
CRs-Fixed: 774533
2017-12-22 11:37:43 -08:00
Dustin Brown
db0c68806a qcacld-3.0: Remove FTM checks from memdump init/deinit
The transition to/from FTM happens after the memdump feature is
initialized. However, the memdump init/deinit functions bail out if the
driver is currently in FTM. This leads to situations were memdump is
initialized, but skips deinitialization when the driver is in FTM at the
time of unload. Since memdump is always initialized during driver probe
(the driver is never in FTM at that time), always deinitialize on driver
unload.

Change-Id: Ib3555a89f64912403d8858877086ab070ce24e35
CRs-Fixed: 2162241
2017-12-22 11:37:42 -08:00
snandini
996bb6f3cd Release 5.2.0.59E
Release 5.2.0.59E

Change-Id: I4da1e61f9937fe9f90cd6dc1b2a023f9aace0d97
CRs-Fixed: 774533
2017-12-22 09:26:09 -08:00
hqu
5e6b9866fd qcacld-3.0: Move log level to info high if tx hits invalid station id
For sns test in some scenarios when tx hits invalid station id it will
print massive log so that it will lead to WD bark issue.

Move log level to lower info high from info if tx hits invalid station
id, also align with cld3.1 code.

Change-Id: I965033fc8232c8ead15ef06d26aa0d1d2b468e8a
CRs-Fixed: 2159529
2017-12-22 09:26:09 -08:00
Vignesh Viswanathan
117c2031ee qcacld-3.0: Add suppport to forward GAS action frames to supplicant
Add changes identify and forward GAS public action frames to
supplicant in lim_process_action_frame_no_session.

Change-Id: Id872e2b0b8b7a203b472e0bd152f25f63c873b4f
CRs-Fixed: 2161785
2017-12-22 09:26:06 -08:00
snandini
4aade6ed56 Release 5.2.0.59D
Release 5.2.0.59D

Change-Id: I759824ca7c638ac3d391ca6b9d191727495a9340
CRs-Fixed: 774533
2017-12-22 01:27:30 -08:00
Vignesh Viswanathan
448573185e qcacld-3.0: Fix min IE length for FILS indication IE
FILS indication IE minimum length should be 4 bytes (2 bytes for tag and
length) + (2 bytes for realm hash). However current mininum is set to
5 bytes.
Usually AP sends cache identifier also in the FILS indication IE, which
is optional and causes the ie length to be greater than min of 5.
If the AP does not send Cache Identifier and sends only realm hash,
the IE length would be 4, which causes the IE to be skipped in parsing
thereby failing FILS connection.

Fix min IE length to 4 bytes in the frame parser for FILS Indication IE

Change-Id: I07f2b724f5840f9ba8ec663e0b303d8fc86663da
CRs-Fixed: 2161241
2017-12-22 01:27:28 -08:00
snandini
577128f1f3 Release 5.2.0.59C
Release 5.2.0.59C

Change-Id: I5177c3ddea7e1cf060496fe4ad337c657a19e455
CRs-Fixed: 774533
2017-12-21 23:37:49 -08:00
Vignesh Viswanathan
93b7f70f80 qcacld-3.0: Add WiderBWChanSwitchAnn IE to ext_chan_switch_ann action frame
Add the WiderBWChanSwitchAnn to ext_chan_switch_ann action frame
as optional IE. Currently WiderBWChanSwitchAnn is added only in
beacon frames.

Change-Id: I4f76479bdb2befa93fcb83238590007a555af210
CRs-Fixed: 2141529
2017-12-21 23:37:48 -08:00
snandini
9fb9f5cf77 Release 5.2.0.59B
Release 5.2.0.59B

Change-Id: Ifa002dd7db2347291b92cc97d6207be8ca463777
CRs-Fixed: 774533
2017-12-21 17:39:47 -08:00
Rajeev Kumar
5d17dd531f qcacld-3.0: Avoid qdf_mem_cpy when source pointer is null
During SAP SSR scan default ie data pointer is cleared and
set to null hence avoid unnecessary qdf_mem_cpy when source
pointer is null.

Change-Id: I75960c69804144abee5b1978b43002110b0d0be4
CRs-Fixed: 2161056
2017-12-21 17:39:46 -08:00
snandini
3f6a15ac26 Release 5.2.0.59A
Release 5.2.0.59A

Change-Id: I3c0375e9504555c47db5c76cfc42e39c7760eb5b
CRs-Fixed: 774533
2017-12-21 11:32:32 -08:00
Himanshu Agarwal
75c8d796d9 qcacld-3.0: Set high priority as false for stop bss sme command
When stop AP command is received from hostapd, all the stations
are deauthenticated and then stop bss is called. But stop bss is
called with high priority as true and so gets queued on the top
of the list while del sta commands are queued at the tail as high
priority is set to false for those. This leads to desynchronization
as the commands are not serialized.

Set high priority as false for stop bss sme command to serialize all
the commands.

Change-Id: I9c80032c418e05d3b5591bb3cfd70f8285f27fe8
CRs-Fixed: 2161257
2017-12-21 11:32:32 -08:00