Commit Graph

5333 Commits

Author SHA1 Message Date
Yun Park
a9319801ae qcacld-3.0: Fix Datapath kernel checkpatch warnings in htt_t2h.c
Fix Datapath kernel checkpatch warnings in htt_t2h.c

Change-Id: Ib8d870309ff534c2c658006df3598e559eb5fa41
CRs-Fixed: 2032874
2017-06-14 08:24:04 -07:00
Yun Park
f387e617ca qcacld-3.0: Fix Datapath kernel checkpatch warnings in htt_fw_stats.c
Fix Datapath kernel checkpatch warnings in htt_fw_stats.c

Change-Id: Ia6b62719abe9186af2e0a581d7d9a26552b7bba1
CRs-Fixed: 2032874
2017-06-14 08:24:03 -07:00
Yun Park
a63df43b92 qcacld-3.0: Fix Datapath kernel checkpatch warnings in htt_h2t.c
Fix Datapath kernel checkpatch warnings in htt_h2t.c

Change-Id: If590589ca3fdd0dde238ee540dc3435042665fce
CRs-Fixed: 2032874
2017-06-14 08:24:01 -07:00
Yun Park
bd259aec9c qcacld-3.0: Fix Datapath kernel checkpatch warnings in htt_tx.c
Fix Datapath kernel checkpatch warnings in htt_tx.c

Change-Id: I8c1b967feb742ce3a1acec437822720421e1b333
CRs-Fixed: 2032874
2017-06-14 08:24:00 -07:00
Yun Park
16cf32a688 qcacld-3.0: Fix Datapath kernel checkpatch warnings in htt_rx.c
Fix Datapath kernel checkpatch warnings in htt_rx.c

Change-Id: I922f58728c5b28afa147d6f6781356f4f5f37dc4
CRs-Fixed: 2032874
2017-06-14 08:23:58 -07:00
Nitesh Shah
f9a09ff89a qcacld-3.0: Send DBS Scan selection policy command to WMI
This change address sending DBS Scan selection policy command
to WMI.

Change-Id: I0117845ac28e3ca8977eefc09b738a79181b4115
CRs-Fixed: 2029280
2017-06-14 08:23:57 -07:00
Kapil Gupta
eb38bfc9c8 qcacld-3.0: Add changes to add MBO IE in assoc request
Add changes to add support for unpacking of MBO IE in association
request packet.

Change-Id: I575f718b0804e679bab31432694c97e45bd87ca0
CRs-Fixed: 2044512
2017-06-14 08:23:55 -07:00
snandini
79a6047211 Release 5.2.0.29R
Release 5.2.0.29R

Change-Id: If585275380df8257da28165378993d7a00a13b6b
CRs-Fixed: 774533
2017-06-14 07:28:00 -07:00
Deepak Dhamdhere
6d2c97a1d8 qcacld-3.0: Enable event handler for WOW_REASON_ROAM_HO
When roaming engine in firmware comes across handoff-failure and
host processor is in sleep state, it sends WOW_REASON_ROAM_HO. Enable
that reason code to follow the code path that leads into
wma_roam_event_callback() where it is handled as normal.
Modify peer debug log messages for better information for this
event.

CRs-Fixed: 2002239
Change-Id: I9ed854382287077ea66de78ce05e3d24c74058f3
2017-06-14 07:27:59 -07:00
Jeff Johnson
363764ff55 qcacld-3.0: Specify a policy when parsing TSF commands
In __wlan_hdd_cfg80211_handle_tsf_cmd(), nla_parse() is called to
parse the TSF command attributes.  Currently a policy is not
specified. This prevents nla_parse() from doing basic validation of
the attributes, and in some circumstances could result in a buffer
overread. To avoid this issue define an appropriate policy and use it
in the invocation of nla_parse().

Change-Id: Ic246cf8cf78b043af38198c301465c088b12184a
CRs-Fixed: 2054776
2017-06-14 07:27:58 -07:00
snandini
3ecca61823 Release 5.2.0.29Q
Release 5.2.0.29Q

Change-Id: I99d15c85d29b25955671e27a585753d27f3b0540
CRs-Fixed: 774533
2017-06-14 03:21:27 -07:00
Ajit Pal Singh
9b0ebdb769 qcacld-3.0: Restart SAP with CSA/ECSA when gWlanMccToSccSwitchMod=3
Restart SAP with CSA/ECSA when ini variable gWlanMccToSccSwitchMod=3.
Currently ini variable setting gWlanMccToSccSwitchMod=2 was
causing SAP to restart with CSA.

Change-Id: I9a4b68cd154fa63325d146510832c2410f2dc244
CRs-Fixed: 2058154
2017-06-14 03:21:26 -07:00
snandini
edd1957723 Release 5.2.0.29P
Release 5.2.0.29P

Change-Id: Ib92c79273b773a530b78e212c1c729f7dc723313
CRs-Fixed: 774533
2017-06-14 02:28:35 -07:00
Dustin Brown
ab6029b34a qcacld-3.0: Reject FTM command unless device is in FTM mode
Currently, the device mode is not verified before servicing the FTM
command. Reject FTM commands unless the device is in FTM mode.

Change-Id: Ia27dbe5922755a94e80ddc1c5824b8082ae3325a
CRs-Fixed: 2051888
2017-06-14 02:28:35 -07:00
Naveen Rawat
257386f1ea qcacld-3.0: Add lockless API for csr roam_sycn callback
CSR API for roam_sync callback acquires SME lock for its operation and
have multiple exit points. This creates risk of missing on releasing lock.
This change acquires and releases lock once in csr_roam_synch_callback and
add a lock less API that does logic handling.

Change-Id: Ifab0a8cce4b0746364ddbde44347d497999cc821
CRs-Fixed: 2048614
2017-06-14 02:28:33 -07:00
snandini
af1e5edac1 Release 5.2.0.29O
Release 5.2.0.29O

Change-Id: I64a22ae4ebf47ee38415adcbbff5b776639c078b
CRs-Fixed: 774533
2017-06-14 01:41:04 -07:00
Paul Zhang
e73d1a3b3a qcacld-3.0: send deauth to AP before teardown link
When heartbeat failure happens, the heartbeat handler
lim_handle_heart_beat_failure_timeout will tear down
the link and not send the deauth frame to peer.

Change-Id: Ifdef06d366c305d6c5f975f48356a83a77cf7b2c
CRs-Fixed: 2043958
2017-06-14 01:41:04 -07:00
snandini
8c51d843fb Release 5.2.0.29N
Release 5.2.0.29N

Change-Id: I62b9944a0c84d49e61dc80574bcc376a8383c72a
CRs-Fixed: 774533
2017-06-14 00:58:40 -07:00
Hong Shi
2d384fdaf8 qcacld-3.0: Add ini to configure per band mgmt rate
qcacld-2.0 to qcacld-3.0 propagation

Current ini setting doesn't support configuring per band mgmt rate.
Add ini to configure per band mgmt rate.

Change-Id: I340b09324fc16b15846598b17de9976f92b93252
CRs-Fixed: 2038854
2017-06-14 00:58:39 -07:00
Arif Hussain
ee6770181e qcacld-3.0: Avoid session and peer with same MAC address
vdev create request with selfMAC address matching to any of the peer MAC
address cause crash in firmware, So before creating new session/peer
make sure that there is no peer/session with same MAC address.

Change-Id: I7be415365ab7112b013b478139deb451863d52d8
CRs-Fixed: 1115373
2017-06-14 00:58:37 -07:00
Himanshu Agarwal
7b54106e8f qcacld-3.0: Reduce log level of some prints in ol_tx_data()
Reduce log level of some prints in ol_tx_data() from WARN
to DEBUG.

Change-Id: I1a8d3fb5e1f99be6f243c9287b814373d6b121c0
CRs-Fixed: 2052590
2017-06-14 00:58:36 -07:00
Nitesh Shah
d6b76060c3 qcacld-3.0: Avoid calling decrement session twice in SAP removal
While disabling SAP session, policy_mgr_decr_session_set_pcl()
is getting called twice, one from mc_thread (hdd_hostapd_sap_
event_cb()) and other from hostapd (__wlan_hdd_cfg80211_stop
_ap()). This can corrupt the pm_conn_connection_info table.

This change removes policy_mgr_decr_session_set_pcl() getting
called from hdd_hostapd_sap_event_cb().

Change-Id: Ib16af839060cb2dd3cb9f9957fd6dbb40c3b79dc
CRs-Fixed: 2055025
2017-06-14 00:58:34 -07:00
snandini
b9353fe93a Release 5.2.0.29M
Release 5.2.0.29M

Change-Id: I5649fc13d70e171c69a821f796b96341c6c7b8a9
CRs-Fixed: 774533
2017-06-14 00:20:49 -07:00
Sandeep Puligilla
aa61e43ade qcacld-3.0: Initiate self recovery in unmap timeout handler
Initiate self recovery when firmware failed to send the unmap
event within unmap timeout OL_TXRX_PEER_UNMAP_TIMEOUT value.

Change-Id: I053e34682cb610cb258c7dabdb3f84a4b59525f1
CRs-Fixed: 2023387
2017-06-14 00:20:48 -07:00
snandini
adb751620f Release 5.2.0.29L
Release 5.2.0.29L

Change-Id: I22a40360a6092a78aa669c0309e562ae8808f8a4
CRs-Fixed: 774533
2017-06-13 23:31:05 -07:00
Selvaraj, Sridhar
64b0a9ce71 qcacld-3.0: Update channel info if not provided in FASTREASSOC command
Currently, driver is rejecting the FASTREASSOC command if the channel
is not provided as part of it (or) channel is given as zero.

Update channel from BSS description of the given BSS and honour
the FASTREASSOC command even if the channel is given zero.

Change-Id: Ie67a75fb7ccf470b95454842b7f46baa9b09d54c
CRs-Fixed: 2046547
2017-06-13 23:31:04 -07:00
Jeff Johnson
63d1ac84f0 qcacld-3.0: Validate QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI
Currently in __wlan_hdd_cfg80211_set_scanning_mac_oui() the
QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI attribute is copied without
first performing a length check. Add a check to ensure the attribute
is of the expected length.

Change-Id: I12ee10ed5760af6e5069707ae14b26f275da1829
CRs-Fixed: 2054687
2017-06-13 23:31:02 -07:00
Jeff Johnson
c42ed5caf5 qcacld-3.0: Validate vendor abort scan command
In __wlan_hdd_vendor_abort_scan(), nla_parse() is invoked without
specifying a policy. This can result in a buffer overread when
processing the QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE attribute. To avoid
this issue use the existing "scan_policy" when invoking nla_parse().

Change-Id: Ia3e5cb7535bf0f700399e4a49c9c5da362a3ccf6
CRs-Fixed: 2054775
2017-06-13 23:31:01 -07:00
Jeff Johnson
45caf63622 qcacld-3.0: Validate vendor scan command
Currently in __wlan_hdd_cfg80211_vendor_scan() there are several
attributes which are not properly validated, and this can lead to a
buffer overread. In order to avoid these issues:
1) Define an appropriate nla_policy and specify this policy when
   invoking nla_parse().
2) Explicitly validate the size of the attributes nested in the
   QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES attribute.

Change-Id: I1e0d9ecf87839031fbbca9616e4bae0b0c127404
CRs-Fixed: 2054773
2017-06-13 23:30:59 -07:00
snandini
f68a0591e3 Release 5.2.0.29K
Release 5.2.0.29K

Change-Id: I3199f37607ce000c6db94422ad8115156eff5d65
CRs-Fixed: 774533
2017-06-13 22:53:31 -07:00
Jeff Johnson
dd7bd3eed7 qcacld-3.0: Avoid buffer overread when retrieving pref freq list
Currently in __wlan_hdd_cfg80211_get_preferred_freq_list(),
nla_parse() is called to parse the command attributes without
specifying a policy. This prevents nla_parse() from doing basic
validation of the attributes, and in some circumstances could result
in a buffer overread. To avoid this issue define an appropriate policy
and use it in the invocation of nla_parse().

Change-Id: I5d90b77562adb1be0d8789f1ad320612402ba90b
CRs-Fixed: 2054742
2017-06-13 22:53:30 -07:00
Jeff Johnson
5286eac254 qcacld-3.0: Fix buffer overread & overflow in DISA handler
Currently in hdd_fill_encrypt_decrypt_params() there are multiple
issues with the incoming cfg80211 vendor command handling:
1) A policy is not supplied when invoking nla_parse() which prevents
   basic sanity of the incoming attribute stream.
2) The length of attribute QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN is
   not properly validated.
3) The length of attribute QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA
   is not properly validated.

To address these issues:
1) Create an appropriate nla_policy and specify this policy when
   invoking nla_parse().
2) Validate the length of QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN to
   prevent potential buffer overflow.
3) Validate the length of QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA to
   prevent potential buffer overread.

Change-Id: Ibb86897f249010c94c4098b283aad7a7f95ab9a2
CRs-Fixed: 2054760
2017-06-13 22:53:28 -07:00
snandini
a4fdbf6c05 Release 5.2.0.29J
Release 5.2.0.29J

Change-Id: I3e3f209e70a12e4d64c829b0caceb4581f97fd6d
CRs-Fixed: 774533
2017-06-13 11:38:35 -07:00
Naveen Rawat
af4388c513 qcacld-3.0: Remove obsolete SCH code
Remove dead code present in SCH module.

Change-Id: If428504a9e5288b9bc2bbba27fe1cf5a38746874
CRs-Fixed: 2051304
2017-06-13 11:38:35 -07:00
snandini
b4828397ef Release 5.2.0.29I
Release 5.2.0.29I

Change-Id: Ie5b24ee11632a7efd34942fc6baf285f2898240b
CRs-Fixed: 774533
2017-06-12 20:52:58 -07:00
Yuanyuan Liu
3d62f6a8a7 qcacld-3.0: Re-phrase debug message for wlan mac
Re-phrase debug message of wlan mac to avoid confusion.

CRs-Fixed: 2058511
Change-Id: Iae85ad8ea195e16d137ac4ced3c8127803bac35a
2017-06-12 20:52:54 -07:00
Dustin Brown
8f3b0561bd qcacld-3.0: Specify policy for txpower_scale
__wlan_hdd_cfg80211_txpower_scale() calls nla_parse without specifying
a policy. Specify an nla policy with the expected attribute information
when calling nla_parse in __wlan_hdd_cfg80211_txpower_scale().

Change-Id: I6ff8a986d5d3a7137351cf66e19ca1a952b9f5f1
CRs-Fixed: 2054748
2017-06-12 20:52:38 -07:00
Jeff Johnson
e5f33ba148 qcacld-3.0: Avoid buffer overread when setting probable channel
Currently in __wlan_hdd_cfg80211_set_probable_oper_channel,
nla_parse() is called to parse the command attributes without
specifying a policy. This prevents nla_parse() from doing basic
validation of the attributes, and in some circumstances could result
in a buffer overread. In addition, the tb array is not sized
correctly. To avoid these issues properly size the tb array, and
define an appropriate policy and use it in the invocation of
nla_parse().

Change-Id: I1d4bc3d1f09f0767a3cbd5ed84dc214f167c3c4d
CRs-Fixed: 2054744
2017-06-12 20:52:22 -07:00
snandini
fa45f77ddc Release 5.2.0.29H
Release 5.2.0.29H

Change-Id: I111c66a3233b7f523e8dfc4958b98ae6a56b21d9
CRs-Fixed: 774533
2017-06-12 17:19:29 -07:00
Nachiket Kukade
8003d257b9 qcacld-3.0: Add and use API to check FW Down indication bit during probe
When commands to Firmware fail during probe due to Firmware being down, in
most cases QDF_BUGs are hit, not allowing re-probing to take place. A new
API is defined to check if the failure is due to Firmware being down or not.
If so, return error gracefully allowing re-probing to take place

Change-Id: Ib2f21a6f1ced1c16e9d2bdbda810b160ff63e2c6
CRs-fixed: 2027444
2017-06-12 17:19:28 -07:00
snandini
caf8c34bff Release 5.2.0.29G
Release 5.2.0.29G

Change-Id: I5372aaaa3c14ca40c5dd7d423fcd1406c125b99d
CRs-Fixed: 774533
2017-06-12 15:24:23 -07:00
Sandeep Puligilla
b0e017c581 qcacld-3.0: Free the csr profile after connection
Free the CSR profile after successful connection.

Change-Id: I710ce0fae904db9d597590ce9860ca38fc5f7a34
CRs-Fixed: 2059336
2017-06-12 15:24:22 -07:00
snandini
dbf9aa5587 Release 5.2.0.29F
Release 5.2.0.29F

Change-Id: I7c39425f5a083379b92d3acba452bf889cf3a160
CRs-Fixed: 774533
2017-06-12 14:32:47 -07:00
Naveen Rawat
c4a0e6643e qcacld-3.0: Set SMPS intolrent vdev param
Set WMI_VDEV_PARAM_SMPS_INTOLERANT when a VDEV cannot be allowed to
send SMPS frame. This is needed as certain AP wont properly handle
SMPS frames.

Change-Id: I1dd30bcb4fcaf312fa376cbfe3c1fb9c0d37750a
CRs-Fixed: 2049789
2017-06-12 14:32:46 -07:00
snandini
266df6e318 Release 5.2.0.29E
Release 5.2.0.29E

Change-Id: I7e912afe86d3e6a93efa8574303871bdd95333ba
CRs-Fixed: 774533
2017-06-12 13:26:07 -07:00
Kiran Kumar Lokere
3beeb95c60 qcacld-3.0: Use regulatory component api to check 11d support
Replace the legacy csr api with regulatory component public api
to check if the 11d support is enabled by host.

Change-Id: I53c2378cf010693d4efa7ff8ff611e6062569adb
CRs-Fixed: 2048784
2017-06-12 13:26:06 -07:00
snandini
7f667c6bb7 Release 5.2.0.29D
Release 5.2.0.29D

Change-Id: I68e31677664e50c7ec28e2a009c4e8e6d7d181e9
CRs-Fixed: 774533
2017-06-11 18:10:39 -07:00
Himanshu Agarwal
5f5e16692d qcacld-3.0: Fix buf replenish logic and handle error pkts
Fix replenishing logic by taking care of fragments as well
in monitor mode. Also drop the packets with mpdu_length_err
bit set in rx attention desc and don't send those packets to
upper layers.

Change-Id: Iaeeb0e40e4988ca5a2d4c5e7c98ed3f82dfca533
CRs-Fixed: 2037633
2017-06-10 23:30:56 -07:00
snandini
2a09ca3383 Release 5.2.0.29C
Release 5.2.0.29C

Change-Id: Ie4fc4c183990fa1210913b34cbc66d0976c8cf90
CRs-Fixed: 774533
2017-06-09 21:36:31 -07:00
Dustin Brown
20b6fcfc17 qcacld-3.0: Add gScanBackoffMultiplier ini item
For Network Listen Offload and Preferred Network Offload, the fast scan
period is multiplied by scan_backoff_multiplier after max cycles have
occurred. Add a new configuration item, gScanBackoffMultiplier, to
configure scan_backoff_multiplier.

Change-Id: I832d3e058d1c6c0b441090039204d68502e2b96d
CRs-Fixed: 2035197
2017-06-09 21:36:30 -07:00