Commit Graph

5659 Commits

Author SHA1 Message Date
snandini
531113f6eb Release 5.2.0.32X
Release 5.2.0.32X

Change-Id: Ibc0e116c8505f8c8fa1464b062e45384cbd6a89c
CRs-Fixed: 774533
2017-07-03 15:40:12 -07:00
Ravi Kumar Bokka
6cb9b3747b qcacld-3.0: Validate vendor command set roaming params
Currently there is no nl policy defined for vendor sub command
QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX which may result in
buffer overread error.

To resolve this, add nl policy.

Change-Id: Ib5d3c34dbcec29a98766753efc4e9c4ecf748c2e
CRs-Fixed: 2054693
2017-07-03 15:40:09 -07:00
Sreelakshmi Konamki
df43ff8c80 qcacld-3.0: Remove key debug logs
wlan_hdd_cfg80211_set_key_wapi() and sme_roam_set_key() prints
key information in default host logs.

Fix to remove debug logs which prints sensitive key information.

Change-Id: Ib71da962761f9b6b5fd8ba214676b649529bcaa7
CRs-Fixed: 2058305
2017-07-03 15:40:07 -07:00
SaidiReddy Yenuga
c356f15969 qcacld-3.0: Fix buffer over flow in hdd state ctrl
In hdd state ctrl API buf used beyond its size.

Increase buf size to 3 to get rid of buffer over flow.

CRs-fixed: 2029584
Change-Id: Ie353d449f167bee05833841350d61dc0935786fc
2017-07-03 15:40:05 -07:00
snandini
e31c5f5d94 Release 5.2.0.32W
Release 5.2.0.32W

Change-Id: Iba91cf6d457a4510830f564180f934e711d900a1
CRs-Fixed: 774533
2017-07-01 13:41:20 -07:00
Deepak Dhamdhere
137b54e9f5 qcacld-3.0: Fix memory references in wma_remove_peer()
Check for NULL values of peer  and peer_map_addr before dereferencing.
Move the debug print statement before peer is detached and peer object
is freed.

CRs-Fixed: 1115011
Change-Id: I00d547847eed8e24a01178390b9a62be0b9b75d7
2017-07-01 13:41:20 -07:00
snandini
8ca5ad5747 Release 5.2.0.32V
Release 5.2.0.32V

Change-Id: I4a01e53b891cce6fca842f3d8b0d7601994c018e
CRs-Fixed: 774533
2017-06-30 22:50:41 -07:00
Rakesh Pillai
7fb7a1f850 qcacld-3.0: Fix CLANG warnings in Data path
implicit conversion from enumeration type 'QDF_STATUS' to different enumeration type 'A_STATUS'
implicit conversion from enumeration type 'A_STATUS' to different enumeration type 'QDF_STATUS'

CRs-Fixed: 2063339
Change-Id: Ib96a49f40ea581127405560087354e7fa9bf46ec
2017-06-30 22:50:40 -07:00
snandini
b07bf1f7e6 Release 5.2.0.32U
Release 5.2.0.32U

Change-Id: I1927c2bc92aaf972999aab41ffce558bf9f1a33c
CRs-Fixed: 774533
2017-06-30 15:50:19 -07:00
Sandeep Puligilla
e64099d67f qcacld-3.0: Don't serialize IPA stats request
SME queue is getting overflow due to IPA
stats request which gets posted at every 100ms.

Don't process IPA stats request in cds thread
context instead call wma API in the worker thread
context.

Change-Id: Id1ae20a1256ecd7ee43c2e3ebf50a14dc22e6714
CRs-Fixed: 2047462
2017-06-30 15:50:19 -07:00
Naveen Rawat
f2bd42d692 qcacld-3.0: Fix off by one access to WMA->interface
Fix vdev_id validation at wma. Currently validation for vdev_id
which is an index to wma->interface array is off by 1.

Change-Id: I01fa048af08f76244896ae1ca4c53c61c1c60397
CRs-Fixed: 2057505
2017-06-30 15:50:17 -07:00
snandini
c8d0dc79de Release 5.2.0.32T
Release 5.2.0.32T

Change-Id: I612a121c9a6f6f1b1d37f2d637139678a23ec761
CRs-Fixed: 774533
2017-06-30 09:34:17 -07:00
SaidiReddy Yenuga
dec1bfc9dc qcacld-3.0: Add lost AP sample size entry to nla policy
qcacld-2.0 to qcacld-3.0 Propagation.

improper validation of
QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
results in assigning an unchecked user-controller value.
This can lead to buffer overflow.

validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE.

CRs-Fixed: 2056253
Change-Id: I7c33b6d78054672e9effbe9100c29e5604c250c6
2017-06-30 09:34:16 -07:00
snandini
75f21eb780 Release 5.2.0.32S
Release 5.2.0.32S

Change-Id: Ic31112b53036e317fa6cbef823b160995078d9f9
CRs-Fixed: 774533
2017-06-30 08:19:59 -07:00
SaidiReddy Yenuga
39ac0cd13c qcacld-3.0: Validate NLA attr in wlan_hdd_cfg80211_vendor_scan API
NLA attribute QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE
used without validation.

validate NLA attribute.

CRs-Fixed: 2025686
Change-Id: I76c483df543c3b5f96282162a5e883dd1d6bc204
2017-06-30 08:19:58 -07:00
Poddar, Siddarth
37a302d35e qcacld-3.0: Make the packet LRO ineligible when tcp udp checksum fail
Send the packet to network stack with lro non-eligible
whenever tcp_udp_checksum fail.

Change-Id: I1c4d71fbc4cf7ce2e13d4e6c8dafbafdf76b0c2f
CRs-Fixed: 2068442
2017-06-30 08:19:57 -07:00
snandini
9aa72a39a3 Release 5.2.0.32R
Release 5.2.0.32R

Change-Id: I60a8eee37a7b3dfd18f875fa2420ecc12a9b41c2
CRs-Fixed: 774533
2017-06-30 07:38:41 -07:00
SaidiReddy Yenuga
88680b035f qcacld-3.0: Add get valid channels entry to NLA policy
qcacld-2.0 to qcacld-3.0 Propagation.

improper validation of
QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS.

validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS.

CRs-Fixed: 2053000
Change-Id: I16e5808492b5b35dc8b646af45d6ac6d65561804
2017-06-30 07:38:40 -07:00
SaidiReddy Yenuga
8e5d332f12 qcacld-3.0: validate vendor get station command
Currently in __hdd_cfg80211_get_station_cmd there are two
attributes which are not properly validated.

Define an appropriate nla_policy and specify this policy when
invoking nla_parse().

CRs-Fixed: 2054741
Change-Id: I36e12f001b05069c8e06adb1f264392232b13bfb
2017-06-30 07:38:39 -07:00
SaidiReddy Yenuga
ecb273bc6e qcacld-3.0: Fix buffer overread in get oui vendor command
qcacld-2.0 to qcacld-3.0 Propagation.

In get oui ie command API, ie pointer read out
of boundary.

Return NULL if ie length is less than oui size.

CRs-Fixed: 2053002
Change-Id: I13375d3bfa472eda25d8d6191431dd1f79bf5842
2017-06-30 07:38:38 -07:00
snandini
1021c6a154 Release 5.2.0.32Q
Release 5.2.0.32Q

Change-Id: Iae5e48dab6d20d30a4688f970f4ce7cf050381f9
CRs-Fixed: 774533
2017-06-30 04:50:25 -07:00
Kapil Gupta
53d9b575c5 qcacld-3.0: Remove unwanted error msgs
Add changes to remove unwanted error messages from peer create/
delete events.

Change-Id: Ic511b1799db36d1da4bda491792889db881de233
CRs-Fixed: 2040800
2017-06-30 04:50:24 -07:00
Abhishek Singh
217d978511 qcacld-3.0: Wait for all peer unmap events
Currently even though all peer unmaps events of last associated peer are
not received, driver still goes ahead for new connection with a diffrent peer.
Now if firmware uses same peer id for new peer also this causes synchronization
issue of peer ref counts and will eventually lead of kernel panic.

Add changes to wait for last peer's all unmap events before proceeding with
new connection

CRs-Fixed: 2040627
Change-Id: I30e74d9bebe66fec55d7682d3cec581a078f5e75
2017-06-30 04:50:23 -07:00
snandini
1801893f6f Release 5.2.0.32P
Release 5.2.0.32P

Change-Id: I26fb886d309f6c028652e20433569cc585d25ad5
CRs-Fixed: 774533
2017-06-30 04:06:23 -07:00
Sravan Kumar Kairam
374a868b36 qcacld-3.0: Disable IPA WDI pipes before disconnect
Currently in case of HDD interface change timeout call back
disabling of IPA WDI pipes is not handled and only disconnect
is called. As a result disconnect fails because IPA driver
expects suspend and disable before disconnect. In this change
disable IPA pipes before doing disconnect.

Change-Id: I5ddf222730d57b39ba15bd5923c22d585eb52b08
CRs-Fixed: 2047110
2017-06-30 04:06:22 -07:00
Kapil Gupta
10800b9131 qcacld-3.0: Reduce logs in case of Tx failure
In case on continuous Tx failure of management packets, logs
flooding can cause watchdog timeout.

Add changes to reduce log dumping in case of transmission
failure and log every 50th packet failure

Change-Id: Ia975fb71fcd14eb6abd8c0712d9d0704d592f97b
CRs-Fixed: 2040917
2017-06-30 04:06:21 -07:00
Kapil Gupta
8c33665bb6 qcacld-3.0: Avoid bug_on during driver unload for FW timeout
Driver unload may flush VDEV delete response from FW by
calling wma_mc_discard_msg which may cause this request to not
to be removed from wma_hold_req_queue queue.
Since during unload, wma_shutdown_notifier_cb goes through
pending response queue to see what are pending requests and it
may cause kernel panic for this req since response is already flushed.
Add changes to avoid bug_on during driver unload for FW timeout

CRs-Fixed: 2046856
Change-Id: I41cba0883099799c542329075d4620343e6b9d76
2017-06-30 04:06:20 -07:00
snandini
76563cd485 Release 5.2.0.32O
Release 5.2.0.32O

Change-Id: If227eee2becc12e95ca620cb717f6432618ca5f5
CRs-Fixed: 774533
2017-06-30 03:20:15 -07:00
Hanumanth Reddy Pothula
fc70ea378a qcacld-3.0: Reset unloading in progress on driver remove
When platform driver initiates wlan driver remove, driver state
is set to unloading but it is not cleared on successful driver
remove, leading unload bit to be set forever and thereby host
returns failure for all north bound requests, though driver is
loaded successfully after this scenario.

After wlan driver is removed, clear the driver unload bit, so
that on next successful driver load, host can process north
bound requests.

Change-Id: I600705b340a824bcaa524e2ed981ad35943fb5cd
CRs-Fixed: 1113037
2017-06-30 03:20:15 -07:00
snandini
e3c957712c Release 5.2.0.32N
Release 5.2.0.32N

Change-Id: I34f45872475c733bdf5f53ca088d8b7afa738546
CRs-Fixed: 774533
2017-06-30 01:51:09 -07:00
Sreelakshmi Konamki
7a57408999 qcacld-3.0: Validate suspecious pointer dereference
Add NULL check before dereferencing wma handle in
wma_ipa_uc_stat_request().

Change-Id: If336af0c350fa5615aeb9481ef6d759811e09f59
CRs-Fixed: 2047207
2017-06-30 01:51:09 -07:00
snandini
674077074b Release 5.2.0.32M
Release 5.2.0.32M

Change-Id: Ife851118d631061f85658be3d628858b31e02be6
CRs-Fixed: 774533
2017-06-29 23:40:52 -07:00
lifeng
c0fb61a3f5 qcacld-3.0: Fix the issue of launching guest ap in SCC
Try to set ap-ap mode on single wifi with acs enabled,
primary ap can start up successfully, but fail to bring up
the guest ap.

The fix is to call appropriate procedure once the guest ap
skip acs scan before starting bss.

Change-Id: I106269308932dafff27f9dc0665ade06b88e99a6
CRs-Fixed: 2063960
2017-06-29 23:40:52 -07:00
snandini
62c330fc02 Release 5.2.0.32L
Release 5.2.0.32L

Change-Id: I61061869132e31c997eec0e194906d822613359a
CRs-Fixed: 774533
2017-06-29 20:30:40 -07:00
jge
9bd51dd66b qcacld-3.0: Correct NULL check in ol_tx_bad_peer_update_tx_limit
Fix static analyze issues. add NULL pointer check.

Change-Id: If1380a23a87a50d50458d10f87a512fa87613b27
CRs-Fixed: 2059753
2017-06-29 20:30:39 -07:00
Varun Reddy Yeturu
aa5a80c5d3 qcacld-3.0: Fix logging in auth frame reception
Fix the log spamming in lim_process_auth_frame_no_session

Change-Id: Ibbe9b2482b064f3814cb5a664792177b112557f0
CRs-Fixed: 2051360
2017-06-29 20:30:38 -07:00
Varun Reddy Yeturu
dd51e8d67b qcacld-3.0: Fix logging levels - Part 2
Move the log messages to appropriate log levels so that
the console does not get a huge spam of unnecessary logs

Change-Id: Ie58b45078ad8b4732d7b84bfb77261396bd5862a
CRs-Fixed: 2043741
2017-06-29 20:30:36 -07:00
Deepak Dhamdhere
d8455ce1fd qcacld-3.0: set channel width and phy mode to fw in vdev restart
qcacld-2.0 to qcacld-3.0 propagation

If ap switches channel, sta will follow ap, as ap may change phymode
and channel width in new channel, so host needs set new phymode and
channel mode to fw.

Change-Id: I87b28119e0f4a8005f9c80f8f32912747b28306c
CRs-Fixed: 913325
2017-06-29 20:30:35 -07:00
Jeff Johnson
19a5a7ef67 qcacld-3.0: Avoid overread when configuring MAC addresses
Currently there are multiple cfg80211 vendor commands where MAC
address attributes are defined in a nla_policy table with a type of
NLA_UNSPEC but without a minimum length. Add the proper minimum length
to avoid buffer overread.

Change-Id: I11ff2bd813dc4e6784a7cdee66a0c10ca0e69fcf
CRs-Fixed: 2062140
2017-06-29 20:30:33 -07:00
snandini
899f5bcc20 Release 5.2.0.32K
Release 5.2.0.32K

Change-Id: I3379e5c985505841519b12cccd714f952d2a6d75
CRs-Fixed: 774533
2017-06-29 19:45:42 -07:00
Naveen Rawat
8029a40b49 qcacld-3.0: Update beacon template from sme update config API
Currently sme_update_ht_config only update csr_session and sends updated
params to FW via VDEV_PARAM command. Same is not reflected in pe_session
and beacon template. Update beacon params in LIM by sending param update
message to LIM.

Change-Id: I1f926b4d2d5467c7702e03ff281879529c89f6f5
CRs-Fixed: 2055347
2017-06-29 19:45:42 -07:00
Arunk Khandavalli
3d267b41f1 qcacld-3.0: Destroy logging thread irrespective of device mode
Presently the logging thread is not destroyed if the driver is unloaded
in the FTM mode leading to accessing to invalid memory location once
the wlan driver is unloaded.

Destroy the logging thread irrespective of the device mode during
the unload of the driver.

CRs-Fixed: 2040566
Change-Id: I1a97acffa5fb292ac9d355d6a95e6fc253fc833a
2017-06-29 19:45:40 -07:00
lifeng
21b7b8bd49 qcacld-3.0: Change ssidHidden variable type as tHiddenssId enum
Change ssidHidden variable type as tHiddenssId enum instead of
original boolean type in tagCsrSSIDInfo structure to backup the
value from hdd (eg: eHIDDEN_SSID_NOT_IN_USE, eHIDDEN_SSID_ZERO_LEN,
eHIDDEN_SSID_ZERO_CONTENTS).

Change-Id: Ibc88c80856984b1b61e2fbe489219b391900dad3
CRs-Fixed: 2065342
2017-06-29 19:45:39 -07:00
Hanumanth Reddy Pothula
b2d729c52b qcacld-3.0: Set STA IDs to invalid data during STA initialization
During initializing station mode, the array holding STA IDs are
not set to HDD_WLAN_INVALID_STA_ID(0xFF), leading STA IDs to hold
a valid data, though there no connections.

Set array holding STA IDs with HDD_WLAN_INVALID_STA_ID, to make
STA IDs holding invalid data.

Change-Id: I12167e83bebe0380520676c194f11cd4848330cf
CRs-Fixed: 2053816
2017-06-29 19:45:37 -07:00
Naveen Rawat
3ca28b0769 qcacld-3.0: Change max value of dropped packet threshold to 64k
Change number of dropped packet before kickout threshold to max
theoretical value of 65535.

Change-Id: I9b29e704460cfabdc346cda7ab4bc5f01ad5ea98
CRs-Fixed: 2029453
2017-06-29 19:45:36 -07:00
snandini
8745ad2c17 Release 5.2.0.32J
Release 5.2.0.32J

Change-Id: I46a09a988b301a9e5f5cdd056f8c3776ee8c3a30
CRs-Fixed: 774533
2017-06-29 19:06:02 -07:00
Jeff Johnson
438ff42173 qcacld-3.0: Properly validate QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR
Currently the QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR nla_policy specifies
a type of NLA_STRING, but the underlying implementation expects a
NUL-terminated string. Update the policy to correctly use a type of
NLA_NUL_STRING with the len updated to remove the allocation needed
for the terminating NUL.

Change-Id: Ic73241511ab73ae63fd7c1a8d6422da91931919c
CRs-Fixed: 2062141
2017-06-29 19:06:01 -07:00
Krunal Soni
c3c8b8b34f qcacld-3.0: Add NULL check before passing VDEV object
VDEV object has not been checked against NULL value before passing as
part of message to a next layer

CRs-Fixed: 2063561
Change-Id: I9c7ad08f1e201779cb433044a1525555a2ccaa34
2017-06-29 19:06:00 -07:00
Jeff Johnson
6fa1e0113b qcacld-3.0: Add HDD FIPS infrastructure
As part of the support for the FIPS certification feature add the
HDD infrastructure.

Change-Id: I76a545c42b10a662db04b5994de100c713a46c59
CRs-Fixed: 2065002
2017-06-29 19:05:58 -07:00
Jeff Johnson
6136fb90e2 qcacld-3.0: Add WMA FIPS infrastructure
As part of the support for the FIPS certification feature add the
WMA infrastructure.

Change-Id: I7e113cee8ba9a08c2efd1141bef84e43d530cdcb
CRs-Fixed: 2065002
2017-06-29 19:05:56 -07:00