Граф коммитов

3103 Коммитов

Автор SHA1 Сообщение Дата
Rajeev Kumar
eada0d05db qcacld-3.0: Rename legacy isMcThreadSuspended to is_scheduler_suspended
Rename legacy isMcThreadSuspended to is_scheduler_suspended as MC thread
terminology is obsolete and scheduler is common name for new control
path scheduling entity.

Change-Id: I21ec90855e794ad6bea154d7b7b86417a564cac3
CRs-Fixed: 1101514
2016-12-14 20:49:41 -08:00
qcabuildsw
5791f36a5d Release 5.2.0.2Y
Release 5.2.0.2Y

Change-Id: I149aedcb057f0b3308b05ac4e456e3a385ffc721
CRs-Fixed: 688141
2016-12-14 14:25:14 -08:00
Krishna Kumaar Natarajan
5fb9ac1213 qcacld-3.0: Register mgmt_send driver ops in data path
Register mgmt_send driver ops in data path

Change-Id: Id5d49cd87ca9ca03c66a1f9e48af821d4a6f0510
CRs-Fixed: 1100834
2016-12-14 14:25:11 -08:00
qcabuildsw
7c8bf1a903 Release 5.2.0.2X
Release 5.2.0.2X

Change-Id: I640a2d2d58e484fad4a41e2bea271eb244a06d67
CRs-Fixed: 688141
2016-12-14 14:25:09 -08:00
Anurag Chouhan
ae15544ec4 qcacld-3.0: move unnecessary error logs to warning
Propagation from qcacld-2.0 to qcacld-3.0.

Remove frequently seen unnecessary error logs to warning and info.

Change-Id: Idbeed4f66cf89e161db0674a261e701c77ed59c8
CRs-Fixed: 971507
2016-12-14 14:25:07 -08:00
qcabuildsw
5c4608af81 Release 5.2.0.2W
Release 5.2.0.2W

Change-Id: I3eeb7eb24aaaffabec5c363aef66148c87f36e8a
CRs-Fixed: 688141
2016-12-14 14:25:04 -08:00
Rajeev Kumar
e4cbd534a6 qcacld-3.0: Clean up obsolete conditional compilation NAPIER_CODE
Clean up obsolete conditional compilation NAPIER_CODE.

Change-Id: I6655c135757117535be1ccdc688dbe7ff5bd5a6a
CRs-Fixed: 1095867
2016-12-14 14:25:02 -08:00
Krunal Soni
d32c6bc3fd qcacld-3.0: Enable converged control path scheduler
Enable converged control path scheduler for cld driver
and disable legacy cds MC thread scheduler.

Change-Id: I11ecc6a5ee930a1039ed3460b3a3d4e5f7b75ac6
CRs-Fixed: 1095867
2016-12-14 14:25:00 -08:00
Rajeev Kumar
1705fc275e qcacld-3.0: Add Kbuild changes for control path converged scheduler
Add Kbuild changes for control path converged scheduler.

Change-Id: I62381d9a3ca4d950f9c44223222c68484f856188
CRs-Fixed: 1095867
2016-12-14 14:24:57 -08:00
qcabuildsw
d55f3164ec Release 5.2.0.2V
Release 5.2.0.2V

Change-Id: Idd389353b2fc34b2496208b8c5d543a4612150fa
CRs-Fixed: 688141
2016-12-14 14:24:55 -08:00
Dustin Brown
d95b96b398 qcacld-3.0: Expose Suspend/Resume Unit-Test Ioctls for SAP
Suspend/Resume unit-test framework exposes two ioctls when in station
mode. Expose these ioctls in SAP and P2P modes also.

Change-Id: I2c70e37cac72becc95fd3e3f94ac17ca5352ba66
CRs-Fixed: 1099735
2016-12-14 14:24:52 -08:00
qcabuildsw
b79485d157 Release 5.2.0.2U
Release 5.2.0.2U

Change-Id: I5e68e5b6e989973ca9b9121d1c9e7684e49c5a3b
CRs-Fixed: 688141
2016-12-14 14:08:43 -08:00
Varun Reddy Yeturu
dce1c564b8 qcacld-3.0: Do not allow disconnect during roaming
The roam synch indication processing cleans up the entire stack
with respect to the old peer and establishes the context of
the new peer. A disconnect request from upper layer during the
roam synch processing would cleanup old peer context partially
and request be queued to the PE queue to be processed further.
The roam synch indication processing resumes and picks up the
semi-cleaned context of the old peer.
So, do not allow disconnect if roaming is in progress.
Set the roaming in progress flag when is a ROAM START
is indicated by the firmware. Reset the flag once the
roaming is complete or even if it failed for some reason.
During the period when the flag is set, do not allow
disconnections from upper layers to go through.

Change-Id: If7cc92b25e2330f4280c7bf32c1ddd88fd4a510f
CRs-Fixed: 1091054
2016-12-14 14:08:41 -08:00
Ganesh Kondabattini
1a9d1e4e74 qcacld-3.0: aquire mutex qdf_conc_list_lock only if required
The mutex qdf_conc_list_lock should be used to protect the
access of conc_connection_list. If driver holds this lock and calls
sme api, then there is a chance of entering into a deadlock scenario
as sme api is going to aquire the sme global lock.

This change is going to make sure that driver doesn't hold
qdf_conc_list_lock and call any sme api.

CRs-Fixed: 1086929
Change-Id: I93819d13905609a6a2886b77e951db4253f281bd
2016-12-14 14:08:39 -08:00
Samuel Ahn
c9c48ca408 qcacld-3.0: Add support for multiple instances of the host driver
Propagation from qcacld-2.0 to qcacld-3.0.

If the module name is changed to something other than wlan in
Makefile or Kbuild, then MULTI_IF_NAME is defined to be the module name.
When MULTI_IF_NAME is defined, the names for the config files, log files,
and firmware files are prepended or appended with MULTI_IF_NAME. This
prevents file name collisions allowing multiple instances of this driver
to be loaded with different module names.

Change-Id: Id880c5fe423eb0b2a2c01677d8fa7c4a784c74df
CRs-Fixed: 946520
2016-12-14 14:08:37 -08:00
qcabuildsw
42234d808e Release 5.2.0.2T
Release 5.2.0.2T

Change-Id: I460b0573f670874c7c261a55d5f4e5d6f2a28909
CRs-Fixed: 688141
2016-12-14 14:08:35 -08:00
Deepak Dhamdhere
5a36a4a9f6 qcacld-3.0: Allow REASSOC to same BSSID
Allow wlan_hdd_cfg80211_connect() and wpa_cli "REASSOC" command
to reassociate to same bssid by using the currently connected
channel.

CRs-Fixed: 1089293
Change-Id: Idee480dc480a137426dd3189e1ca1e542bcf053a
2016-12-14 14:08:33 -08:00
Jeff Johnson
3984d67bac qcacld-3.0: Fix -Wmissing-prototypes in EPPING
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in epping.

Change-Id: I025be90e0d2127552f26510a0aefbd9d6f3a1e61
CRs-Fixed: 1093405
2016-12-14 14:08:31 -08:00
Jeff Johnson
3320c7fc59 qcacld-3.0: Fix -Wmissing-prototypes in UTILS
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in core/utils.

Change-Id: Ie2d735fa1e6eba57e0fa9291bd56dbd6acdb7b00
CRs-Fixed: 1093406
2016-12-14 14:08:29 -08:00
Padma, Santhosh Kumar
1ac0240593 qcacld-3.0: Add changes to send max blacklist bssids supported
qcacld-2.0 to qcacld-3.0 propagation

Add changes to send maximum number of blacklist bssid that firmware
supports to user space. Blacklist bssid information is used by driver
and firmware to avoid connection to that particular bssid.

Change-Id: I135d3b4d7723a8d4efe46dcef9efb2de6c0f558a
CRs-Fixed: 1080765
2016-12-14 14:08:27 -08:00
Sreelakshmi Konamki
58c7243aba qcacld-3.0: report RSSI at disconnection time in STA mode
qcacld-2.0 to qcacld-3.0 propagation

Save RSSI of current connected AP when disconnection happens.
User space has to use getRSSI private IOCTL to query the RSSI value
after disconnected event.

Change-Id: I51ab69f2b0bda7c6b3a2689297ca56941471b1cc
CRs-Fixed: 910970
2016-12-14 14:08:24 -08:00
Naveen Rawat
c8feebd21c qcacld-3.0: Fix null pointer check condition for local_ie
In function csr_remove_from_tmp_list, fix null pointer check condition
so that either local_ie is null or csr_remove_from_tmp_list failed. This
will ensure local_ie is valid before being dereferenced.

Change-Id: I91eda3ebe3d841f94f78b35d686e31b47ece8a79
CRs-Fixed: 1091486
2016-12-14 14:08:23 -08:00
Naveen Rawat
24c169196c qcacld-3.0: Fix num_rates check in lim_populate_matching_rate_set
In function lim_populate_matching_rate_set, sum of num_rates is being
checked against max array size but it does not take into account 8-bit
arithmetic overflow in calculating sum. Because of this even though
actual sum is greater than max array size, it might wrap around and be
less than max array size thus failing the condition. Perform 16-bit
arithmetic sum instead to avoid overflow.

Change-Id: Ia078e37891835540c974347ec6b5c9794300e264
CRs-Fixed: 1091486
2016-12-14 14:08:21 -08:00
Naveen Rawat
b88d73e534 qcacld-3.0: Fix length check csr_retrieve_wpa/rsn_ie functions
Fix length check in csr_retrieve_wpa_ie and csr_retrieve_rsn_ie before
memcopy operation. Buffer passed to these functions is of max legnth
DOT11F_IE_RSN_MAX_LEN.

Change-Id: I87319891cf675865ba9709f5a63bf98cbd5059a2
CRs-Fixed: 1091486
2016-12-14 14:08:15 -08:00
Naveen Rawat
816c6d3b00 qcacld-3.0: Check condition before loop in csr_get_active_scan_entry
In function csr_get_active_scan_entry change do while to while loop
so that localentry could be checked before entering loop and avoid
null pointer dereference.

Change-Id: I12cb84b38636ce0d97d7ddf01ad7ed7cd414e80c
CRs-Fixed: 1091486
2016-12-14 14:08:13 -08:00
Naveen Rawat
63ad2b67b9 qcacld-3.0: Add NULL pointers check before access in csr_api_roam.c
Add check for NULL for pointer before dereferencing them.

Change-Id: Ieee249a3100a0aabf70bf79f0c81df8d8febb59b
CRs-Fixed: 1091486
2016-12-14 14:08:10 -08:00
Kabilan Kannan
4bd9f1e787 qcacld-3.0: Fix TDLS connection problem
TDLS connection is not established consistently, when the
system comes out of concurrency. This issue happens, when
the previous tdls connection is not cleared completely.
Add changes in the host driver to clear the stale
entries, when system comes out of concurrency.

Change-Id: I7ab7c1e424cb03e0edff9800114e01205e19d63a
CRs-Fixed: 1089497
2016-12-14 14:08:08 -08:00
Kabilan Kannan
79c1593f70 qcacld-3.0: Fix TDLS teardown failure in concurrency scenario
All the TDLS action frames are blocked in the host driver, if
the active session count is more than one. Due to this TDLS
teardown action frame is blocked in the driver, when the
drive establish concurrent sessions.
Add changes in host driver to allow TDLS teardown frame,
regardless of active session count.

Change-Id: If10bacdf2419b6b66c401ab95a79e1334c95064d
CRs-Fixed: 1089443
2016-12-14 14:08:05 -08:00
SaidiReddy Yenuga
1fa40974e5 qcacld-3.0: Function name is redundant in scan result logs
In wlan_hdd_cfg80211_inform_bss_frame API scan result log
show function name redundantly.

Change logging API to hdd_log.

CRs-Fixed: 1090055
Change-Id: Iaf2d9c6472d7d3774c75d5ea43feba9b698edf7d
2016-12-14 14:08:03 -08:00
Dustin Brown
5918470bc5 qcacld-3.0: Report correct NAN peer type in link layer stats
An incorrect value is used for NAN peers when reporting link layer
stats. Change the peer type mapping when reporting link layer stats
so the correct value is returned for NAN peer types.

Change-Id: I1d8fc9e1486f9ba72675bcb48744d06dd18bf004
CRs-Fixed: 1092789
2016-12-14 14:08:00 -08:00
Samuel Ahn
065e649878 qcacld-3.0: Add support for VSA frames in OCB mode
Propagation from qcacld-2.0 to qcacld-3.0

When VSA frames are received with the device in OCB mode and a broadcast
destination MAC address, the frame will be propagated up to the kernel
instead of being dropped.

Change-Id: Iace313633792192803619bfdd94c83e8d9544983
CRs-Fixed: 945269
2016-12-14 14:07:58 -08:00
Ashwini Muduganti
7964982baa Rename msmcobalt to msm8998
Change-Id: I55b17306cdcc6f8653e4a72e86a95320b5e27139
2016-12-14 14:07:56 -08:00
Naveen Rawat
2347f9d6d1 qcacld-3.0: Send 5G vht_caps followed by 2G vht_caps to firmware
In function lim_send_ies_per_band, send 5G vht_caps to firmware, before
zeroing 80/160 mhz fields for 2G vht_caps.

Change-Id: I7d5d50eaa38a19a86c29b5c754e93cc9846301d5
CRs-Fixed: 1092054
2016-12-14 14:07:53 -08:00
Jeff Johnson
1263a5d5ec qcacld-3.0: Avoid overflow of passpoint network list
This is a qcacld-2.0 to qcacld-3.0 propagation.

Currently when processing a passpoint vendor command the "num
networks" attribute is limit checked and if it exceeds a MAX value
then the command is rejected. Otherwise this value is used to
calculate the size of the buffer allocated to hold the internal
representation of the request. However later when the network
attributes are parsed there is no check to make sure the number of
networks processed does not exceed the "num networks" used to allocate
memory, and as a result a buffer overflow can occur. Address this
issue by aborting the network parsing once "num networks" records have
been parsed.

Change-Id: I38d9f19b08b42fa9a850eb70a42920fbc3b99cf6
CRs-Fixed: 1092059
2016-12-14 14:07:51 -08:00
qcabuildsw
0aa0fd2c02 Release 5.2.0.2S
Release 5.2.0.2S

Change-Id: I62c107ef92b32afed1564db69b38204999fdad8a
CRs-Fixed: 688141
2016-12-14 14:07:49 -08:00
Wu Gao
03dd0f68f4 qcacld-3.0: Process channel change request only when SAP is started
propagation from qcacld-2.0 to qcacld-3.0

When SAP starts (DFS channel) on default interface and a new interface
for SAP is created, if eSAP_DFS_CHANNEL_CAC_RADAR_FOUND event is
triggered then kernel panic happens. This is because for the new
interface SAP is created but not started and due to this channel list
is NULL. Fix is to add state check for SAP interface to know if SAP is
started or not

Change-Id: If613ec3ed0afad8a66d545bcd858fe73640a0273
CRs-Fixed: 1062516
2016-12-14 14:07:46 -08:00
Chris Guo
c0c95bf033 qcacld-3.0: set ipa perf level when stop bus_bw timer
qcacld-2.0 to qcacld-3.0 propagation

IPA perf level is updated in bus_bw timer which is triggered periodly.
If do not reset the IPA perf level when this timer stopping, the ipa
perf level could be remained in a invalid state.

Change-Id: Ia817c80176790ac5f2c3e474616163fef2de38b8
CRs-Fixed: 1077401
2016-12-14 14:07:44 -08:00
Liangwei Dong
748cb5d369 qcacld-3.0: Fix tpDeleteBssParams memory leak
qcacld-2.0 to qcacld-3.0 propagation

"MEMORY_DEBUG" enabled driver shows the
tpDeleteBssParams is not freed upon driver unloading
in SNS test. This commit fixes this issue by
freeing tpDeleteBssParams once no referance to it.

Change-Id: I302e24048f6d0c25dc9d191b65a1435883a6c7e7
CRs-Fixed: 985334
2016-12-14 14:07:41 -08:00
Hong Shi
ab2dfcf20c qcacld-3.0: Fix p2p group info missed in probe response
qcacld-2.0 to qcacld-3.0 propagation

The p2p group info or p2p IE missed in probe response is because genie
len is limited to 255 bytes. It will be fine if supplicant send down
only p2p IE. But if supplicant send down WPS ie and p2p ie in same time,
buffer is overflowed and p2p ie will not be added to frame.

CRs-Fixed: 959456
Change-Id: I8125bc186e6372f46cd1978fd82fe1b907cdaec4
2016-12-14 14:07:39 -08:00
Wu Gao
d35bcb8db6 qcacld-3.0: Cleanup DFS CAC timer
propagation from qcacld-2.0 to qcacld-3.0

Start SAP with DFS channel on default interface and create new AP
interface without any operation, then terminate SAP and rmmod WLAN
driver, DUT crash since it doesn't clean up sap_dfs_cac_timer. The
solution is return cocurrent session only when state machine isn't
disconnected in sap context.

Change-Id: Iffc1d9239c303c25067da2e2d30e37648a44e599
CRs-Fixed: 1051755
2016-12-14 14:07:37 -08:00
Hong Shi
5e94208f72 qcacld-3.0: Fix roaming fresh assoc issue in mcc
qcacld-2.0 to qcacld-3.0 propagation

Roaming send fresh assoc instead of reassoc because the preauth frame
has high possibility sending on wrong channel if in MCC. Need to
trigger scan to schedule to target AP channel if DUT in MCC state.

Change-Id: Ifee8bc00c10ea995093e3f4621b94e0d81a7c32e
CRs-Fixed: 962162
2016-12-14 14:07:34 -08:00
wadesong
3e727f6569 qcacld-3.0: Add a missing condition of VHT cap checking
qcacld-2.0 to qcacld-3.0 propagation

When SAP is running in 11ac only mode, it should reject the incoming
association requests if one of the following conditions is true:

1) VHT capability IE is missing
2) VHT capability IE is available, but present bit is cleared

Change-Id: Iad0e85a741d36dfd8727db668a4600ee3594f905
CRs-Fixed: 1084052
2016-12-14 14:07:32 -08:00
Yingying Tang
3ba3dbc26d qcacld-3.0: add support for 11n only TF card on MDM
Propagate from qcacld-2.0 to qcacld-3.0

To support 11n only TF card on MDM. Make sure
SAP can't be started on 2.4G/5G band with 11ac
mode and STA will use HT mode when connect to 11ac AP.

Change-Id: Ia62404b34aad9e0fc79971846b151aef72f9057f
CRs-Fixed: 945912
2016-12-14 14:07:30 -08:00
Yingying Tang
80e15f39ef qcacld-3.0: Report HT TX STBC capability to kernel
Propagate from qcacld-2.0 to qcacld-3.0

Currently the driver does not report HT TX STBC capability
to the kernel. This prevents hostapd from starting if it
has been configured with HT TX STBC capability. To prevent
this issue correctly report the HT TX STBC capability to the
kernel.

CRs-Fixed: 1046306
Change-Id: Id182de3916f4e556dde30048776ea07b0fbfdc7d
2016-12-14 14:07:27 -08:00
Yingying Tang
b4832f7faf qcacld-3.0: Add SAP TX leakage threshold into ini file
Propagate from qcacld-2.0 to qcacld-3.0

Current value of SAP TX leakage threshold is a fixed value 310,
since different product may need different threshold, add it
into ini file now.

Change-Id: I0df8ac14f5e9e812a8ec5e5127df21eff0a8502b
CRs-Fixed: 955258
2016-12-14 14:07:25 -08:00
Dustin Brown
905cdc782f qcacld-3.0: Default to MSC 0 when reporting invalid link speed
During vdev startup, firmware reports a tx rate of 0, which does not
map to a valid MCS. If the last reported tx rate from firmware does not
map to a valid MCS, default to MCS 0 when reporting link speed to
the kernel.

Change-Id: I6a2cb1cc6b328b76ed2f1ddd6ceb0f5ce7c84318
CRs-Fixed: 1091046
2016-12-14 14:07:23 -08:00
SaidiReddy Yenuga
9a090095c3 qcacld-3.0: Don't log if netlink_broadcast fails with error -ESRCH
qcacld-2.0 to qcacld-3.0 propagation

Don't log if netlink_broadcast fails with error -ESRCH(-3) since
this error is likely to occur because of no listening process in
the user space. In this case, error logs would give a false
impression that feature is broken though feature is working fine.

Change-Id: Ia111476e44a3dce24afd6b935ff0eca06accc73a
CRs-Fixed: 989515
2016-12-14 14:07:21 -08:00
Jeff Johnson
0e60ce5615 qcacld-3.0: Fix -Wmissing-prototypes in HTT
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in core/dp/htt.

Change-Id: I189ca782bdcae7d8d3a6f54acd1baf15f3f300f6
CRs-Fixed: 1091016
2016-12-14 14:07:19 -08:00
Jeff Johnson
b501636521 qcacld-3.0: Remove obsolete HTT debug functions
The following HTT debug functions are not being used:
htt_rx_print_rx_indication()
htt_rx_hash_dump_table()

Delete these obsolete functions.

Change-Id: I8f47cd9706749acdb55736edd1876813bb3177fb
CRs-Fixed: 1091016
2016-12-14 14:07:17 -08:00
Jeff Johnson
4008f34f9f qcacld-3.0: Make hdd_deinit_lro_mgr() static
Change "qcacld-3.0: Add changes for per NAPI or per Rx CE LRO manager"
added new functionality, including function hdd_deinit_lro_mgr(). When
the driver is built using the -Wmissing-prototypes switch, it fails
because this function is defined as global but it doesn't have a
public prototype. But in reality this function is only referenced from
within the source file where it is implemented, so change it to
static.

Change-Id: Ief49b8d10d20f740a06c8d6931bfa1274af0fab0
CRs-Fixed: 1079320
2016-12-14 14:07:15 -08:00