Commit Graph

6853 Commits

Author SHA1 Message Date
snandini
a129501c7d Release 5.2.0.44N
Release 5.2.0.44N

Change-Id: Id55a799e119e7e0c0f4adc25ace1049f385c5de9
CRs-Fixed: 774533
2017-09-21 19:07:34 -07:00
Yun Park
777d724e77 qcacld-3.0: HDD IPA event handler waits resource load/unload complete
There is a race condition bewteen CLIENT_DISCONNECT and AP_DISCONNECT,
which causes short HDD IPA interfaces, so AP_CONNECT failed afterward.
HDD IPA event handler waits IPA resource load/unload complete.
Once timed out, add the event in a pending queue for loading icase or
ignore it for unloading case.
Remove redundant CLIENT_DISCONNECT event from del_sta.

Change-Id: I671ecec6f236d52a1b51cb78b9c7466f2cde82aa
CRs-Fixed: 2027714
2017-09-21 19:07:33 -07:00
Dustin Brown
76b9212c95 qcacld-3.0: Convert ieee80211_band to nl80211_band
In order to support Linux kernel versions 4.7+, nl80211_band must be
used instead of ieee80211_band. Convert all usages of ieee80211_band
to nl80211_band.

Change-Id: Iaf7a1efbaf54166b4d6e52a0d6b68b32c871028b
CRs-Fixed: 2114157
2017-09-21 19:07:30 -07:00
snandini
5bdd9f7c57 Release 5.2.0.44M
Release 5.2.0.44M

Change-Id: I5bf815dd8d93861e162b690247b393b98e7957d3
CRs-Fixed: 774533
2017-09-20 22:58:28 -07:00
Jeff Johnson
29adc0738b qcacld-3.0: Remove APWPSIEs from the SAP context
The SAP no longer maintains WPS information internally and the
APWPSIEs struct in the SAP context is no longer referenced, so remove
it.

Change-Id: If4a30626913fdacb751a434458a2e3918665a352
CRs-Fixed: 2113553
2017-09-20 22:58:28 -07:00
snandini
3ee375c575 Release 5.2.0.44L
Release 5.2.0.44L

Change-Id: Ie95b726bb3534c6f751fbadc3431184d98e723bc
CRs-Fixed: 774533
2017-09-20 22:09:18 -07:00
Jeff Johnson
6c8e31255c qcacld-3.0: Remove SapGlobalLock infrastructure
Change "qcacld-3.0: Remove obsolete wlansap_get_wps_state()" removed
the last consumer of the SapGlobalLock infrastructure. Since this
infrastructure is now unused, remove it.

Change-Id: I4646a7796073b259351d8cff48a424ef8741c9cf
CRs-Fixed: 2113552
2017-09-20 22:09:17 -07:00
Mahesh Kumar Kalikot Veetil
ec1da142e7 qcacld-3.0: Fix interface name in logs
Some of the logs wrongly use dev->ifindex to print net device name. Fix
those prints with correct device name.

Change-Id: I0cd7cbadcc69cafa05207578b66a2e07ce9e0f4e
CRs-Fixed: 2113484
2017-09-20 22:09:14 -07:00
snandini
49b882b545 Release 5.2.0.44K
Release 5.2.0.44K

Change-Id: Ie4fd56cb2c58dc2a3def8a1319786869de019599
CRs-Fixed: 774533
2017-09-20 21:27:13 -07:00
Rajeev Kumar
7f28e8a30f qcacld-3.0: Add adapater validity check for get NUD stats command
Add adapter validity check for get NUD stats vendor command such that
after adapter down/close request is not sent down to FW over WMI which
can trigger FW assert.

Change-Id: Ia4809ce50f131d2a85e668681711d89c985203a0
CRs-Fixed: 2098149
2017-09-20 21:27:13 -07:00
Jeff Johnson
8b8d03d533 qcacld-3.0: Remove obsolete wlansap_get_wps_state()
Currently in hdd_hostapd_sap_event_cb() when processing the
eSAP_STA_ASSOC_EVENT and eSAP_STA_REASSOC_EVENT events a call is made
to wlansap_get_wps_state(). This is a legacy call inherited from a
version of the driver that supported in-driver WPS. But now that WPS
is handled by hostapd this functionality is obsolete and should be
removed.

Change-Id: Ia52d9554ed4b3a44726a4cac268eae77856cbd18
CRs-Fixed: 2113551
2017-09-20 21:27:10 -07:00
Zhang Qian
6339310b98 qcacld-3.0: Change policy for QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG
Change attribute type in policy to NLA_UNSPEC, so nla API will take
a more strict length check.

Change-Id: I9faf60702a9efba5e76fb1e82c7b020812687cad
CRs-Fixed: 2092378
2017-09-20 21:27:07 -07:00
snandini
bdf242ccb7 Release 5.2.0.44J
Release 5.2.0.44J

Change-Id: I6b2a199d78576cc8e88abe56db98a1a0ba05c023
CRs-Fixed: 774533
2017-09-20 19:56:55 -07:00
Vignesh Viswanathan
c018e98d72 qcacld-3.0: Add new ini for bad RSSI 2G to 5G roam offset
Add new WCNSS_qcom_cfg.ini item to configure offset from bad RSSI
threshold ini for 2G to 5G band roam. This offset is used to
calculate the RSSI to be used as trigger for device to roam from
2G to 5G band when it is connected to a bad RSSI 2G AP and a 5G AP
is available in the environment.

New ini added : roam_bad_rssi_thresh_offset_2g

Change-Id: If2285317d1d01bb2faae2cf1928ad7adae8204d4
CRs-Fixed: 2105894
2017-09-20 19:56:53 -07:00
Jeff Johnson
0f41e16b1e qcacld-3.0: Remove obsolete SAP WPSIE structs
struct sap_WPSIE_s, as well as the structs it contains, were inherited
from a prior version of the driver where SAP WPS was implemented in
the driver. Since SAP WPS is now handled by hostapd these structs are
unused, so remove them.

Change-Id: Iabdd7f3b83668cb203614353b4766fb0b40fbd05
CRs-Fixed: 2110167
2017-09-20 07:59:01 -07:00
snandini
46df41c0d2 Release 5.2.0.44I
Release 5.2.0.44I

Change-Id: I01918d90692c9e44a482bdcb87a609501e08a0c5
CRs-Fixed: 774533
2017-09-20 06:22:07 -07:00
Anurag Chouhan
3920c0f714 qcacld-3.0: Add Vendor command to set/get NUD debug stats
Add vendor commands to set/reset and get NUD debug stats
from firmware.

Change-Id: I773c04bb3f7c6d5ed28528cf2174b3d63de57d98
CRs-Fixed: 2011456
2017-09-20 06:22:06 -07:00
Jeff Johnson
0a6453843c qcacld-3.0: pmo: Replace instances of unadorned %p
Replace instances of unadorned %p in components/pmo.

Change-Id: I771a66f98fafa38f77034a854c56422b535c6936
CRs-Fixed: 2100997
2017-09-20 06:22:03 -07:00
Jeff Johnson
16caea59fb qcacld-3.0: bmi: Replace instances of unadorned %p
Replace instances of unadorned %p in core/bmi.

Change-Id: I5dfdaa536da2c46d6180f74857e7518198bb43f7
CRs-Fixed: 2100997
2017-09-20 06:22:00 -07:00
Jeff Johnson
36e74c4212 qcacld-3.0: hdd: Replace instances of unadorned %p
Replace instances of unadorned %p in core/hdd.

Change-Id: I32b89aaf6a8b1ca3177e0c1cb5cec5fbc5f5294a
CRs-Fixed: 2100997
2017-09-20 06:21:58 -07:00
Jeff Johnson
359e679fb1 qcacld-3.0: pld: Replace instances of unadorned %p
Replace instances of unadorned %p in core/pld.

Change-Id: I949474a148429d14587864e6fa3ce5c71d2ceb92
CRs-Fixed: 2100997
2017-09-20 06:21:55 -07:00
hqu
16d6e08812 qcacld-3.0: Calculate supported rates according to different case
Fix the regression issue introduced by change
"Change-Id: Ica336398865a8b5e16297e4555dbb7de5e79567e".
The issue is that it will always include driver default rates.

In some case it only needs to calculate supported rates from hostapd.conf
file. Define ini item gChanSwitchHostapdRateEnabled to configure supported
rates calculated from hostapd.conf file or driver default rates when doing
SAP channel switch.

Change-Id: I45eeea5134dd80929bdd1f61246bdc66e1857e22
CRs-fixed: 2103714
2017-09-20 06:21:53 -07:00
snandini
a0e5b59824 Release 5.2.0.44H
Release 5.2.0.44H

Change-Id: I7d5194e017b5ec0625d2331e5d5842181fb3759b
CRs-Fixed: 774533
2017-09-20 04:40:26 -07:00
Varun Reddy Yeturu
81d0b373f3 qcacld-3.0: Check for valid pdev in wma_wait_tx_complete
Check for the validity of the pdev in wma_wait_tx_complete
before using it.

Change-Id: I3a98b4092aff42ea9c92490488cba5960b8e3b58
CRs-Fixed: 2111293
2017-09-20 04:40:26 -07:00
hqu
3c4ed3d9bd qcacld-3.0: Allow multi beacon interval in concurrent AP cases
qcacld-2.0 to qcacld-3.0 propagation

Current driver implementation doesn't support the multi beacon
interval in case concurrent AP's are operating on the same
channel. A new parameter 'beacon_int_min_gcd' is added in the
kernel to support the multi beacon interval.

Updating parameter 'beacon_int_min_gcd' to support multi beacon
interval. Related changs are
"Change-Id: I997059f0cad77b914a1296ffe7f1a51a511adac2" and
"Change-Id: Ibd2557080521276aa86a83089dfaa9b445de05af".

Change-Id: Iaa1bf7b7ead05bb400fbd8e28ef3fc1309c6b567
CRs-Fixed: 2111272
2017-09-20 04:40:22 -07:00
Himanshu Agarwal
c422ca7c04 qcacld-3.0: Copy the contents of auth frame properly
Copy the contents of auth frame in a proper manner
in lim_send_auth_mgmt_frame().

Change-Id: I5197634e36fa5b4344fc71fc22e1de6a2147744d
CRS-Fixed: 2112170
2017-09-20 04:40:20 -07:00
snandini
e1c8d9f953 Release 5.2.0.44G
Release 5.2.0.44G

Change-Id: Ib79fff45fe20fc2a597508c3d0f6d8ed158a6ecc
CRs-Fixed: 774533
2017-09-20 03:01:43 -07:00
Amar Singhal
5238567d80 qcacld-3.0: Change sequence of programming dfs region
At init time, program DFS region before programming the init
channel list. Programming DFS region would also initialize the
channel map.

CRs-Fixed: 2104133
Change-Id: I0ab3607d020086d226a99814dada5ac820880f1f
2017-09-20 03:01:43 -07:00
snandini
456883b645 Release 5.2.0.44F
Release 5.2.0.44F

Change-Id: I0622a20f733a637ec39fa0779fc6a8b72801855a
CRs-Fixed: 774533
2017-09-19 15:52:54 -07:00
Ravi Joshi
a307f63059 qcacld-3.0: Enable monitor mode through con_mode_monitor
Enable napier monitor mode through con_mode_monitor
module parameter passed during the driver load.

Change-Id: I85c7d8fad2c8c56f87e2d6f076cd573fe5953269
CRs-Fixed: 2110208
2017-09-19 15:52:54 -07:00
snandini
a755ed9a36 Release 5.2.0.44E
Release 5.2.0.44E

Change-Id: I9603a53832686cf2d7679166c85290294ce8cba0
CRs-Fixed: 774533
2017-09-19 09:59:39 -07:00
Wu Gao
478282a8d0 qcacld-3.0: Check radio id for FW event
In Rome platform, it use invalid radio id in FW event
WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID and cause crash. So check
radio id when handling this event.

Change-Id: Id720ca94ef496ea883f5ba1848fb4e28af57002f
CRs-Fixed: 2112322
2017-09-19 09:59:37 -07:00
snandini
f4c2d4e4db Release 5.2.0.44D
Release 5.2.0.44D

Change-Id: I3a058972ba39ed569437af5e12721812188da9cf
CRs-Fixed: 774533
2017-09-19 04:18:35 -07:00
Jiachao Wu
712d4fd6a6 qcacld-3.0: Send beacon tx rate to firmware
Add data structures to save beacon tx rate.
The beacon data rate is multiples of 100 Kbps.
Firmware expects the data rate in the form of hw rate codes.
So convert the data rates to hw rate code.
And send it to firmware.

Change-Id: Ia39fd4c14defa729f75f2c45748fe5b04b909647
CRs-Fixed: 2099052
2017-09-19 04:18:34 -07:00
snandini
2cc96b1146 Release 5.2.0.44C
Release 5.2.0.44C

Change-Id: I6c28fb1f9c8d6ebd7419d9c199a1deb22508f239
CRs-Fixed: 774533
2017-09-19 02:28:37 -07:00
SaidiReddy Yenuga
f098d8ea2e qcacld-3.0: Trim extn capability to max supported in change station
qcacld-2.0 to qcacld-3.0 Propagation.

extn capabilities can be controlled by user, which can
be sent greater than the max supported value. This results
in stack overflow in change station command.

Add check to validate extn capability param given by user
and if it exceeds max supported value, set it to max supported
value.

CRs-Fixed: 2076664
Change-Id: I531799dd06c41069e85ad969de6182363dbf9f05
2017-09-19 02:28:36 -07:00
SaidiReddy Yenuga
cc733aff70 qcacld-3.0: Add ini param to control the crash inject
qcacld-2.0 to qcacld-3.0 propagation

Currently the crash can be injected by iwpriv command and FW
gets crashed.
Changes are done to add the gEnableCrashInject ini parameter

1) This ini param is disabled by default.
2) If this param is disabled the crash inject is ignored.

Change-Id: I7e908be1e37090a9d343dc04411fe387f776a937
CRs-Fixed: 864932
2017-09-19 02:28:33 -07:00
Jeff Johnson
f1cd3c7d40 qcacld-3.0: Replace typedef ptSapContext
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 ptSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: Ia08bea35b7c0d3b3dfad4641c1c79a7c0990cd8d
CRs-Fixed: 2109993
2017-09-19 02:28:30 -07:00
Jeff Johnson
49c7a1465a qcacld-3.0: Remove wlansap_open() p_cds_gctx parameter
Currently wlansap_open() takes a p_cds_gctx parameter. At one time
this was needed, but that is no longer the case, so remove this unused
parameter.

Change-Id: Ie110b3cee9898233fb921aaab223caa4cf93de4e
CRs-Fixed: 2109961
2017-09-19 02:28:28 -07:00
Jeff Johnson
6816303da2 qcacld-3.0: Replace typedef tSapContext
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 tSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: If237edee7638c1c6b35413312cb3dd934554431a
CRs-Fixed: 2109960
2017-09-19 02:28:25 -07:00
Jeff Johnson
d0337e0f44 qcacld-3.0: Rename struct sSapContext
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSapContext to align with the
Coding Style. The associated tSapContext and ptSapContext typedefs
will be cleaned up as a subquent effort.

Change-Id: I83962e1c574491039597559fb8b16f3339d41fbd
CRs-Fixed: 2109959
2017-09-19 02:28:22 -07:00
snandini
78c458ac7f Release 5.2.0.44B
Release 5.2.0.44B

Change-Id: I629406eefc4d5e317bf70660bc60aea8d15ac1fd
CRs-Fixed: 774533
2017-09-19 00:18:03 -07:00
Jeff Johnson
ef20675305 qcacld-3.0: Remove p_cds_gctx from struct sSapContext
The p_cds_gctx field in struct sSapContext is not used, so remove it.

Change-Id: I9eb6f651a359bf12f23ec094887ca308c834bae1
CRs-Fixed: 2109957
2017-09-19 00:18:03 -07:00
Jeff Johnson
3023b1e559 qcacld-3.0: Clean up csr_roam_stats_rsp_processor()
csr_roam_stats_rsp_processor() calls cds_get_global_context() but then
doesn't do anything with the result, so remove the unnecessary call.

Change-Id: Ic47dbf971d1eaea4c7c33ff62f9bfb848d9d654b
CRs-Fixed: 2109956
2017-09-19 00:18:00 -07:00
Jeff Johnson
c0db38437e qcacld-3.0: Remove unused CDS_GET_HAL_CB() parameter
Macro CDS_GET_HAL_CB() currently takes a ctx parameter. At one time
cds_get_context() needed a pointer to the global context, and hence
the reason for the parameter. But now that cds_get_context() no longer
needs the global context, remove the parameter from the macro. This is
a precursor to removing the p_cds_gctx from the SAP config.

Change-Id: Ic75bab55fd8b87710aee99b7e2d3783361dc3d87
CRs-Fixed: 2109955
2017-09-19 00:17:57 -07:00
Sandeep Puligilla
344d725f60 qcacld-3.0: Remove legacy scan for ssid logic
Remove legacy scan for ssid logic

Change-Id: I87b2b2a1b284d72e6d6c8d26303ce02b80c0b8b2
CRs-Fixed: 2101353
2017-09-19 00:17:55 -07:00
Sandeep Puligilla
d698bf5328 qcacld-3.0: Remove legacy scan event handling
Remove legacy scan event handling
in the WMA and LIM.

Change-Id: Ibeb6f99335b4e745335d5968791d9e9187df47f7
CRs-Fixed: 2101353
2017-09-19 00:17:52 -07:00
snandini
056b97bcb3 Release 5.2.0.44A
Release 5.2.0.44A

Change-Id: I6fc30a4e039a4001df1d70aca52da1edb6747c23
CRs-Fixed: 774533
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
5df6cc9977 qcacld-3.0: Address camel case coding style in hdd_mawc_cfg_log
Modify pHddCtx to hdd_ctx to avoid camel case coding style
as per the coding guidelines

Change-Id: I55767e0efdd803b3a8bf2bc7c52c96bbdc6d65bd
CRs-Fixed: 2111749
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
faad37e33b qcacld-3.0: Introduce configuration parameters for bad RSSI roaming
Introduce the below WCNSS_qcom_cfg.ini items to configure
for bad RSSI roaming. These parameters would be used when
the device is connected to an AP with weak signal and has
to roam to a better AP if it is stationary but has found
some other better AP in the vicinity

roam_bg_scan_bad_rssi_thresh:
If the DUT is connected to an AP with weak signal, then the bad RSSI
threshold will be used as an opportunity to use the scan results
from other scan clients and try to roam if there is a better AP
available in the environment.

roam_bg_scan_client_bitmap:
This bitmap is used to define the client scans that need to be used
by the roaming module to perform a background roaming.

Change-Id: I3b9f737ea389d35f8be173ce83b2237c2375fb88
CRs-Fixed: 2082904
2017-09-18 20:27:52 -07:00