Gráfico de commits

8790 Commits

Autor SHA1 Mensagem Data
Kabilan Kannan
9d2c987e6d qcacld-3.0: Remove the excessive logging in hdd_get_adapter_by_vdev
hdd_get_adapter_by_vdev() is an utility function, and shouldn't
have the error message inside the function. Caller can log the
error message based on the return value.
This change will reduce the excessive logging in the system.

Change-Id: I64d7a0e3e180a636d710b42837ff3a982853fb12
CRs-Fixed: 2164658
2018-01-16 01:59:10 -08:00
Min Liu
e98cbdec19 qcacld-3.0: Add NULL pointer check
In the following functions, add NULL pointer check to
address the following issues:
  - lim_send_sme_ndp_add_sta_rsp
  - sme_process_set_hw_mode_resp
  - sme_update_new_channel_event
  - sme_change_mcc_beacon_interval
  - sme_pdev_set_hw_mode
  - sme_nss_update_request
  - sme_soc_set_dual_mac_config

Change-Id: I55038966474b775fba514591c2657228af4f8769
CRs-Fixed: 2168378
2018-01-16 01:59:08 -08:00
Varun Reddy Yeturu
c1c2411be5 qcacld-3.0: Pass the proper frequency for RRM scans
For RRM scan requests, pass the frequency instead of
channel number in the scan request since the new scan
component expects a frequency.

Change-Id: I93d9ea7b1ff406c3f19692add2e3b6532a50ae0b
CRs-Fixed: 2155488
2018-01-16 01:59:05 -08:00
wadesong
4879f42765 qcacld-3.0: ACS fail-safe channel config indication
When ACS scan fails due to some reason, the default channel will
be configured based on ACS band and channel range config, but
the channel and band configs are not indicated to hostapd in a
proper way.

Add code for fail-safe channel and band config indication to
hostapd when ACS scan fails.

Change-Id: Ibbafbc7b853e753cee5563ab64c12c81c3fe54e2
CRs-Fixed: 2166815
2018-01-16 01:59:02 -08:00
snandini
097f54ec3e Release 5.2.0.61P
Release 5.2.0.61P

Change-Id: I3bd0fee5545bc65b1f6f46cc3f945532e31b0cae
CRs-Fixed: 774533
2018-01-15 17:46:12 -08:00
Naveen Rawat
3c16257dba qcacld-3.0: Fix memory leak in sme_rrm_issue_scan_req
Function sme_rrm_issue_scan_req issues scan request, which consumes
an allocated channel list and frees it later. It should also free the
scan list in same context for all the paths that do not issue the scan
request or when the channel list is parsed completely. Fix the memory
leak by making sure all such paths where scan request is not issued,
channel list is freed.

Change-Id: I561c3e03beaa5a809b5be1dd0c9dc73312e3c102
CRs-Fixed: 2166647
2018-01-15 17:46:12 -08:00
Zhu Jianmin
3e90479f0f qcacld-3.0: Fix LFR2 fail on diff channel during multi-sessions
SIR_SCAN_EVENT_FOREIGN_CHANNEL event passed vdev_id, not PE
session id, can't use pe_find_session_by_session_id to get PE
session, should use pe_find_session_by_sme_session_id
smeSessionId is same as vdev_id.
vdevi_id isn't same as pe session id during following STA-P2P
case:
3 vdevs: STA(vdev0), P2P(vdev1), P2P Go(vdev2)
2 PE sessions: 0: P2P Go(vdev2),  1: STA(vdev0)
STA vdev is created before P2P,  but P2P session is created
before STA,  P2P connection happened before  STA connection.
LFR2 pre-auth happened on vdev0,  but PE session 1.

Change-Id: If0d634e84316cf0f19edac57d99ad8a9c1273279
CRs-Fixed: 2172029
2018-01-15 17:46:09 -08:00
yeshwanth sriram guntuka
41f936c740 qcacld-3.0: Add config support for BTM offload
Add ini to configure BTM offload configuration
which is sent to firmware as part of RSO start
via wmi btm config cmd.

Change-Id: I69c792705b208014af8f1878f7645d957dde6c06
CRs-Fixed: 2109793
2018-01-15 17:46:07 -08:00
Rajeev Kumar
69ab276a24 qcacld-3.0: Remove redundant assert from WMA if vdev is down
Remove redundant assert message from WMA if vdev is down as
proper error code and error log message is returned to the caller.

Change-Id: I0430cf87620452a8d2973b1d6711c687a887e270
CRs-Fixed: 2171676
2018-01-15 17:46:04 -08:00
snandini
4f230bf869 Release 5.2.0.61O
Release 5.2.0.61O

Change-Id: Ic5af9b4a0674a1d445adb0265dddf28973ce8063
CRs-Fixed: 774533
2018-01-15 16:32:42 -08:00
Naveen Rawat
441bc87f12 qcacld-3.0: Add 11AX cap checks in Assoc Request handler
Add following 11ax checks while processing assoc request:
1) If SAP is 11AX only - reject non 11ax STA
2) If connecting STA does not support basic HE MCS as
   advertised by SAP then reject STA connection

Change-Id: Ic2aee9ee92a189ca611a1264dcc23b4b93e0d856
CRs-Fixed: 2159243
2018-01-15 16:32:42 -08:00
snandini
29db278e31 Release 5.2.0.61N
Release 5.2.0.61N

Change-Id: Ief11b5c10a2616571dbf5198e2d8118cb085e75c
CRs-Fixed: 774533
2018-01-15 15:39:07 -08:00
Nachiket Kukade
b7e0497148 qcacld-3.0: Correct string comparison logic while handling IOCTL
Upon receiving IOCTL RXFILTER-ADD or RXFILTER-REMOVE, driver compares
this string with the list of supported cmd strings. It uses
strncasecmp for comparison, the length of comparison is the length of
the string from the cmd list. Since position of RXFILTER is before
RXFILTER-ADD/REMOVE and only length of RXFILTER is matched with the
incoming command, it gives a false hit. This causes the IOCTL to be
ignored since the handler for RXFILTER is a dummy handler.

Calculate and use length of incoming cmd string for string comparison.

Change-Id: Ifd21d5371adb54882231c02b6c0a643258d028ae
CRs-Fixed: 2158443
2018-01-15 15:39:06 -08:00
snandini
213a9bc897 Release 5.2.0.61M
Release 5.2.0.61M

Change-Id: I8adbaba58aa044cf39091dbdd2647a36c5cdb9e7
CRs-Fixed: 774533
2018-01-15 03:41:27 -08:00
jiad
bdefb255ce qcacld-3.0: Fix frame-larger-than build error
Build option -Werror=frame-larger-than= throws frame size larger than
1024 bytes build errors.

Change-Id: I7d6b87e247f8c4dc31b2f4f0cd108f404fabacd1
CRs-Fixed: 2165532
2018-01-15 03:41:27 -08:00
jiad
7e3a9bef42 qcacld-3.0: Fix misleading identation build error
Build option -Werror=misleading-indentation throws misleadingly indented
error.

Change-Id: I6a6826a437cdff9556aced1f68081e31100c6548
CRs-Fixed: 2165511
2018-01-15 03:41:24 -08:00
Liangwei Dong
50a64a7bdd qcacld-3.0: Destroy pdev after all vdev free
Currently, pdev destroy is before cds_close and
scheduler_disable. Some pending msg in scheduler
may hold ref count on vdev.
scheduler_flush_mqs will release all the vdev ref
and get vdev freed.
That may cause pdev freed before vdev and get
issue in wlan_objmgr_vdev_obj_free.

Fix by destroy pdev after all possible vdev ref
released (cds_close).

Change-Id: I8e898f6c63fa298f2c63c5fc19706208b8580a60
CRs-Fixed: 2156577
2018-01-15 03:41:22 -08:00
Min Liu
81f2ed3f2f qcacld-3.0: Add check for return value
Currently in cds_enable, no check is performed against the return
value of dispatcher_psoc_enable. Add it accordingly.

Change-Id: Ie8119b5581fb13723dd5cd3c7e22477df51005f4
CRs-Fixed: 2168212
2018-01-15 03:41:19 -08:00
snandini
c9585aebb3 Release 5.2.0.61L
Release 5.2.0.61L

Change-Id: I6d2c967f6729d498fb4e297bd3d26a9277ba2c2b
CRs-Fixed: 774533
2018-01-14 21:27:37 -08:00
Liangwei Dong
17bf26645a qcacld-3.0: Get valid channel by wlan reg API
To use the new wlan reg API
wlan_reg_get_current_chan_list to get current
chan list.

Change-Id: I8b57e425dfb8c27e8c7b013107fb92fd0d08bc34
CRs-Fixed: 2168335
2018-01-14 21:27:37 -08:00
snandini
9edc92ce2b Release 5.2.0.61K
Release 5.2.0.61K

Change-Id: I38d91dc99fb3d1ff291600d465b23f33f34b12a4
CRs-Fixed: 774533
2018-01-13 15:21:18 -08:00
Kiran Kumar Lokere
7d9439c858 qcacld-3.0: Dont send power disable cmd to FW in disconnected state
Do not send power save disable command to FW in disconnected state
as the power save is already disabled when STA is disconnected and
FW does not expect powersave commands after VDEV is down

Change-Id: Iea5a564f1a57f7fa4b8d9c96296d2c2e82c92775
CRs-Fixed: 2171113
2018-01-13 15:21:18 -08:00
snandini
1756f39b41 Release 5.2.0.61J
Release 5.2.0.61J

Change-Id: I4c209f237c1406093f44b3985c1e09e072665fd6
CRs-Fixed: 774533
2018-01-13 05:26:21 -08:00
Vignesh Viswanathan
925db8c5ee qcacld-3.0: Fix clang issues related to FILS and frame parser
Two clang issues reported in csr_api_roam.c and dot11f.c for
unwanted NULL Checks.

Remove the below unwanted NULL checks:
1. for fils_info->keyname_nai in csr_update_fils_params_rso function
2. for gp_mgmt_cipher_suite in RSN IE for pack and get_packed_size
functions.

Change-Id: Ifd3a5772ee8b604d06293b6d4ebd3a049aebd3cd
CRs-Fixed: 2167373
2018-01-13 05:26:20 -08:00
snandini
a1a549dc64 Release 5.2.0.61I
Release 5.2.0.61I

Change-Id: I2bc45d2f17f631814b32c2297424997a7069e7b2
CRs-Fixed: 774533
2018-01-13 02:17:43 -08:00
Yue Ma
4265468538 qcacld-3.0: Delete client peers for P2P GO mode during SSR
Make sure to delete the client peer objects for P2P GO mode to avoid peer
object leaks during SSR. Refine some logs for SSR for better readability.

CRs-fixed: 2171112
Change-Id: Icd691df90f3e0583ffe72d0025dbff4713d82a84
2018-01-13 02:17:43 -08:00
snandini
e6c1cd1988 Release 5.2.0.61H
Release 5.2.0.61H

Change-Id: I74564f65e5940e5142d48ae301667f9cad9c3fb1
CRs-Fixed: 774533
2018-01-13 01:28:10 -08:00
Abhishek Singh
6454ad3707 qcacld-3.0: Add force rsne override and use the RSNE passed by user
Adds support for INI "force_rsne_override" and vendor interface to
enable test mode to force rsne override. Once force rsne override
is set the driver will use the RSN IE's as-is from the connect
request. Exclusively used for the scenarios where the device is used as
a cert test bed and not recommended for production.

With force_rsne_override enabled in INI and once enabled from vendor
command driver will not validate the RSN IE's passed from user space
and thus induce improper IE as it is to test the peer.

Once the force_rsne_override is set, it will be active until its
disabled by vendor interface or driver unload.

If INI force_rsne_override is disabled, the force rsne override mode
cannot be enabled by vendor command.

Change-Id: Ic58474e7a18e6c1f944c61783f630af3953011c0
CRs-Fixed: 2164526
2018-01-13 01:28:09 -08:00
snandini
ddbde4e345 Release 5.2.0.61G
Release 5.2.0.61G

Change-Id: Ic6fc3c1eaca59c76713eb1a12030c39928f38605
CRs-Fixed: 774533
2018-01-13 00:42:44 -08:00
Abhinav Kumar
a03659c39d qcacld-3.0: Fix multiple length definition issue in WLAN FW message
Currently, firmware fills the num variables value of param_tlvs
structure for all wmi commands. But during buffer write the fixed param
values are used to check maximum limit of buffer in wmi commands.
Due to multiple length definition of num variable in WLAN FW message,
num variables of param_tlvs may not equal to max limit defined in
fixed_param, resulting OOB issues in WLAN FW messages during buffer write.
Add sanity check to make sure that num variables value doesn’t exceed max
limit of num value defined in param_tlvs.

Change-Id: I43c15557057ab5b900f19b9f54426dcdf85e2c27
CRs-Fixed: 2153638
2018-01-13 00:42:43 -08:00
Yun Park
e4239809d9 qcacld-3.0: Cleanup function entry/exit logs from HDD IPA module
Move module init/deinit and function entry/exit logs to DEBUG level,
and keep only minimum logs in kernel log buffer.

Change-Id: Ia9fe82934638683079d308acfc9e7014e1d1a0e3
CRs-Fixed: 2169416
2018-01-13 00:42:40 -08:00
Abhishek Singh
1f217ecc2d qcacld-3.0: Add support for roaming on all STA interfaces
Roaming is allowed only on wlan0 interface and is not allowed by
default on any other STA interface.

With this change, roaming will be allowed on all the STA interface
with below conditions:
 - At a time only one STA interface will have roaming enabled.
 - STA which connects first will enable the roaming.
 - Whenever a STA connects and if roaming is not enabled on
   any STA interface, roaming will be enabled on the connected STA.
 - Whenever a STA on which roaming was enabled disconnects, if any
   other STA interface is present and is in connected state, the
   roaming will get enabled on the other STA interface.

Change-Id: I4c7654480ad893eb1635138447e1a0b37abf1ac4
CRs-Fixed: 2166972
2018-01-13 00:42:38 -08:00
snandini
366b0d1e79 Release 5.2.0.61F
Release 5.2.0.61F

Change-Id: I19ebfe530f42a06bf27591c1b1d4fda4661bc493
CRs-Fixed: 774533
2018-01-12 12:20:10 -08:00
Himanshu Agarwal
b229a14b67 qcacld-3.0: Add support for Green AP UMAC componentization
Add support for Green AP UMAC componentization.

Change-Id: I4e41ee6c5dfd055c273096c56de4fa253727b429
CRs-Fixed: 2166756
2018-01-12 12:20:09 -08:00
snandini
cb1d39463d Release 5.2.0.61E
Release 5.2.0.61E

Change-Id: Ief81b75486cfc82b2ecfdd0e4a434e083b8d8b0c
CRs-Fixed: 774533
2018-01-12 01:53:43 -08:00
Wu Gao
a0230a65b2 qcacld-3.0: Send BC public action frames on all interfaces
Add changes to indicate BC public action frames to all interfaces.

Change-Id: I4e4eb80e84be43fa3631092432ae19359b5d4539
CRs-Fixed: 2166996
2018-01-12 01:53:42 -08:00
Naveen Rawat
012137620e qcacld-3.0: Fix interpretation of PPET capability populated by FW
Firmware will provide PPET capability per phy, and phy in-turns is
tied to a band. Add support for per band HE PPET in host, which will
allow correct HE PPET advertisement based on channel.

Change-Id: I476dede3b0f6df107b9980c141c0dbca90f950f1
CRs-Fixed: 2166741
2018-01-12 01:53:40 -08:00
snandini
42b254e496 Release 5.2.0.61D
Release 5.2.0.61D

Change-Id: I6355b676c3f599628a98376ee0ec0ee978e1744a
CRs-Fixed: 774533
2018-01-11 15:39:39 -08:00
Padma, Santhosh Kumar
e587a5c690 qcacld-3.0: Add support for SuiteB AKM suites
Add support for Suite B AKM suites 000FAC 11/12.

Change-Id: I97b13e4266ae7062e728a144a046f663e4f92cc5
CRs-Fixed: 2164921
2018-01-11 15:39:39 -08:00
snandini
28abe80881 Release 5.2.0.61C
Release 5.2.0.61C

Change-Id: Idc5a0c35f4aeb521d4dfd2a20b0ba2a1e820e6b4
CRs-Fixed: 774533
2018-01-11 13:45:07 -08:00
Paul Zhang
c3fc0a8021 qcacld-3.0: Fix compiler issuse when LFR disabled
Clean the compiler issue when CONFIG_QCACLD_WLAN_LFR3
or CONFIG_QCACLD_WLAN_LFR2 or both sets to 'N'.

Change-Id: I9fbad33883fcaf9c3f5728a96cac18bd18c2d14a
CRs-Fixed: 2159431
2018-01-11 13:45:06 -08:00
Tang Yingying
ae0dac16d1 qcacld-3.0: Enable bw computer on all MSM platform
In STA mode bw computer function is under INCSS/CNSS,
add Fix to enable bw computer on all MSM platform

Change-Id: Ic7218d637da4ce06349906b014c7bb82bf8f1d63
CRs-Fixed: 2159745
2018-01-11 13:45:03 -08:00
Yun Park
f2e213b322 qcacld-3.0: Fix static analysis issues in wlan_hdd_lro.c
Fix NULL dereference a pointer returned from call to function
'cds_get_context'.

Change-Id: I4c09309b5813f105ccf1c836b81a92522d81df75
CRs-Fixed: 2162256
2018-01-11 13:45:00 -08:00
snandini
51afba9ec2 Release 5.2.0.61B
Release 5.2.0.61B

Change-Id: I0a287c6ef139f6740704186d55059fd1c6b1b497
CRs-Fixed: 774533
2018-01-11 10:53:35 -08:00
Rajeev Kumar
3887f9b2cc qcacld-3.0: Optimize console logging during driver load
Change some of info/warn log levels to debug log levels to
avoid excessive console logging during driver load.

Change-Id: I042a8f8f735fb2eb7c135c120cbc6644c46bcc31
CRs-Fixed: 2169378
2018-01-11 10:53:34 -08:00
Krunal Soni
3fa80e297a qcacld-3.0: Perform session's validation & boundary checks in SME
There are some issues found related to missing session's validation,
out of bound array indices, or NULL pointer dereference in SME module.

Take appropriate measures to fix the issues.

CRs-Fixed: 2162249
Change-Id: Ia8b8131ec0ea0e494971b07aa2b76c03d6af2915
2018-01-11 10:53:32 -08:00
snandini
866dd79e8f Release 5.2.0.61A
Release 5.2.0.61A

Change-Id: I77ee26a68333c9de4026bae42df348acf2834689
CRs-Fixed: 774533
2018-01-11 10:07:54 -08:00
Krunal Soni
35a9453f85 qcacld-3.0: Perform session's validation & boundary checks in SME-CSR
There are some issues found related to missing session's validation,
out of bound array indices, or NULL pointer dereference in CSR section
of SME module.

Take appropriate measures to fix the issues.

CRs-Fixed: 2162240
Change-Id: I8c4d050bfc7040fba052eb42b32a91302a0a0ecb
2018-01-11 10:07:54 -08:00
Rajeev Kumar
fa55a6954b qcacld-3.0: Fix use after free of HDD context
HDD context is freed as part of wiphy_free() kernel API call
and after it any access of HDD context member variable will
lead to use after panic. Make sure to destroy iface change
mutex before HDD context is freed as part of wiphy_free.

Change-Id: Ic447501c8c7faad7cc7322e5fdb112cb74e5d7ad
CRs-Fixed: 2169505
2018-01-11 10:07:51 -08:00
Yun Park
01a45f7d33 qcacld-3.0: Fix static analysis issues in wma
Resolve static analysis issues - NULL pointer dereference and array
boundary checking.

Change-Id: Ia509cdb9b61d4f7b86175e3b3ec6d4691fc1f7a2
CRs-Fixed: 2162260
2018-01-11 10:07:49 -08:00