Commit Graph

7297 Commits

Author SHA1 Message Date
Jeff Johnson
ae9adc89a0 qcacld-3.0: Fix long line in wlan_hdd_tdls.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I84f732a7ce5aed709d3992706ad15131b23eb391
CRs-Fixed: 2120627
2017-10-09 06:45:00 -07:00
Jeff Johnson
4fbee2fdce qcacld-3.0: Fix long line in wlan_hdd_power.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I9a139de0aaeb0f6f199906d98fb1dd2d84dbb635
CRs-Fixed: 2120628
2017-10-09 06:44:57 -07:00
Jeff Johnson
af007eaf97 qcacld-3.0: Fix long line in wlan_hdd_ftm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Ifbf847db86aac8cb435103a2634e3c8bfa7fab20
CRs-Fixed: 2120624
2017-10-09 06:44:54 -07:00
snandini
98d368cf23 Release 5.2.0.47U
Release 5.2.0.47U

Change-Id: Ie020dd60f1d7e333d4f7028533c8bb5bb0d1c2a1
CRs-Fixed: 774533
2017-10-09 03:47:58 -07:00
Hanumanth Reddy Pothula
714d7d5bd7 qcacld-3.0: Remove unnecessary assertion in SAP callback
Propagation from qcacld-2.0 to qcacld-3.0

In random testing cases, the SAP close may be called even before the BSS
is started. In such cases the SAP callback may not have been registered
and such scenarios may lead to unnecessary assertion. Just returning an
errror should do.

Remove the assert but retain the error notification.

Change-Id: Ief9ea45d2d7f3d910766e73a9e0dca5e34c85905
CRs-Fixed: 2121720
2017-10-09 03:47:57 -07:00
Hanumanth Reddy Pothula
09121df9d7 qcacld-3.0: Fix frame lenth information to cfg80211
Propagation from qcacld-2.0 to qcacld-3.0

During BSS frame update, frame_len is calculated as size of ieee80211_mgmt
and ielen. Since ieee80211_mgmt is a generic frame structure and different
frame structures are defined under union this may exceed the actual frame
len.

Fix by calculatiing offset of variable(ies) and ies length.

Change-Id: Ied8e4e604e41de1ac5ccc047ef5cc3cdb05a9445
CRs-Fixed: 2121711
2017-10-09 03:47:55 -07:00
Hanumanth Reddy Pothula
ab3959506f qcacld-3.0: Update ini param g_auto_detect_power_failure_mode
Update ini param g_auto_detect_power_failure_mode to incorporate below
values,
0 - Don't register wow wakeup event and FW crashes on power failure
1 - Register wow wakeup event and FW sends failure event to host on
    power failure
2 - Don't register wow wakeup event and FW silently rejuvenate on
    power failure
3 - Don't register wow wakeup event and the auto power failure detect
    feature is disabled in FW.

Change-Id: I8a704954ecbacadbc035c1523fa41a18b6300f66
CRs-Fixed: 2087144
2017-10-09 03:47:52 -07:00
snandini
d1dee0e5ee Release 5.2.0.47T
Release 5.2.0.47T

Change-Id: I27ec50843d8f15dd9731400d26c5d2df7a750afe
CRs-Fixed: 774533
2017-10-06 21:49:14 -07:00
Krunal Soni
bfd0549f67 qcacld-3.0: Initialize roam id to invalid value
Current driver has roam id uninitialized in anticipation that roam id
will be filled by SME APIs to correct value but in error conditions
that value may not be filled at all. In those kind of cases
initializing to invalid value will help to avoid any security breach.

CRs-Fixed: 2119198
Change-Id: I96e55cb91ef76df63dd6ba267130e1092fdcf899
2017-10-06 21:49:13 -07:00
Arif Hussain
34f720671a qcacld-3.0: Fix buffer overflow in wma_pdev_hw_mode_transition_evt_handler
Make sure num_vdev_mac_entries which is coming from firmware within
MAX_VDEV_SUPPORTED to avoid any buffer overflow or OOB read.

Change-Id: I92793a6bcfd46b288c3f496a6f6cc9b372f60c48
CRs-Fixed: 2119432
2017-10-06 21:49:10 -07:00
snandini
47232fca8f Release 5.2.0.47S
Release 5.2.0.47S

Change-Id: I350b8b82a588400692ab9bc78598ed144d80604f
CRs-Fixed: 774533
2017-10-06 19:30:51 -07:00
Krunal Soni
aadaa27fbd qcacld-3.0: Provide SME API to send unit test command to FW
Current driver forming a unit test command within HDD layer and uses
message passing method to deliver it to WMA layer which
requires HDD layer to have a knowledge of how to form a unit test command.

User SME API to send params to WMA layer and let WMA form a unit test
command and send it directly to FW through WMI layer instead of HDD
forming and passing it down.

CRs-Fixed: 2118725
Change-Id: Id1838939813e6cd2d52cee8720a1f4e0ca34329b
2017-10-06 19:30:50 -07:00
snandini
964f09873f Release 5.2.0.47R
Release 5.2.0.47R

Change-Id: I7277a5f42bfa5979299b016599095c03be2eba8a
CRs-Fixed: 774533
2017-10-06 18:11:56 -07:00
Jeff Johnson
aafc84a18e qcacld-3.0: Fix long lines in wlan_hdd_conc_ut.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: I240fcea5af2cfb4f3c1b660784fc7d37bc948c3c
CRs-Fixed: 2120625
2017-10-06 18:11:51 -07:00
Jeff Johnson
53367842cb qcacld-3.0: Fix long lines in wlan_hdd_assoc.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: If7b0e259a4399cc829fa4d0186c4699ae7980706
CRs-Fixed: 2120617
2017-10-06 18:11:39 -07:00
Rajeev Kumar
ca8ef9d1ab qcacld-3.0: Enable object manager logging
Object manager logging is disabled hence enable object
manager logging.

Change-Id: Ibc3e0f45f54b8e3fa34659f0ea6f26ed5d21fc55
CRs-Fixed: 2122525
2017-10-06 18:11:27 -07:00
snandini
85f5e632a3 Release 5.2.0.47Q
Release 5.2.0.47Q

Change-Id: I48d3c1d64dfb13122ef13060e0616918483b928f
CRs-Fixed: 774533
2017-10-06 14:18:13 -07:00
Krunal Soni
50a0554d12 qcacld-3.0: Do boundary check on num_vdev_mac_entries param
Current doesn't perform boundary check on num_vdev_mac_entries param
which coming from firmware. Without boundary check, driver may be
exposed to buffer overflow.

Check against the boundary limit before using it.

CRs-Fixed: 2119430
Change-Id: I502926a7f783acc7b73a3fbbbd70386a099b48b3
2017-10-06 14:18:12 -07:00
Vignesh Viswanathan
adb1b654b7 qcacld-3.0: Add check for if_id in wma_tbttoffset_update_event_handler
Currently if_id used in the for loop is incremented based on vdev_map != 0
and vdev_map is a uint_32, received from FW, and is right shifted by one bit
for each iteration. This could result in if_id going upto max of 31 and cause
OOB read.

Add sanity check to make sure if_id is less than max_bssid.

Change-Id: I7e0c4e9a26cb67f41e35c60c2756d7ad02cf43ea
CRs-Fixed: 2119443
2017-10-06 14:18:10 -07:00
Himanshu Agarwal
847dd5d509 qcacld-3.0: Add sanity check for vdev id to prevent OOB access
Add sanity check for vdev id in wma_roam_event_callback() to prevent
out of bound access of memory in wma_roam_better_ap_handler().

Change-Id: If3cf06a8eca767201fdd8b056bee6d773938a2a6
CRs-Fixed: 2119400
2017-10-06 14:18:08 -07:00
snandini
31c6047d1e Release 5.2.0.47P
Release 5.2.0.47P

Change-Id: Id435cd19796b58935a0ba47427d27093554baa03
CRs-Fixed: 774533
2017-10-06 12:27:49 -07:00
Vignesh Viswanathan
a1bb0929b9 qcacld-3.0: Send HLP packet to IP layer for FILS
In case of FILS connection, form 802.3 packet out of
HLP IE info parsed from assoc response(if present) and
send the same to IP layer.

Change-Id: I0e077ee48030da84bfe9f987722f96ac2e05ae36
CRs-Fixed: 2034452
2017-10-06 12:27:49 -07:00
Vignesh Viswanathan
34cf475c6b qcacld-3.0: Add FILS HLP parsing support in Assoc Resp
Parse and update HLP IE info if present in Assoc resp.

Change-Id: If166d71459b622e44511370e49c2ef8d983f8b76
CRs-Fixed: 2034452
2017-10-06 12:27:46 -07:00
Sridhar Selvaraj
6d3e0d78a3 qcacld-3.0: Add FILS HLP Support for Assoc Request
This change adds support to append/store the HLP IE(if present)
in req_ie as part of connect request from Supplicant and adds the
same in Association request for FILS connection.

Change-Id: I8cd3e28b462a8ac2bd9eee2a383f9d0886adfa83
CRs-Fixed: 2034452
2017-10-06 12:27:42 -07:00
Vignesh Viswanathan
21d9ecbf2a qcacld-3.0: Add kek_len to GTK Offload params in PMO component structure
Add new kek_len param used for FILS in the pmo_gtk_req structure under
PMO GTK public structures

Change-Id: I4fc25026d9fc004f267b9461d1671f8b1ac57f53
CRs-Fixed: 2081252
2017-10-06 12:27:39 -07:00
Poddar, Siddarth
c2c0814c7a qcacld-3.0: Add support to capture data stall event from FW
Add support in wma_flush_complete_evt_handler to capture
data stall event from Firmware and post the message to
sys queue.

CRs-Fixed: 2086176
Change-Id: I4e819b1ae711b3867fa46ff638d4bfd2054519ed
2017-10-06 12:27:36 -07:00
Poddar, Siddarth
1b27cd093c qcacld-3.0: Send data stall status diag event
Add support in data stall detection event to send
diag event to QXDM.

CRs-Fixed: 2086176
Change-Id: Ifad03e0882ccce09a7bf90c8e560f24146690895
2017-10-06 12:27:34 -07:00
Poddar, Siddarth
db568161cb qcacld-3.0: Add support to post data stall event to SYS queue
Add support to post data stall event to sys message queue
to handle it in data detection module and finally post
diag event to QXDM. Add support to send  NUD failure
diag event.

CRs-Fixed: 2086176
Change-Id: I72ba36d4c2f6ef2eb495ad1586f74af0f3c69254
2017-10-06 12:27:32 -07:00
Poddar, Siddarth
348727860d qcacld-3.0: Add new data stall detection module in hdd
Add data stall detection module in hdd which handles data
stall reported by host or fw and take necessary recovery
steps based on the data stall type.

Change-Id: Idf6c43f55d1bc115a0c06b4c6ef766ff3ed09bee
CRs-Fixed: 2090643
2017-10-06 12:27:29 -07:00
Krunal Soni
a5ccb8007f qcacld-3.0: Keep wake lock while mac config is getting changed
Host should keep the wake lock from the time it sends
WMI_PDEV_SET_MAC_CONFIG_CMDID to FW till it receives the
WMI_PDEV_SET_MAC_CONFIG_RESP_EVENTID. This will avoid any fatal
crash condition.

Change-Id: Id16a1957b38acee6cf45c123ea9dbab25aae9b39
CRs-Fixed: 2070779
2017-10-06 12:27:26 -07:00
snandini
3635ad27ba Release 5.2.0.47O
Release 5.2.0.47O

Change-Id: I23eb38275be6bc1baf7cbff03ed66975638d576d
CRs-Fixed: 774533
2017-10-06 11:45:08 -07:00
Yeshwanth Sriram Guntuka
32cc7e8136 qcacld-3.0: Increase default value of Probe after HB timer to 70msecs
If Probe resp is received just after the Probe after
HB timer expires then it results in disconnection.

Fix is to increase the probe after hb timer default
value to 70msecs.

Change-Id: I0d4ac3e567def348c6b03b41c54579f332099de8
CRs-Fixed: 2111579
2017-10-06 11:45:07 -07:00
snandini
e29c72d26c Release 5.2.0.47N
Release 5.2.0.47N

Change-Id: Iecab039357de810568165b135750721a833a473f
CRs-Fixed: 774533
2017-10-06 10:25:25 -07:00
Srinivas Dasari
3030f5987c qcacld-3.0: Return EOPNOTSUPP if fw_mem_dump is not supported
wlan_hdd_cfg80211_get_fw_mem_dump() currently returns ENOTSUPP
if the feature is not supported by firmware. Return EOPNOTSUPP
instead of ENOTSUPP, which looks more appropriate.

Change-Id: I1ca2ebd3fa572ba3caae29ef9f1e396693378fb2
CRs-Fixed: 2088667
2017-10-06 10:25:24 -07:00
snandini
1dd1f72c44 Release 5.2.0.47M
Release 5.2.0.47M

Change-Id: I27d0b44780932dde8875b77f4278a31ac3dfcc05
CRs-Fixed: 774533
2017-10-06 07:58:09 -07:00
Anurag Chouhan
4085ff7e51 qcacld-3.0: Add vendor event to get the driver hang reason
Add Vendor Event to get the driver hang reason indicating to the
user space that the driver has detected an internal failure.
This event carries the information indicating the reason that triggered
this detection.

Change-Id: I3934f2a18c796ed3b53175dcbe7efd7f4d1409b9
CRs-fixed: 2098498
2017-10-06 07:58:08 -07:00
snandini
3fbcf86e45 Release 5.2.0.47L
Release 5.2.0.47L

Change-Id: Id2b04746d63ad6d0280c83debdc7828feff252b1
CRs-Fixed: 774533
2017-10-06 04:25:25 -07:00
Jeff Johnson
7b92c0fdaf qcacld-3.0: Rename pAdapter in wlan_hdd_main.h
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Id6ab1b413a3eec66c88dce52ce14dd3693d15a34
CRs-Fixed: 2119860
2017-10-06 04:25:24 -07:00
Jeff Johnson
fd33cce7fb qcacld-3.0: Rename pAdapter in wlan_hdd_hostapd.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I29e0573d41628692838037c79007ef983a0cbf9f
CRs-Fixed: 2119855
2017-10-06 04:25:21 -07:00
snandini
eaa91ef6ed Release 5.2.0.47K
Release 5.2.0.47K

Change-Id: I89e47838d4dcdefb8fa2f86405d3774bcd725f84
CRs-Fixed: 774533
2017-10-06 02:36:42 -07:00
Jeff Johnson
25c77340d9 qcacld-3.0: Rename pAdapter in wlan_hdd_ioctl.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I3d3c52f80a402231dd2a742cf019bf5813791fe7
CRs-Fixed: 2119854
2017-10-06 02:36:42 -07:00
Jeff Johnson
089d043fb8 qcacld-3.0: Rename pAdapter in wlan_hdd_ipa.c
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I846cf0b6effcfacce22ce122bf73064a230a05c1
CRs-Fixed: 2119853
2017-10-06 02:36:39 -07:00
Jeff Johnson
057249750c qcacld-3.0: Rename pAdapter in wlan_hdd_scan.c
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Iee939c8df097967143b77cbffe46fba6e69cd52a
CRs-Fixed: 2119849
2017-10-06 02:36:36 -07:00
snandini
fbdb5cb413 Release 5.2.0.47J
Release 5.2.0.47J

Change-Id: Ic88145b240b2196a7f828811be9b6b2041afb63f
CRs-Fixed: 774533
2017-10-06 00:13:09 -07:00
Varun Reddy Yeturu
84637fcaa0 qcacld-3.0: Check the length of IE's before appending
Check the length of the IE's before appending them
and storing them in the session in
lim_process_update_add_ies.

Change-Id: I70d26638a58998c82a8810d7c2181d1f24c56e19
CRs-Fixed: 2119729
2017-10-06 00:13:08 -07:00
Varun Reddy Yeturu
87c8ad8925 qcacld-3.0: Fix the size of array ch_list in sme_set_plm_request
Currently the size of array ch_list in sme_set_plm_request is
defined as WNI_CFG_VALID_CHANNEL_LIST and this is incorrect.
This is just an index to the corresponding CFG item. Fix the
size to WNI_CFG_VALID_CHANNEL_LIST_LEN which is the maximum
size that can be passed from the source buffer.

Change-Id: I90086f2c73ee09cfc9d63a327b464f4017f5b37f
CRs-Fixed: 2120725
2017-10-06 00:13:05 -07:00
Srinivas Girigowda
bc8454e978 qcacld-3.0: Properly advertise mem_dump feature support
Currently, mem_dump feature support is advertized just based
on the compile macro, if the firmware does not support this
feature, still code ends up sending true to the user space.

Fix this by properly advertising the mem_dump feature support
based on the the FW support.

Change-Id: I4d601f764c6598c51c48d43e24e15fb6c35875bd
CRs-Fixed: 2077931
2017-10-06 00:13:02 -07:00
Varun Reddy Yeturu
4353e4f156 qcacld-3.0: Check for valid vdev ID in SWBA event handler
After deriving the vdev_id from the vdev map in
wma_beacon_swba_handler check for the validity
of the vdev_id

Change-Id: Ifc4577d8a00f447e2bcfa4e01fce5ac2dbe96a4d
CRs-Fixed: 2120751
2017-10-06 00:12:59 -07:00
snandini
7cbd117885 Release 5.2.0.47I
Release 5.2.0.47I

Change-Id: I65b86ac0a191b6cc51c918ba4617b3f8dc977d07
CRs-Fixed: 774533
2017-10-05 20:54:47 -07:00
Jeff Johnson
f23a89b88e qcacld-3.0: Rename pAdapter in wlan_hdd_wext.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I262e70dfaf24e11c61c848b8d53e39f9be838baa
CRs-Fixed: 2119844
2017-10-05 20:54:47 -07:00