Commit Graph

6971 Commits

Author SHA1 Message Date
Poddar, Siddarth
b904759184 qcacld-3.0: Add debug logs for FW_RX_REFILL failure
Add debug logs to capture htt rx_ring info during data stall
detection for FW_RX_REFILL failure reason.

Change-Id: I6733a37677ebccfef5096ac38858c4505e8665b6
CRs-Fixed: 2121686
2017-10-12 13:58:58 -07:00
Rajeev Kumar
155a3e4a88 qcacld-3.0: Add 1 second timed wake lock for 4 way handshake
Add 1 second wake lock for 4 way handshake to avoid APPS
power collapse in middle of eapol exchange which can delay
the association process.

Change-Id: Ife73dc00aa05b5a80d0a90afd18468bd033ebdd9
CRs-Fixed: 2118533
2017-10-12 13:58:53 -07:00
snandini
b0e9c09db2 Release 5.2.0.48E
Release 5.2.0.48E

Change-Id: I89dbd7bb75db75ceaea7a1ca14753ca8c01b30ce
CRs-Fixed: 774533
2017-10-12 13:58:47 -07:00
Naveen Rawat
a9a49cf10b qcacld-3.0: Add get string API for cfg_params
Move HE get string API for cfg_params to cfg_param_name.c and
make it generic so that any parameter can be added to it.

Change-Id: Id14fb60a97f479a5898a27b2a192f67801e49974
CRs-Fixed: 2106869
2017-10-12 13:58:42 -07:00
Vignesh Viswanathan
30e69280c7 qcacld-3.0: Fix potential infinite loop in get_container_ies_len
In the function get_container_ies_len, len (uint32) is calculated
from the length of the buffer parsed. Then it is copied to the uint8
pnConsumed pointer from the calling function. This could lead to
pnConsumed becoming 0 if len exceeds 255 and would cause infinte
loop in the function unpack_core.

Add changes to make pnConsumed passed from unpack_core to be uint32
so that there are no issues in get_container_ies_len

Change-Id: Ia5770b4becf7dd1cf7cb97ec2e0d94f3c5f4ed54
CRs-Fixed: 2101200
2017-10-12 13:58:37 -07:00
Houston Hoffman
b4558eb67e qcacld-3.0: Resolve double free during cleanup of vdev request
On vdev response timer expire, memory allocated for vdev request
will be freed in the timer handler(wma_vdev_resp_timer). But there
can be a race condition where wlan shutdown is invoked at the same
time, where host tried to cleanup unhandled vdev requests by calling
same timer handler.

To mitigate this issue don't free the memory if vdev request is not
found(as other thread freed memory by this time)

Change-Id: Iea214f0ed3acb9600b5a3b84b5740c1b496719d9
CRs-Fixed: 2049673
2017-10-12 13:58:31 -07:00
snandini
315faa61e2 Release 5.2.0.48D
Release 5.2.0.48D

Change-Id: I82a28ad09c54466c4c7dded91b10c739430c8832
CRs-Fixed: 774533
2017-10-12 13:58:26 -07:00
Venkata Sharath Chandra Manchala
1963fec7ca qcacld-3.0: Cleanup ununsed typedef in datapath
Remove unused typedef ol_rx_callback_fp in
datapath.

Change-Id: I867267aa791b6dd4fc02654c9fb1ba658cc51a5d
CRs-Fixed: 2123478
2017-10-12 13:58:22 -07:00
Kiran Kumar Lokere
85cb36bf6a qcacld-3.0: Flush the delayed acs work during adapter deinit
Flush the delayed acs work during the adapter deinit process.

Change-Id: I9b415a9d1b4f59b4f028e882ad09cf7f782e67b6
CRs-Fixed: 2109432
2017-10-12 13:58:17 -07:00
snandini
ffbb080419 Release 5.2.0.48C
Release 5.2.0.48C

Change-Id: I2baf545b84efe58da2e577d52ef6201316f445fc
CRs-Fixed: 774533
2017-10-12 13:58:12 -07:00
Ganesh Kondabattini
b2eabe321a qcacld-3.0: Force SCC changes in non DBS mode
In non DBS mode, force SCC if STA and SAP channels are not same.

CRs-Fixed: 2109798
Change-Id: I421cd3b82c96aa62482c6caee15e6bb077adba1d
2017-10-12 13:58:08 -07:00
snandini
3a1977b24d Release 5.2.0.48B
Release 5.2.0.48B

Change-Id: Ib993c48431078a1898d4ba027f00eb5832b21d81
CRs-Fixed: 774533
2017-10-12 13:58:03 -07:00
Srinivas Girigowda
ca52f04cfe qcacld-3.0: Remove BT coex in progress check
Rome and iHelium BT Coex FW capability is completely different from
earlier generation of driver/fw and hence this kind of BT Coex protection
may not be needed.

Change-Id: Ic2f34acc03a3830ad51296313e8844011ef48266
CRs-Fixed: 2066727
2017-10-12 13:57:54 -07:00
snandini
0603269db0 Release 5.2.0.48A
Release 5.2.0.48A

Change-Id: I264fc8eb7efa843496ad8e8125fc7def1f620d66
CRs-Fixed: 774533
2017-10-12 13:57:50 -07:00
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
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
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
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
Jeff Johnson
ba38834945 qcacld-3.0: Rename pAdapter in wlan_hdd_assoc.[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: If28820c6caaf8e61d022ade48787baeed8413c8a
CRs-Fixed: 2119859
2017-10-05 20:54:43 -07:00
Jeff Johnson
ce2ba7037e qcacld-3.0: Rename pAdapter in wlan_hdd_cfg80211.[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: I395db8a6491d27ba9c16dd1a9011aad149c17a5d
CRs-Fixed: 2119857
2017-10-05 20:54:40 -07:00
Jeff Johnson
d900b9d35e qcacld-3.0: Rename pAdapter in wlan_hdd_debugfs.[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: Id086072eff4d1a55e316a3d6b32b3127385eebd8
CRs-Fixed: 2119858
2017-10-05 20:54:37 -07:00
Jeff Johnson
7058aa8f92 qcacld-3.0: Rename pAdapter in wlan_hdd_ext_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: I54c32558f050839f78bac449483103591feb73e9
CRs-Fixed: 2119856
2017-10-05 20:54:35 -07:00
Jeff Johnson
701ac0512c qcacld-3.0: Rename pAdapter in wlan_hdd_oemdata.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: Ib6ad0b143b8a6ab3e4911a91d3502820ce2a3d21
CRs-Fixed: 2119852
2017-10-05 20:54:33 -07:00
Jeff Johnson
19b66e8ef2 qcacld-3.0: Rename pAdapter in wlan_hdd_p2p.[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: Ib4f4b0f6c726c1ed49d7a22bd9ead2ce3975e882
CRs-Fixed: 2119851
2017-10-05 20:54:30 -07:00
Jeff Johnson
f6d242831e qcacld-3.0: Rename pAdapter in wlan_hdd_power.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: I03a29ff2c4eebacc976d6b3e7fbcd23b389b579c
CRs-Fixed: 2119850
2017-10-05 20:54:28 -07:00
Jeff Johnson
d31ab6a813 qcacld-3.0: Rename pAdapter in wlan_hdd_softap_tx_rx.[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: I845eae808defedc3895f98ee15554ffca591bf00
CRs-Fixed: 2119861
2017-10-05 20:54:25 -07:00
Jeff Johnson
a86e78e131 qcacld-3.0: Rename pAdapter in wlan_hdd_stats.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: I51b73e52e0920a38c6ded4e274026b9a3f3355e0
CRs-Fixed: 2119848
2017-10-05 20:54:23 -07:00
Jeff Johnson
6bff8949cf qcacld-3.0: Rename pAdapter in wlan_hdd_tdls.[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: Ifdac5a6191cbbcde80395d26c5288964a7dda4d4
CRs-Fixed: 2119846
2017-10-05 20:54:21 -07:00
Jeff Johnson
8048686785 qcacld-3.0: Rename pAdapter in wlan_hdd_tx_rx.[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: Ibe7b2055276d765af2dd72033bd04ddf43ae3494
CRs-Fixed: 2119845
2017-10-05 20:54:18 -07:00
Jeff Johnson
a7e2e00d18 qcacld-3.0: Rename pAdapter in wlan_hdd_wmm.[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: Ia4b1ee1717f0d0bb44583e967e5dd8290f679b29
CRs-Fixed: 2119843
2017-10-05 20:54:16 -07:00
Jeff Johnson
d184d2b06d qcacld-3.0: Rename pAdapter in wlan_hdd_wowl.[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: I5d56195378cf9507d00b2affe1c8efc1793a9510
CRs-Fixed: 2119842
2017-10-05 20:54:13 -07:00
snandini
5ff866902d Release 5.2.0.47H
Release 5.2.0.47H

Change-Id: Ic0749957f2262c69051128e3e69ff98b5c144df2
CRs-Fixed: 774533
2017-10-05 20:00:04 -07:00
Dustin Brown
3561949b4d qcacld-3.0: Migrate to stats_request_params
There are currently two ways to get vdev stats from firmware. As such,
the redundant pe_stats_req is being removed. Migrate existing consumers
to stats_request_params instead.

Change-Id: I3426b43a6202bb59ceef13cf8d4528700c7f3983
CRs-Fixed: 2120637
2017-10-05 20:00:04 -07:00
snandini
58f050480f Release 5.2.0.47G
Release 5.2.0.47G

Change-Id: I9eb9fa26f8cc96769de6620a95d269c3a4d2d95f
CRs-Fixed: 774533
2017-10-05 16:59:50 -07:00
Vignesh Viswanathan
53d69c9b7f qcacld-3.0: Fix integer overflow in wma_unified_link_peer_stats_event_handler
Currently in wma_unified_link_peer_stats_event_handler, the check to validate
if peer_stats->num_rates is less than WMA_SVC_MSG_MAX_SIZE is done only for
the first member of the peer_stats array. This can lead to integer overflow
as num_rates is calculated as sum of peer_stats->num_rates for each of the
peer_stats in the array.

Add code changes to loop and calculate total_num_rates for all the peer_stats
and then validate total_num_rates with WMA_SVC_MSG_MAX_SIZE.

Change-Id: Ic934934a990bd55fce70a0eaffa2812bc34b0ddd
CRs-Fixed: 2113758
2017-10-05 16:59:49 -07:00
snandini
391df21964 Release 5.2.0.47F
Release 5.2.0.47F

Change-Id: Ia72b34432a914373bd2013827b9cfd46c3712c96
CRs-Fixed: 774533
2017-10-05 16:11:48 -07:00
Vignesh Viswanathan
cc7f1b909e qcacld-3.0: Add configuration option to enable/disable FILS
Add configuration option g_is_fils_enabled to enable/disable FILS.
Driver will update the capability to supplicant based on this
configuration.

Change-Id: I939d59981e1a847a7d113cd015135d76f7d9992e
CRs-Fixed: 2050366
2017-10-05 16:11:47 -07:00
Naveen Rawat
b3f3eee6c2 qcacld-3.0: Add new check for Vendor AP to associate in 1x1
Some vendor APs are not able to handle the SMPS frames causing the
APs to crash.

Add new check for a vendor AP OUIs and AP being in 4x4 or 3x3 11ac
capabilities to associate in 1x1 to that AP.

Change-Id: I023237fd3531529648890c9d71101b57a036cc7f
CRs-Fixed: 2112017
2017-10-05 16:11:44 -07:00
Naveen Rawat
5b96c3c90c qcacld-3.0: Fix Tx BF CNS Value sent in ASSOC request
Currently host take min of VHTCaps.csnofBeamformerAntSup and self
txBFCsnValue rather than sending self CSN cap. However doing so
have certain IOT issue with commercial APs already in market. This
IOT issue is found only in our 2x4 solution. Fix this by min only
if self CSN is < 4.

Change-Id: I819fcc440ef3a74ae0dc9011465d0a5d1f2c5892
CRs-Fixed: 2121133
2017-10-05 16:11:42 -07:00
snandini
b61286029e Release 5.2.0.47E
Release 5.2.0.47E

Change-Id: I7bff6ca81c1a4db0a1ac422c523e7d972e858230
CRs-Fixed: 774533
2017-10-05 09:20:22 -07:00
Mukul Sharma
9f1345284e qcacld-3.0: Support more Cipher / Akm suits in RSNIE parsing
Currently, while parinsg RSNIE host allow up to 4 max
cipher / akm suits. Hence if beacon / probe response
carry more than 4 cipher/akm suits then RSNIE parsing
get fails.
As a part of fix, increase cipher/akm max count to 6.

Change-Id: I62f8797b480f0cc82586f76ec7fd318499bc7628
CRs-Fixed: 2081030
2017-10-05 09:20:20 -07:00
snandini
3185814f6f Release 5.2.0.47D
Release 5.2.0.47D

Change-Id: I4f05af227b5b1240cf3b74fd741b806c4656102d
CRs-Fixed: 774533
2017-10-05 05:37:59 -07:00
Jeff Johnson
44d8af980f qcacld-3.0: Rename struct hdd_roc_req pointer fields
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct hdd_roc_req pointer fields
pAdapter and pRemainChanCtx to align with the Coding Style.

Change-Id: I1fc92c4b8de1ce47d1484a88982acccca94a0732
CRs-Fixed: 2119758
2017-10-05 05:37:56 -07:00
Jeff Johnson
57eb2730b2 qcacld-3.0: Rename hdd_adapter_list_node_t field pAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename hdd_adapter_list_node_t field pAdapter
to align with the Coding Style.

Change-Id: I809da2134368f6ef9fc245b54dc082dfb31e77f1
CRs-Fixed: 2119759
2017-10-05 05:37:46 -07:00
Jeff Johnson
b66d8508be qcacld-3.0: Rename struct hdd_wmm_qos_context field pAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct hdd_wmm_qos_context field
pAdapter to align with the Coding Style.

Change-Id: I375584d6cb58bd7fd51375ab769c3cc361ba28d4
CRs-Fixed: 2119757
2017-10-05 05:37:39 -07:00
Jeff Johnson
a0ce1020cc qcacld-3.0: Replace typedef tdls_config_params_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tdls_config_params_t typedef
does not meet any of those criteria, so replace references to it with
a reference to a properly named struct.

Change-Id: Iac14e2e25c7079773e89385fd87b632840ca6a53
CRs-Fixed: 2119582
2017-10-05 05:37:31 -07:00
Jeff Johnson
2a7220019a qcacld-3.0: Replace typedef hdd_wext_state_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_wext_state_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I30a735370fccf0e7bf068b1679cc01844c719a9f
CRs-Fixed: 2119532
2017-10-05 05:37:23 -07:00
Jeff Johnson
7274ccc757 qcacld-3.0: Replace typedef tCfgIniEntry
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tCfgIniEntry typedef does not
meet any of those criteria, so replace references to it with a
reference to an appropriately named struct.

Change-Id: I246d68e79fc40629d0d4217682d18c063cf27d17
CRs-Fixed: 2119531
2017-10-05 05:37:15 -07:00
Jeff Johnson
d005cb33ea qcacld-3.0: Remove legacy avoid freq list structures
The avoid freq list definitions were recently redefined in the
qca-wifi-host-cmn project. Since the legacy definitions are no longer
used, remove them.

Change-Id: I2faa1ad42a6ad5c397ef25576d1cffbdbd54e28a
CRs-Fixed: 2119530
2017-10-05 05:37:07 -07:00
Jeff Johnson
31304ccc03 qcacld-3.0: Use correct macro for "avoid freq list" limit
The "avoid freq list" definitions are now defined in the
qca-wifi-host-cmn project, but in one place a reference to a legacy
macro is being used for a range check. Replace the usage of
HDD_MAX_AVOID_FREQ_RANGES with the converged macro CH_AVOID_MAX_RANGE;

Change-Id: Ib750cc6d8458966cb05249785a57fb62b81ac408
CRs-Fixed: 2119529
2017-10-05 05:36:59 -07:00
Jeff Johnson
ca2530cd52 qcacld-3.0: Replace typedef hdd_hostapd_state_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_hostapd_state_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ifba43e6a79aced01a73d345d2adcf8302698d9ee
CRs-Fixed: 2119528
2017-10-05 05:36:51 -07:00
Jeff Johnson
5e4b93c82c qcacld-3.0: Replace typedef hdd_cfg80211_state_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_cfg80211_state_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ica1783f34fb6fb3fe6a90ec9e165cea2a3b08c64
CRs-Fixed: 2119527
2017-10-05 05:36:43 -07:00
Jeff Johnson
52b5060b90 qcacld-3.0: Replace typedef hdd_roc_req_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_roc_req_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I0d59d9f18248c94b2a27f3de4bd5dd4c0c7c840b
CRs-Fixed: 2119534
2017-10-05 05:36:34 -07:00
Jeff Johnson
88c2e8a67c qcacld-3.0: Replace typedef hdd_remain_on_chan_ctx_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_remain_on_chan_ctx_t
typedef does not meet any of those criteria, so replace references to
it with a reference to the underlying struct.

Change-Id: I7bd20097cac20c7dbe9e3debb828638a3ad6bd8b
CRs-Fixed: 2119526
2017-10-05 05:36:26 -07:00
Jeff Johnson
c945f5660a qcacld-3.0: Replace typedef action_pkt_buffer_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The action_pkt_buffer_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Icdcc07459223aa1b9c91601aa25ac9c314608da8
CRs-Fixed: 2119303
2017-10-05 05:36:18 -07:00
snandini
b1629ee112 Release 5.2.0.47C
Release 5.2.0.47C

Change-Id: I495cb0d1f8b8fcd5b52ac3ad528f1c2b8032b6a0
CRs-Fixed: 774533
2017-10-04 22:48:36 -07:00
Ravi Joshi
e55f42cfe7 qcacld-3.0: Enable support for multiple NAN peers per NDI
Enable support for multiple NAN data path peers from host.
FW already supports multiple NAN peers.

CRs-Fixed: 2121121
Change-Id: I23307c5f56114084a93b3afae0e23a07251c5013
2017-10-04 22:48:22 -07:00
snandini
e626ea5aff Release 5.2.0.47B
Release 5.2.0.47B

Change-Id: I5f077a7aabab270ea6464cebc3fced1e703d5a07
CRs-Fixed: 774533
2017-10-04 21:52:29 -07:00
Naveen Rawat
60f39da929 qcacld-3.0: Check vdev_id against wma->max_bssid
Check vdev_id against wma->max_bssid in wma_mcc_vdev_tx_pause_evt_handler to
avoid bufer overflow.

Change-Id: Ie47a0ed2f7f27f13a01e1b2cb365fae66b41b1df
CRs-Fixed: 2120677
2017-10-04 21:52:29 -07:00
snandini
05512b452b Release 5.2.0.47A
Release 5.2.0.47A

Change-Id: Ide7b368167f12a361bed8aa24cc68f6462c268bd
CRs-Fixed: 774533
2017-10-04 19:26:15 -07:00
Dustin Brown
8719476c67 qcacld-3.0: Print value of gPreventLinkDown
Print the configured value of gPreventLinkDown in hdd_cfg_print()
for debugging purposes.

Change-Id: I765ca66ffaa6bdd958fb779189253f50ae5cf352
CRs-Fixed: 2115299
2017-10-04 19:26:12 -07:00
snandini
fed77d1ef3 Release 5.2.0.47
Release 5.2.0.47

Change-Id: I28886bea9fa4b9f509a8dff6e6ed61cd812d3864
CRs-Fixed: 774533
2017-10-04 18:29:45 -07:00
Venkata Sharath Chandra Manchala
9abac31eba Revert "qcacld-3.0: Propagate config parameters to datapath"
This reverts Change I852b14cb04b1c2c01a697434bc5fe8b29dbfe9ea.

Change-Id: Ia433fdcb58feea27c5897975002bb347d6b96bb4
CRs-Fixed: 2097229
2017-10-04 18:29:40 -07:00
snandini
89ad2ce0da Release 5.2.0.46Z
Release 5.2.0.46Z

Change-Id: Ib1c3427b985fda027d9045dd3bfbf5366cb408cf
CRs-Fixed: 774533
2017-10-04 14:09:02 -07:00
Jeff Johnson
cc98797190 qcacld-3.0: Remove obsolete HDD WAPI definitions
Many of the HDD WAPI definitions are obsolete, so remove the ones that
are no longer being used.

Change-Id: I342a8f590c835ddec03b2a20d16ad8f0014ca6af
CRs-Fixed: 2119533
2017-10-04 13:04:45 -07:00
Jeff Johnson
8215592437 qcacld-3.0: Replace typedef hdd_station_info_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_station_info_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I2ad73b4ac543b56d0883e20c0d20d4ddd473c35a
CRs-Fixed: 2119525
2017-10-04 13:04:45 -07:00
Jeff Johnson
673fd5b80a qcacld-3.0: Replace typedef t_multicast_add_list
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The t_multicast_add_list typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ic70b2e2c716963b0f267bae86961cbf973246b24
CRs-Fixed: 2119523
2017-10-04 13:04:45 -07:00
Jeff Johnson
44e5217218 qcacld-3.0: Replace typedef beacon_data_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The beacon_data_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I2202f452549da705a315e89993f100617eb7e0e1
CRs-Fixed: 2119522
2017-10-04 13:04:45 -07:00
snandini
dd71ba999f Release 5.2.0.46Y
Release 5.2.0.46Y

Change-Id: Iee59aafcf2918c47843b293edfd92788e4e77528
CRs-Fixed: 774533
2017-10-04 08:41:29 -07:00
Poddar, Siddarth
aee8ff668f qcacld-3.0: Cleanup of hdd_wlan_startup
Cleanup the hdd_wlan_startup, presently lot of configuration
is written to firmware from the startup function which is not
correct with different driver models supported. Move the feature
initialization to hdd_features_init. Also in the probe failure
error path netdev notifier is not getting unregistered.
Leaving stale pointer with the kernel which can lead to a crash.

Unregister the netdevice during the probe failure and cleanup features.

Change-Id: If7fe7c4c0f97e4b4829551840643c4e525696c76
CRs-Fixed: 2090570
2017-10-04 08:41:29 -07:00
Arunk Khandavalli
932a9e161a qcacld-3.0: synchronize interface change timer with driver shutdown
As part of the last interface down, driver starts the interface
change timer to close the modules of 15seconds, if there is no
request to use the interfaces from upper layer during this time
the timer expiers and closes modules. There can be SSR/PDR triggered in the
different context which during shutdown tries to call the
respective module notifiers which can be purged/freed
in the timer context.

Synchronize the interface change timer callback with the shutdown
using the interface change timer lock. Following steps are taken
to make sure one thread is completed before other thread starts
execution:
	* Set the respective flag of recovery inprogress or fw_down
          so that access to firmware is blocked.
	* Take the interface change lock, so if the timer callback
	  is running it will complete the closing the modulkes,
	  or if the uevent gets the lock it completes the calling
	  notifiers and purges the same.
	* Release the interface change lock.

Change-Id: I1d7f62cd0ce7268cc9a5bda2a72dae384b70a6e2
CRs-Fixed: 2100846
2017-10-04 08:41:26 -07:00
Nachiket Kukade
aaf8a71ef5 qcacld-3.0: Implementation to change BmissFinalBcnt dynamically
Implementation to change BmissFinalBcnt dynamically.
User can set totalBcnt using the new command
QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BMISS_CNT.
BmissFirstBcnt will retain its default value or from ini.
BmissFinalBcnt will be configured as (totalBcnt - BmissFirstBcnt).

Change-Id: Ie3c3895d48248d349400e755f07edc807e335b44
CRs-Fixed: 2081906
2017-10-04 08:41:24 -07:00
Arunk Khandavalli
062fb036ec qcacld-3.0: Add SSR support for monitor mode
Presently SSR is not supported in the monitor mode, in the debug
builds the device enters bad state when the SSR is triggered
in the monitor mode.

Make changes to support SSR in monitor mode.

Change-Id: Iee88a0c1aca1b093607cea20ee1957be55a33598
CRs-Fixed: 2034240
2017-10-04 12:18:15 +05:30
snandini
141f12cb55 Release 5.2.0.46X
Release 5.2.0.46X

Change-Id: I8e11706dab5fc798fb4f3cd6a373fb2321d3d42a
CRs-Fixed: 774533
2017-10-03 22:00:50 -07:00
Jeff Johnson
ba1d0cad25 qcacld-3.0: Replace typedef hdd_tx_rx_stats_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_tx_rx_stats_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ic3ff995d10e65f949ee069b134d9826583461b1e
CRs-Fixed: 2119524
2017-10-03 16:35:33 -07:00
snandini
ca1341f9e2 Release 5.2.0.46W
Release 5.2.0.46W

Change-Id: Id8cab7b8a9bfeaf6801031206a458b859cf8dac9
CRs-Fixed: 774533
2017-10-03 16:02:57 -07:00