Commit Graph

5328 Commits

Author SHA1 Message Date
Naveen Rawat
247a868164 qcacld-3.0: Program num tx chains for 11abg to FW
Program num tx chains for 11abg FW via pdev params. This will
help enhance power save in firmware.

Change-Id: I1f5815f2914f65928f8f3d72e53d409ecf6d1fe7
CRs-Fixed: 2056531
2017-07-03 19:09:32 -07:00
snandini
00a62e7493 Release 5.2.0.33
Release 5.2.0.33

Change-Id: I4d8dba031fc1bf9a31a0c1a68af1578ec1706aba
CRs-Fixed: 774533
2017-07-03 18:24:49 -07:00
Mukul Sharma
e44d054ec2 qcacld-3.0: Remove wow wake lock overloading
Currently, Host uses single wow_wake-lock for all wow
wakeup events like (auth/assoc/deauth/disassoc etc)
which raise difficulty to detect what is actual cause of
holding wake lock.
As a part of this fix, Add separate multiple wake locks
to remove wake lock overloading.

Change-Id: Iac0a6f73ac05dd3960a4ea0229190cb851808e16
CRs-Fixed: 2046511
2017-07-03 18:24:48 -07:00
Hanumanth Reddy Pothula
9c161dd8a7 qcacld-3.0: Add ini parm to control SAP restart on channel avoid indication
Restart SAP(P2P_GO) only if ini parameter, sap_restart_on_ch_avoid,
is set. By default its enabled.

Change-Id: I0aee79ba2d5e0cfa8a7b0c7b1901c61614944338
CRs-Fixed: 2023854
2017-07-03 18:24:47 -07:00
Hanumanth Reddy Pothula
0b5714337a qcacld-3.0: verify driver state when CDS scheduler getting closed
Presently, in cds_open() error handling, cds_sched_open is invoked only
in UNINTIALIZED or recovery state but same is not checked while invoking
cds_sched_close.

Invoke cds_sched_close only if driver is in UNITIALIZED state or WLAN
driver recovery is in progress.

Change-Id: I17e2cbe8f859cab4bc12d1a52a583833fb125ada
CRs-Fixed: 2010802
2017-07-03 18:24:45 -07:00
Hanumanth Reddy Pothula
0161e1d97a qcacld-3.0: Return success for STOP DRIVER command
Presently, STOP Driver command is not handled in driver
as interface down will takes care to close the modules
if there are no more interfaces up. But when framework
issues this command, it's going to bad state as driver
returns failure.

To mitigate this issue return SUCCESS for STOP DRIVER command.

Change-Id: I47e6898109a35e3194c18645c932c5b2cf5a73c8
CRs-Fixed: 2006563
2017-07-03 18:24:43 -07:00
Hanumanth Reddy Pothula
9343088016 qcacld-3.0: Invoke DEL_STA within driver on receiving STOP_AP
In some scenarios like, driver rmmod or on terminating hostapd or
on terminating dataservice process, driver receives directly STOP_AP
indication without DEl_STA indication from upper-layer, leading to
cleanup of stations connected to SAP won’t happen within driver.

To mitigate this issue call DEL_STA within driver on receiving
STOP_AP indication.

Change-Id: I7050f1788c1fa9a9ede190874a5d494f896abfff
CRs-Fixed: 2010222
2017-07-03 18:24:41 -07:00
snandini
2227c8aa40 Release 5.2.0.32Z
Release 5.2.0.32Z

Change-Id: I67d512197d76f93e6a71c2c960aa7e81442867b9
CRs-Fixed: 774533
2017-07-03 17:40:57 -07:00
Hanumanth Reddy Pothula
ca84ec5a44 qcacld-3.0: Clear current MC address list before configuring new list
Presently, on receiving new MC address list, Host is just updating
MC address list and sending same to FW, without clearing previously
configured MC address list. This may lead to MC address list not to
be cleanly configured in FW.

Before configuring new address, clear previously configured  MC
address list.

Change-Id: Ia0c79099d248c3d992b9fa420d46c1464229b03a
CRs-Fixed: 2009368
2017-07-03 17:40:56 -07:00
Will Huang
19d322b907 Revert "qcacld-3.0: Reject AssocReq without cipher IE to security SAP"
This reverts commit e21734860079b0a8bf9f3158a2bf1fbcc09d0855, because
it fails WPS_PIN certification test. Some ref-STA connect to SAP
without WPS IEs and any security IEs when test this case, but this case
can still pass if accept this Association Request.

Change-Id: I037752a78a72730f88569c2cf222da7e0cf6e085
CRs-Fixed: 2070525
2017-07-03 17:40:54 -07:00
Ravi Kumar Bokka
91a8f3c649 qcacld-3.0: Remove obsolete McastBcastFilter ini feature
The McastBcastFilter configuration item is not being used, and support
is being dropped from the driver. Remove the McastBcastFilter setting
feature from the driver.

Change-Id: I6fc0e48e31c01ba2df73c51b3fd9ec2a84571541
CRs-Fixed: 2045284
2017-07-03 17:40:52 -07:00
snandini
3e1bca79e3 Release 5.2.0.32Y
Release 5.2.0.32Y

Change-Id: I88f07d958ccff99dff1ef0e5307194a5d1cef24a
CRs-Fixed: 774533
2017-07-03 16:24:33 -07:00
bings
bd6bc472c1 qcacld-3.0: Correct channel width in hdd_chan_change_notify
For non-11n mode, set channel_type as NL80211_CHAN_NO_HT.

Change-Id: I170504990b7850fb6d8d1640fb7c661b2d43c122
CRs-Fixed: 2065328
2017-07-03 16:24:32 -07:00
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