Commit Graph

7177 Commits

Author SHA1 Message Date
Yun Park
cc720f0729 Revert "qcacld-3.0: Reset to NULL after freeing the memory"
This reverts commit If6a1b2857d14f5fff2f47e541156ce2c27fb33a3

Fix build error caused by missing SMMU change propagation,
where changed tx_comp_base to tx_comp_ring.

Change-Id: Ie845b9da0fa6272dfe95abaaf587a583fb4710b3
CRs-Fixed: 2119811
2017-10-12 13:57:45 -07:00
Amar Singhal
5e2d5f0047 qcacld-3.0: Add check for wiphy band while populating it
Wiphy band can be NULL since it is dynamically allocated depending
on some condition. So check for NULL before populating it.

CRs-Fixed: 2122279
Change-Id: If88045e2ebbb6bceb0ed3b5337cc70778b21f832
2017-10-12 13:57:41 -07:00
Naveen Rawat
c8096b4690 qcacld-3.0: Fix values for CFG_11AG_NUM_TX_CHAIN_NAME
Fix min, max and default values for CFG_11AG_NUM_TX_CHAIN_NAME

Change-Id: I50c84f08376fd5955206c02693e449c24ff364b8
CRs-Fixed: 2117874
2017-10-12 13:57:37 -07:00
snandini
bc6af4c186 Release 5.2.0.48
Release 5.2.0.48

Change-Id: I6e313ca7b053752b57a4a286080eb1ebb42c8490
CRs-Fixed: 774533
2017-10-12 13:57:33 -07:00
Naveen Rawat
6fc3c50ad0 qcacld-3.0: Save processed AUTH frames seq number in pe_session
In case STAUT is using auto-switch auth type for WEP, a retried AUTH frame
from AP can mess up our state machine and connection will fail. Save seq
number of processed auth so that retried frame can be dropped in host.

Change-Id: I00cedf594309e0bb9b4bb8f0ced2929e7d00f64d
CRs-Fixed: 2102402
2017-10-12 13:57:28 -07:00
Naveen Rawat
7e7af3ca75 Revert "qcacld-3.0: Add delay in sending open system auth frame"
This reverts Change-Id: I6bc7097ec7568fc65a379c7c31c96d5874f1e216

Change-Id: Ic63b451f507904b812b1874d9911f47f265aad23
CRs-Fixed: 2102402
2017-10-12 13:57:24 -07:00
Yun Park
01deb2cbba qcacld-3.0: Set IPA ownership for intra-BSS Tx packets
Set IPA ownership for intra-BSS Tx packets to avoid skb_orphan(), and
clear the ownership after check it to avoid ipa_free_skb() is called
when Tx completed.

Change-Id: I03883773e418bb5518ea63a324d22503173ea436
CRs-Fixed: 2062911
2017-10-12 13:57:21 -07:00
Yu Wang
66a250bbb5 qcacld-3.0: add ini config for PTP options
Add ini param 'gtsf_ptp_options' to control
PTP options, it's a bitmap:
bit0 - PTP_OPT_RX(0x1)
  set this bit to enable RX time stamping
bit1 - PTP_OPT_TX(0x2)
  set this bit to enable TX time stamping
bit2 - PTP_OPT_RAW(0x4)
  set this bit to use raw time as timestamp
bit3 - TSF_DBG_FS(0x8)
  set this bit to add device attriubte 'tsf' for iface

The default value of gtsf_ptp_options is 0xf

Propagated from qcacld-2.0.

Change-Id: Ie53d503bdd2e85790502583a238ee138f4bcf6c6
CRs-Fixed: 2079466
2017-10-12 13:57:17 -07:00
snandini
b041b7a809 Release 5.2.0.47Z
Release 5.2.0.47Z

Change-Id: I0e67649cd752215494d47c14c6fdf7637e0eacda
CRs-Fixed: 774533
2017-10-12 13:57:13 -07:00
Naveen Rawat
668dee36c7 qcacld-3.0: Avoid integer overflow in lim_update_ibss_prop_add_ies
In function lim_update_ibss_prop_add_ies size of a malloc is based on
sum of two integers. Add check for integer overflow before malloc.

Change-Id: Ia7f1b306e6eb99ee0cea9f2ef00123ca66a5c062
CRs-Fixed: 2119673
2017-10-12 13:57:09 -07:00
snandini
5ed9e96084 Release 5.2.0.47Y
Release 5.2.0.47Y

Change-Id: I2d6b6199caa5ea0f4d82e5edcc30247b684f86c6
CRs-Fixed: 774533
2017-10-12 13:57:05 -07:00
Jeff Johnson
5a6b660768 qcacld-3.0: Replace typedef tSirLedFlashingReq
The current driver strategy is to converge on unified APIs, and the
unified WMI struct flashing_req_params conveys the same information as
typedef tSirLedFlashingReq, therefore replace tSirLedFlashingReq with
struct flashing_req_params.

Change-Id: I4ef75ee3bff7c83dbf8197bba0802569282a414f
CRs-Fixed: 2121335
2017-10-12 13:57:01 -07:00
Jeff Johnson
04e00085e4 qcacld-3.0: Rename pBeaconIes
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pBeaconIes to align with the Coding
Style.

Change-Id: Ib1d48cd0db2a497c68c3596230b22e169ed0cc8f
CRs-Fixed: 2121264
2017-10-12 13:56:57 -07:00
Jeff Johnson
fd0608595b qcacld-3.0: hdd: Rename pRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamInfo to align with the Coding
Style.

Change-Id: I39f76a4e11fb26c5ab4279ae0b02dddadd06a83b
CRs-Fixed: 2121188
2017-10-12 13:56:53 -07:00
Jeff Johnson
eddf544927 qcacld-3.0: sme: Rename pRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamInfo to align with the Coding
Style.

Change-Id: I444fc7925066f0ef147aed666a02027661308799
CRs-Fixed: 2121187
2017-10-12 13:56:50 -07:00
Jeff Johnson
d377dce175 qcacld-3.0: Rename pHddStaCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddStaCtx to align with the Coding
Style.

Change-Id: I508816b354eb592305cb238f7604ef39586c19b2
CRs-Fixed: 2121162
2017-10-12 13:56:46 -07:00
Jeff Johnson
5c19adea1a qcacld-3.0: Rename pHostapdState
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdState to align with the Coding
Style.

Change-Id: I11f20591272265ad2e0e9d1f5f8ae1243d3ecd5b
CRs-Fixed: 2121138
2017-10-12 13:56:43 -07:00
Rajeev Kumar Sirasanagandla
4c9b675e2f qcacld-3.0: Avoid auto phy mode for ini specific band
When specific band is set from ini file and if user is trying to change
phy mode to auto with iwpriv command, crash is seen.

To fix this, avoid eCSR_DOT11_MODE_AUTO when BandCapability is set.

Change-Id: Ieaaa1dddfafbed2fdf51b7c924977b02077f01b6
CRs-Fixed: 2082166
2017-10-12 13:56:40 -07:00
snandini
7ee07e375c Release 5.2.0.47X
Release 5.2.0.47X

Change-Id: I3d4bffbe0586321dc54b92edc3e52cb34ca46ec3
CRs-Fixed: 774533
2017-10-12 13:56:37 -07:00
Poddar, Siddarth
f7c49e73b7 qcacld-3.0: Add support for set multicast filter command
Add support for WMI_SET_MULTIPLE_MCAST_FILTER_CMDID command
that can add/delete multiple mcast filters.

CRs-Fixed: 2096595
Change-Id: I3dc93c603a5a6676d97b5911a716277c7bef0ef8
2017-10-12 13:56:33 -07:00
snandini
a0fae8a30d Release 5.2.0.47W
Release 5.2.0.47W

Change-Id: I37c3bd172980766924bd16ea3a5c723b53e39d2d
CRs-Fixed: 774533
2017-10-12 13:56:30 -07:00
Jeff Johnson
9bf2497293 qcacld-3.0: Rename pHddApCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddApCtx to align with the Coding
Style.

Change-Id: I9c209be206d9e453ec2c5adc7803126639d06b84
CRs-Fixed: 2121131
2017-10-12 13:56:27 -07:00
Jeff Johnson
9c4f93d221 qcacld-3.0: Rename pHostapdAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdAdapter to align with the Coding
Style.

Change-Id: I18a74117ae47ad05a1c46b50a14fcb64347f1c07
CRs-Fixed: 2121120
2017-10-12 13:56:24 -07:00
Jeff Johnson
50bc9d7af0 qcacld-3.0: Fix bad block comment in wlan_hdd_scan.h
Checkpatch has detected an instance of a block comment where the
trailing "*/" is not on a separate line, so fix it.

Change-Id: Ibe8c83ea4d87f04c330f0abe6953d2dfb2067ff7
CRs-Fixed: 2120626
2017-10-12 13:56:20 -07:00
Jeff Johnson
5cf5ad24bb qcacld-3.0: Fix long line in wlan_hdd_object_manager.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I2c032cea2a4a9e868d7e3b71ca6ed8eddddbb067
CRs-Fixed: 2120623
2017-10-12 13:56:17 -07:00
snandini
1d533fe456 Release 5.2.0.47V
Release 5.2.0.47V

Change-Id: I5c25a7f6d2ba1b9089288516d8f80bc69245c7cf
CRs-Fixed: 774533
2017-10-12 13:56:13 -07:00
Jeff Johnson
18ef284298 qcacld-3.0: Fix long lines in wlan_hdd_wowl.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: Ie9b3a517b97c0f70f43e7991c0576eaf1e05ec38
CRs-Fixed: 2120622
2017-10-09 06:45:13 -07:00
Jeff Johnson
de353b83a0 qcacld-3.0: Fix long line in wlan_hdd_wmm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

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

Change-Id: I093b691d0e05fa739d3c31a1780296ce6102dbd8
CRs-Fixed: 2120619
2017-10-09 06:45:07 -07:00
Jeff Johnson
811f47d567 qcacld-3.0: Fix long line in wlan_hdd_tx_rx.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Icefa4f57c2307b58a618be181478aedac3d1e5c8
CRs-Fixed: 2120618
2017-10-09 06:45:04 -07:00
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