Commit-Graf

2705 Incheckningar

Upphovsman SHA1 Meddelande Datum
gbian
d19fce6f8e qcacld-3.0: Fix compilation errors when enable OL_TX_SCHED_RR
qcacld-2.0 to qcacld-3.0 propagation

Fix compilation errors when enable OL_TX_SCHED_RR.

Change-Id: I2e0ae4d5cae8ad991f060d1276dcae6a4a46bdce
CRs-Fixed: 1020665
2016-10-26 15:42:02 -07:00
Frank Liu
d32281cbb5 qcacld-3.0: Fix sme active list timeout by tdls
propagation from qcacld-2.0 to qcacld-3.0.

If tdls commands fail before it's really executed, the
commands in active list will not be removed and timeout.

Change-Id: Ie10458dcdef9571520b995d1879b499fe855ce2a
CRs-Fixed: 962237
2016-10-26 15:42:00 -07:00
Kai Liu
ffd2bb7166 qcacld-3.0: WMA has to del sta if auth frame is received while connecting
qcacld-2.0 to qcacld-3.0 propagation

It's a fix for sns issue. Set DUT as sap, ref client sends assoc req
to DUT and as part of this frame processing lim does ADD_STA and posts
eWNI_SME_ASSOC_IND to sme layer. Before SME layer sends eWNI_SME_ASSOC_CNF,
DUT receives auth frame which triggers deauth. In this case lim layer
will delete ref client's related info, but wma layer doesn't get any
notification.

To fix this lim has to notify wma to do DEL_STA for that peer.

Change-Id: Id4aae51aae3fb68e752d09793ad3bce17665fc2e
CRs-Fixed: 979687
2016-10-26 15:41:59 -07:00
Kai Liu
27f2037fa6 qcacld-3.0: Destroy tx_frm_download_comp_event in wma_close
qcacld-2.0 to qcacld-3.0 propagation

Currently tx_frm_download_comp_event is used in Mcthread and destroyed
in wma_stop, when wma_stop is called, Mcthread has not exited yet.
In stress test, this event is destoryed but Mcthread is still using,
so crash occurs.

Solution is that destroy event in wma_close to avoid the case that after
destroy this event is still used.

Change-Id: I7d4e97ab261f586edfb90268544a2cda4e90a0b2
CRs-Fixed: 958906
2016-10-26 15:41:57 -07:00
Kai Liu
e30491fbfe qcacld-3.0: add channel 144 in sap channel leakage matrix
qcacld-2.0 to qcacld-3.0 propagation

Host driver will use sap channel leakage matrix to identify whether
this channel is leakage due to radar detected in sap channel. channel
144 is missed in this table.

Change-Id: I15b8cce29da8ba5d7beef1b4e684200121a4aa61
CRs-Fixed: 945408
2016-10-26 15:41:55 -07:00
Liangwei Dong
87a1ecce02 qcacld-3.0: Handle dfs channel switch failure
qcacld-2.0 to qcacld-3.0 propagation

We need to stop SAP bss and destroy the SAP
session if the channel switch failed. Otherwise,
the vdev will leak and it will cause SoftAP
start failed in following test.

Change-Id: Ieb3a2d62c8698f245f787be3c215ee4365b2e8ba
CRs-Fixed: 944741
2016-10-26 15:41:54 -07:00
Liangwei Dong
7d845118f8 qcacld-3.0: wma: fix same peer created again issue
qcacld-2.0 to qcacld-3.0 propagation

This change fixes the connection issue in ap+ap mode.
One peer may connect to the second ap while another ap
still has the connection with this peer, so the same
peer may be created twice.

Change-Id: I898ec326fb8cf080e8fa0b4737c897fc790633a0
CRs-Fixed: 955241
2016-10-26 15:41:52 -07:00
qcabuildsw
cb0615103a Release 5.1.0.33F
Release 5.1.0.33F

Change-Id: Ibe5000be1fe1781a66e24fe12616e5f303cd9cdb
CRs-Fixed: 688141
2016-10-26 15:04:53 -07:00
Amar Singhal
833aa96a5b qcacld-3.0: Set maximum channel width correctly
In case channel width is defined to be CH_WIDTH_MAX; channel width
set to CH_WIDTH_80P80MHZ. This can be incorrect if the secondary
frequency segment is not defined. So conditionally set maximum
channel width to CH_WITH_160MHZ.

CRs-Fixed: 1082221
Change-Id: Iff28c56de56e5481814b4710eb51920a88f0f5f7
2016-10-26 15:04:51 -07:00
qcabuildsw
21a4e5139f Release 5.1.0.33E
Release 5.1.0.33E

Change-Id: I6484d08803eb680de466b36d13e504a1781b3ece
CRs-Fixed: 688141
2016-10-26 14:13:29 -07:00
Naveen Rawat
1a3dac6d94 qcacld-3.0: Do not free node if qdf_list_remove_node fails
In function __lim_process_sme_register_mgmt_frame_req, check for
return of qdf_list_remove_node before freeing node.

Change-Id: Ie52f298427e5b006b95f5248ce588d97e2c6aa72
CRs-Fixed: 1081795
2016-10-26 14:13:27 -07:00
qcabuildsw
2ef0b049cf Release 5.1.0.33D
Release 5.1.0.33D

Change-Id: I00ce08cc93883ce02ee33c02449845049d2814eb
CRs-Fixed: 688141
2016-10-26 10:49:11 -07:00
Himanshu Agarwal
67a863b1b9 qcacld-3.0: Add support to log roam events in DPTRACE
Add support to log all the roam related commands and events
in DPTRACE.

Change-Id: I66773fc23dfeacf3a63688819e099bf44676d95b
CRs-Fixed: 1081851
2016-10-26 10:49:10 -07:00
qcabuildsw
5272981b79 Release 5.1.0.33C
Release 5.1.0.33C

Change-Id: I71a53ca2b97fa21572f5e79e9e05211276221b44
CRs-Fixed: 688141
2016-10-25 23:12:30 -07:00
Padma, Santhosh Kumar
af9f08cb06 qcacld-3.0: Use connected AP channel during reassoc to same AP
Currently channel zero is configured by sigma dut when reassoc
to same AP is issued. This results in failure as this is invalid
channel. Fix this by passing channel of connected AP.

Change-Id: I1fbdc10256b59d7ca49256461244566e04a52df5
CRs-Fixed: 1081234
2016-10-25 23:12:29 -07:00
qcabuildsw
460d23904a Release 5.1.0.33B
Release 5.1.0.33B

Change-Id: I055388a8fc8b890aad48dc978e8d25ce1decd6ce
CRs-Fixed: 688141
2016-10-25 21:57:47 -07:00
Naveen Rawat
224ae9c025 qcacld-3.0: Send ASSOC_IEs only in connected state
In function csr_roam_offload_scan do not populate ASSOC IE(which are only
required in connected_state) in a non-connected state. Otherwise it will
access connected BSS descriptor which is not avaiable in non-connected state.

Change-Id: I9cb0b6f6a49b25c2bd74c5e2140e8fe8919f3f44
CRs-Fixed: 1081198
2016-10-25 21:57:46 -07:00
qcabuildsw
ba4f59d185 Release 5.1.0.33A
Release 5.1.0.33A

Change-Id: I49bd8286d6989dd3b0af6368cb1e85e2adda7f38
CRs-Fixed: 688141
2016-10-25 13:25:40 -07:00
Archana Ramachandran
249f038677 qcacld-3.0: Report correct TX ack status to supplicant
Host driver reports TX ACK status as success when FW sends
failure status. Due to this supplicant is not retrying the
P2P confirmation frame resulting in Go Negotiation failure.
P2P negotiation state machine can be messed up for other
negotiation action frames as well.

Change-Id: I9a22bd542aea32c7cbac11107fe8b6c9785a2ac1
CRs-Fixed: 1079970
2016-10-25 13:25:39 -07:00
qcabuildsw
740580e82d Release 5.1.0.33
Release 5.1.0.33

Change-Id: I6ab1adcfc117c9572bdfc8607e03224e587db476
CRs-Fixed: 688141
2016-10-25 11:26:52 -07:00
Dustin Brown
0ce56d3b83 qcacld-3.0: Fix SAP 'Channel Avoid' Build Issues
The CLD driver does not compile when FEATURE_WLAN_CH_AVOID is not
defined. Fix related issues.

Change-Id: I3c3f14c16bd6a004670b6105231e591a13039fdc
CRs-Fixed: 1078863
2016-10-25 11:26:51 -07:00
qcabuildsw
8284e5b398 Release 5.1.0.32Z
Release 5.1.0.32Z

Change-Id: Id024ebd4acdc9a6d1ab2d9b083bd48154459ab88
CRs-Fixed: 688141
2016-10-25 08:49:54 -07:00
Amar Singhal
b7fe2611ea qcacld-3.0: Disable non-20 mhz 2G world regulatory channels
The minimum bandwidth supported is 5 MHZ. Kernel API
wiphy_apply_custom_regulatory can enable channels 12/13
with BW 5/10 even for reg rule 2402-2472. Circumvent the issue
by doing a check in the driver.

Change-Id: I9ad600eda2e507312a3016aa6d1fe6fdc41724f2
CRs-Fixed: 1079851
2016-10-25 08:49:53 -07:00
qcabuildsw
a87e2feaf8 Release 5.1.0.32Y
Release 5.1.0.32Y

Change-Id: I6f77d6d63b9df530ab730303092e670b6b4c53b7
CRs-Fixed: 688141
2016-10-25 06:37:24 -07:00
Hanumanth Reddy Pothula
709a636c8a qcacld-3.0: Un-initialize modules after closing cds schedulers
During driver un-initialization, cds scheduler is closed after
un-initializing lower layer modules. This may lead to crash as
there is possibility of MC thread to process commands after
lower layer objects are uninitialized/freed.

Un-initialize lower layer modules after closing cds schedulers.

Change-Id: Ia43ca4f95c5b40aeb14976b523008e650ba26e10
CRs-Fixed: 1079196
2016-10-25 06:37:23 -07:00
qcabuildsw
d411cbc065 Release 5.1.0.32X
Release 5.1.0.32X

Change-Id: I0fcf961f46cb83356c6f0a170cc90b130db4f517
CRs-Fixed: 688141
2016-10-25 05:10:11 -07:00
Himanshu Agarwal
0c66b1c758 qcacld-3.0: Remove unwanted error messages
Propagation from qcacld-2.0 to qcacld-3.0.

Error level logs should be used only for error conditions.
Add changes to move unwanted logs to info level.

Change-Id: Ib5b3e1235ad36cf0594291f33e84758261e4d422
CRs-Fixed: 1049765
2016-10-25 05:10:10 -07:00
qcabuildsw
431c6b4bbc Release 5.1.0.32W
Release 5.1.0.32W

Change-Id: Iaba7d1003fe4f6b692a7058658693721d3f753d5
CRs-Fixed: 688141
2016-10-25 04:07:07 -07:00
SaidiReddy Yenuga
deaa781b63 qcacld-3.0: Modify CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT to 30
propagation from qcacld-2.0 to qcacld-3.0

Currently CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT is 0 in code
and in ini file it is 30. If this parameter is undefined in ini
file, then this KEEP alive feature gets disabled.

Change CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT value to 30
in code.

CRs-fixed: 1049206
Change-Id: Iff0933842b13482e9949473a4c8a48bf83230cc1
2016-10-25 04:07:06 -07:00
qcabuildsw
1520e4374d Release 5.1.0.32V
Release 5.1.0.32V

Change-Id: Ic895a5c33c0c4e9cbc8a18001183be46a866ac53
CRs-Fixed: 688141
2016-10-24 16:45:20 -07:00
Selvaraj, Sridhar
6ada9ffd8c qcacld-3.0: Remove redundant mem zero after malloc in SME
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I15e16bbe8caa8c03ffd1fefdabd415619393e117
CRs-Fixed: 1079684
2016-10-24 16:45:19 -07:00
Selvaraj, Sridhar
2cad651a1b qcacld-3.0: Remove redundant mem zero after malloc in DP/UTILS/CDS/WMA
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I385afd98a134c2d79189090ce4c84c4b3adcc94e
CRs-Fixed: 1079691
2016-10-24 16:45:17 -07:00
Selvaraj, Sridhar
5cc4af4405 qcacld-3.0: Avoid buffer overflow
qcacld-2.0 to qcacld-3.0 propagation.

scnprintf returns the number of characters which are actually
written in the buffer. Currently there is no check, while filling
buffer. Hence, a situation might arise where the len is greater
than the sizeof of buffer. Later, this buffer is copied to user space
through api copy_to_user and since the len is greater than buffer
size, buffer over-flow would occur.

As a part of fix, make sure that buffer over write doesn't occur.

Change-Id: I652979cb26fd7fff36ee54f9ec60132453ac7913
CRs-Fixed: 908252
2016-10-24 16:45:15 -07:00
Selvaraj, Sridhar
6a8dcdff2b qcacld-3.0: Remove redundant mem zero after malloc in MAC
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: Icdf64ffbf858201dfa315ab3c75bb32d5eca5fa8
CRs-Fixed: 1079679
2016-10-24 16:45:13 -07:00
Selvaraj, Sridhar
af90144173 qcacld-3.0: Remove redundant mem zero after malloc in HDD
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I3190e56ad7b8c12c4dc8357b1e1238e04f651d6a
CRs-Fixed: 1079659
2016-10-24 16:45:11 -07:00
qcabuildsw
4d91e770a4 Release 5.1.0.32U
Release 5.1.0.32U

Change-Id: I0cb887a7005338fbabf723c38e965b20a38089b8
CRs-Fixed: 688141
2016-10-24 16:02:56 -07:00
Poddar, Siddarth
176c436ae7 qcacld-3.0: Add iwpriv pktlog command to alter pktlog buffer size
Implement iwpriv pktlog command to change the pktlog buffer size.
This command is effective only if pktlog disable is issued previously.
This command needs two argument. First argument should be "3" which
denotes to set the pktlog buff size. Second argument should be the
pktlog size which user wants to change.
For eg, "iwpriv wlan0 pktlog 3 2" will change the buffer size to 2 MB.

Change-Id: Ifa27916667198c3fdc1c51d0e38564869405e041
CRs-Fixed: 1072584
2016-10-24 16:02:54 -07:00
qcabuildsw
db91e23d42 Release 5.1.0.32T
Release 5.1.0.32T

Change-Id: I1350cc6aab024fc46bc207f8c5a1b048e581b147
CRs-Fixed: 688141
2016-10-24 15:25:12 -07:00
Yun Park
8f289c8d2d qcacld-3.0: Fix offload enable status checking after interface setup
Since IPA offload enable status checking before interface setup,
IPA offload enable/disable will not be performed properly.
Fix to check IPA offload enable status after interface setup or
before interface cleanup.

Change-Id: Ifd950d7d629750afd526db56de2f4b656f1f87de
CRs-Fixed: 1079440
2016-10-24 15:25:11 -07:00
qcabuildsw
50dc3fa44b Release 5.1.0.32S
Release 5.1.0.32S

Change-Id: I71d35cd8fbba38231d8905a806bf44aff29a21db
CRs-Fixed: 688141
2016-10-24 14:48:09 -07:00
Houston Hoffman
03890f55a4 qcacld-3.0: Abort cds_deinit_policy_mgr if context is null
Avoid null pointer de-reference.

Change-Id: I5f07ab5eba0d24512a06c5426427ad67ee6f798d
CRs-Fixed: 1081073
2016-10-24 14:48:08 -07:00
qcabuildsw
d9ae863260 Release 5.1.0.32R
Release 5.1.0.32R

Change-Id: I744567b176917d158bc06c71c86630e60f4dac13
CRs-Fixed: 688141
2016-10-24 13:48:57 -07:00
Krunal Soni
b0e1e533f0 qcacld-3.0: Fix to respond to SA query req only in-case of SAP-PMF
As per the PMF offload feature, all STA related SA queries should
be handled in firmware and all SAP related SA queries should be
handled in host.

Current driver is assuming that both are handled in firmware which
is not true. Fix the design by checking if session is STA or SAP and
take the decision based on that.

Change-Id: I1a89e509068ecb85a6c5655dd43e01a39d660b2e
CRs-Fixed: 1081177
2016-10-24 13:48:56 -07:00
qcabuildsw
2d7fb16abc Release 5.1.0.32Q
Release 5.1.0.32Q

Change-Id: I40b358130eacdb586291097679a8565cb566078e
CRs-Fixed: 688141
2016-10-24 11:29:56 -07:00
Zhang Qian
a3bcbe00ff qcacld-3.0: Extend cfg80211 configure API
qcacld-2.0 to qcacld-3.0 propagation

Extend cfg80211 configure API:
1. Vendor attribute for non aggregate/11g sw retry threshold.
2. Vendor attribute for aggregate sw retry threshold.
3. Vendor attribute for MGMT frame sw retry threshold.
4. Vendor attribute for CTRL frame sw retry threshold.
5. Vendor attribute for propagation delay.

Change-Id: Icdcb0e83432299014fb46507bdd5978b76919ab5
CRs-Fixed: 1035577
2016-10-24 11:29:55 -07:00
jge
3e6f638fcd qcacld-3.0: Fix tcp chksum can't be enabled for sap
propagation from qcacld-2.0 to qcacld-3.0.

In STA+AP or AP+AP mode, if the sap's interface is
created rather than using wlan0, there is no setting
for tcp chksum offload.

Change-Id: I346ea186ad26c5f5a0fd4c3dee4a39b102570de7
CRs-Fixed: 1063245
2016-10-24 11:29:54 -07:00
qcabuildsw
afeb1d6b34 Release 5.1.0.32P
Release 5.1.0.32P

Change-Id: I08bd05b5b5bf005a2e772b27538840f1dba77d98
CRs-Fixed: 688141
2016-10-24 10:58:55 -07:00
Kapil Gupta
c797b62f4c qcacld-3.0: Fix memory leak issue
qcacld-2.0 to qcacld-3.0 propagation

Memory allocated to Ibss peers for IEs info is not getting freed
in some cases.
Add changes to fix memory leak.

CRs-Fixed: 1075406
Change-Id: Ie22b70cb5050c2646e3c2c12fcbdf66255c1284b
2016-10-24 10:58:54 -07:00
Deepthi Gowri
e2e3dfd997 qcacld-3.0: Use system time instead of jiffies for BSS received time
qcacld-2.0 to qcacld-3.0 propagation

During late suspend jiffies will not be incremented. Because of this
scan results are not age out as the delta of current time and the BSS
received time is not correct.

To address this, use the system time instead of jiffies for the
BSS received time and also make sure to use system time in all
other functions.

CRs-Fixed: 1018460
Change-Id: Ia14b84f1039dc4ffec6ad63550fed21e932f8012
2016-10-24 10:58:53 -07:00
qcabuildsw
c1b06710ed Release 5.1.0.32O
Release 5.1.0.32O

Change-Id: I01f93a142506296e8f0f58cc0f54cc0df5d9e31c
CRs-Fixed: 688141
2016-10-24 10:28:42 -07:00