Commit Graph

1622 Commits

Author SHA1 Message Date
Jeff Johnson
0a082d90ea qcacld-3.0: Rename HDD identifier staid
To improve code comprehension renamed HDD identifier staid to sta_id.

Change-Id: Iecde8b3f3410cac5d01f8fe2f9f2438a398e8e81
CRs-Fixed: 2409889
2019-03-06 00:33:42 -08:00
Jeff Johnson
8626e93ebe qcacld-3.0: Rename operationChannel in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
operationChannel in struct hdd_connection_info to be compliant.

Change-Id: Ic6d600997fc41a17c1ff6502a576b14b3f3ca2c0
CRs-Fixed: 2409884
2019-03-06 00:33:10 -08:00
Jeff Johnson
c52bc8b3f5 qcacld-3.0: Rename dot11Mode in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
dot11Mode in struct hdd_connection_info to be compliant.

Change-Id: I0da66d6291bfb926a59566badb26e22f1055eb50
CRs-Fixed: 2409883
2019-03-06 00:33:04 -08:00
Jeff Johnson
e20ce74215 qcacld-3.0: Remove Keys from struct hdd_connection_info
The Keys field in struct hdd_connection_info is unused, so remove it.

Change-Id: Ifff59377adddf47d7e5764b85702a1828af11a47
CRs-Fixed: 2409882
2019-03-06 00:32:59 -08:00
Jeff Johnson
96e3351707 qcacld-3.0: Rename authType in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
authType in struct hdd_connection_info to be compliant.

Change-Id: I6b17fd1b068a817ad4ef2eed99164a4c4620b50b
CRs-Fixed: 2409881
2019-03-06 00:32:53 -08:00
Jeff Johnson
5ec1abfc11 qcacld-3.0: Rename peerMacAddress in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
peerMacAddress in struct hdd_connection_info to be compliant.

Change-Id: Id6ef7a5f51431d799bdee9a3bae8da5158ece8a3
CRs-Fixed: 2409880
2019-03-06 00:32:47 -08:00
Jeff Johnson
9bc4b57ef9 qcacld-3.0: Rename staId in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
staId in struct hdd_connection_info to be compliant.

Change-Id: Ied5e7a5e669c54d521d1bb7070f4a0fbd77efda4
CRs-Fixed: 2409879
2019-03-06 00:32:42 -08:00
Jeff Johnson
e04b6995fa qcacld-3.0: Rename bssId in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
bssId in struct hdd_connection_info to be compliant.

Change-Id: I49a1a68fbec0582d8bbc82c2e92c171bb6343dfc
CRs-Fixed: 2409878
2019-03-06 00:32:37 -08:00
Jeff Johnson
457c242c20 qcacld-3.0: Rename uIsAuthenticated in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename field uIsAuthenticated in struct
hdd_connection_info to be compliant.

Change-Id: I9e7629e41ba42224be5dbe5c7a773d1574a189b2
CRs-Fixed: 2409877
2019-03-06 00:32:32 -08:00
Jeff Johnson
b195984a0e qcacld-3.0: Rename *EncryptionType in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename fields
ucEncryptionType and mcEncryptionType in struct hdd_connection_info to
be compliant.

Change-Id: I286b7df320f4bb1684acaf463cfd249dc0e1c1d8
CRs-Fixed: 2409876
2019-03-06 00:32:27 -08:00
Jeff Johnson
ac5170c4a7 qcacld-3.0: Rename proxyARPService
The Linux Coding Style frowns upon mixed-case names so rename
proxyARPService to be compliant.

Change-Id: I8ad21c749caabde80fa21fa6800901c20988cfd2
CRs-Fixed: 2409875
2019-03-06 00:32:22 -08:00
Jeff Johnson
4aea180e1c qcacld-3.0: Rename SSID in struct hdd_connection_info
To conform to the expectation that uppercase identifiers are only used
for macros, rename field SSID in struct hdd_connection_info.

Change-Id: Ia6d3c45be952ed7c044a21c723a7fddb0038ad81
CRs-Fixed: 2409874
2019-03-06 00:32:17 -08:00
Jeff Johnson
e7951513a0 qcacld-3.0: Rename connState in struct hdd_connection_info
The Linux Coding Style frowns upon mixed-case names so rename field
connState in struct hdd_connection_info to be compliant.

Change-Id: Ib5e1fa2cc4c6ea4e15a6dba2c0ec3ac424b9e09e
CRs-Fixed: 2409873
2019-03-06 00:32:12 -08:00
Jeff Johnson
fdb993cdb7 qcacld-3.0: Rename HDD variable eBssType
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable eBssType to be
compliant.

Change-Id: Ifb59945fbde736d3aea0cc00034950337c3e5f17
CRs-Fixed: 2409076
2019-03-05 03:49:49 -08:00
Jeff Johnson
29c7867475 qcacld-3.0: Rename HDD variables roam{Id,Status,Result}
The Linux Coding Style frowns upon mixed-case names so rename HDD
local variables roamId, roamStatus, and roamResult to be compliant.

Change-Id: I4bdca17412e5bd58e9bf9a5921e699b28896d90e
CRs-Fixed: 2408528
2019-03-05 03:49:04 -08:00
gaurank kathpalia
6c4b50c28d qcacld-3.0: Accept update nss command in disconnected state
Currently if the FW supports the dynamic nss update feature,
the driver rejects the command to change the nss, but
there can be case scenarios where this update is required.

Fix is to accept the command in disconnected state, and
update the vdev specific ini of nss, and also update the
ini, and dynamic configuration in vdev mlme obj, which
is used in dynamic nss update.

Change-Id: I9cfa7f112159148733f06bf479987928f112901f
CRs-Fixed: 2404262
2019-03-04 14:22:21 -08:00
Dustin Brown
c1d81af5c6 qcacld-3.0: Migrate driver transitions to osif_driver_sync
With the recent addition of osif_driver_sync APIs, DSC use is abstracted
behind a common interface. Migrate HDD to the new interface by updating
driver transitions to use the new APIs.

Change-Id: I394f007dd5485cd8d22aee84af74f8854ed54bb6
CRs-Fixed: 2408211
2019-03-02 13:31:32 -08:00
Jeff Johnson
a6b398d25d qcacld-3.0: Remove wlan_hdd_validate_session_id()
Previously I06f948d8de4b8a98bfe66e18ae38b1040204fdb4 ("qcacld-3.0:
Replace wlan_hdd_validate_session_id()") replaced all instances of
wlan_hdd_validate_session_id() with wlan_hdd_validate_vdev_id().
However this change left behind the wlan_hdd_validate_session_id()
macro. Subsequently I7584fb5db036d1643bd7d56076d30a0c75008a98
("qcacld-3.0: Handle OWE info update from hostapd") added a new
instance of invoking wlan_hdd_validate_session_id(). So rename the new
instance, and remove the macro to prevent the addition of any future
instances.

Change-Id: I132a749d2f694b44296a44f2aa31e9aec5f0878f
CRs-Fixed: 2408166
2019-03-02 10:24:06 -08:00
Qun Zhang
ef65562bcd qcacld-3.0: Support firmware state check through cfg80211 vendor cmd
Add the support to allow user space applications through cfg80211
vendor command to check if wlan firmware is alive or not.

Change-Id: I96bb16e01974f7689493577741a36e3832963996
CRs-Fixed: 2399508
2019-03-01 09:23:49 -08:00
Manjunathappa Prakash
f39d2374a2 qcacld-3.0: Add stats for Rx gratuitous_arp and multicast_replay drops
Remove logging of Rx drops due to gratuitous_arp and multicast_replay
packets. Add separate stats counter and log it part of periodic stats.

Change-Id: Ib70505bbb8e6b2d363e04493f9e3d2d99e417e8d
CRs-Fixed: 2403211
2019-02-28 01:27:44 -08:00
Dustin Brown
015208532f qcacld-3.0: Integrate DSC (spectral scan)
As part of DSC integration, replace remaining cds_ssr_protect/unprotect
calls with appropriate osif_sync op start/stop calls in spectral scan.

Change-Id: I6a2f221aea47b31a0926e64f614999452d21a9f0
CRs-Fixed: 2406599
2019-02-27 19:24:47 -08:00
Jeff Johnson
afa022c9cd qcacld-3.0: Rename HDD variable pUserData
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pUserData to be
compliant.

Change-Id: Ia6e960b2666ef2dc958cdc97cef0b525cfa9e58d
CRs-Fixed: 2405754
2019-02-27 11:37:45 -08:00
Jeff Johnson
52f19d57d7 qcacld-3.0: Rename HDD variable pPeerInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pPeerInfo to be
compliant.

Change-Id: I1b8eb881e6c5fc164a587ba6305bbdf22002d865
CRs-Fixed: 2405753
2019-02-27 11:37:39 -08:00
Jeff Johnson
b8673d0dae qcacld-3.0: Use vdev_id in wlan_hdd_set_filter()
Currently wlan_hdd_set_filter() uses sessionId as a parameter name.
In order to align with converged naming, and to adhere to the Linux
coding style, change this to vdev_id.

Change-Id: Icf284b27bf72df0bac1c3b7a2a60b5a7129b49e5
CRs-Fixed: 2404328
2019-02-27 09:55:42 -08:00
Min Liu
e34708a91d qcacld-3.0: Send update OWE info event
When receiving assoc request from OWE STA, always send update OWE
info event which contains the following information:
- MAC address of STA
- RSN IE in assoc request
- DH IE in assoc request

Change-Id: I7017c5d2730e493db2472ae53d5dfa69553cfe45
CRs-Fixed: 2396925
2019-02-27 08:11:42 -08:00
gaurank kathpalia
566c81ba4d qcacld-3.0: Refactor ini CFG_DHCP_SERVER_IP_NAME
Refactor ini CFG_DHCP_SERVER_IP_NAME to hdd config file

Change-Id: Iabaae01d3abfdada8a68606627cd96f959d05b07
2019-02-27 05:10:08 -08:00
Jeff Johnson
7eb6e84efd qcacld-3.0: Introduce wlan_hdd_validate_vdev_id()
Introduce function wlan_hdd_validate_vdev_id() as a replacement for
wlan_hdd_validate_session_id() to align with the converged naming.

Change-Id: I12913e48c28f48ab7139d012b1584d8a8a9737ab
CRs-Fixed: 2404173
2019-02-25 17:17:01 -08:00
Wu Gao
814ce703b4 qcacld-3.0: Format ini descriptions
Some ini descriptions are different to common, and some of them
include wrong information, so correct them and use unified form.

Change-Id: I36348fb26a03cab254fd309d792125b8a21ad02f
CRs-Fixed: 2402446
2019-02-24 21:34:47 -08:00
Jeff Johnson
301e5c996e qcacld-3.0: Refine hdd_send_peer_status_ind_to_oem_app()
Refine hdd_send_peer_status_ind_to_oem_app() as follows:
- Replace legacy sessionId with converged vdev_id
- Replace mixed-case names
- Zero the entire struct instead of per-field

Change-Id: I543fccbd628c653bf2dca1fa422688592d43e4a9
CRs-Fixed: 2404168
2019-02-24 14:59:22 -08:00
Jeff Johnson
8c76d609bd qcacld-3.0: Use vdev_id in hdd_send_peer_status_ind_to_app()
Currently hdd_send_peer_status_ind_to_app() uses the legacy term
sessionId to reference a virtual device. To align with converged
naming rename this to vdev_id.

Change-Id: Iada1a4bd86bbe444bc899bbaa1e05daccc552904
CRs-Fixed: 2404161
2019-02-24 05:07:59 -08:00
Srinivas Dasari
ea1c133d3f qcacld-3.0: Set EXTERNAL_AUTH flag for SAE auth frame
hostapd handles SAE authentication frames sent by a station.
Set the flag RXMGMT_FLAG_EXTERNAL_AUTH and forward them
to hostapd.

Change-Id: Ic1d6a560430307b899700f98d90a7dacfe741071
CRs-Fixed: 2396360
2019-02-23 07:04:50 -08:00
Rajeev Kumar Sirasanagandla
02d6f8612c qcacld-3.0: Fix markings
Fix markings per current guidance.

Change-Id: Ibff12c8fb077e5d3ee82d803da499ff65a62b5c6
CRs-Fixed: 2399801
2019-02-22 21:23:30 -08:00
hangtian
0aa4b545c5 qcacld-3.0: Revert set ol_rx_thread to SCHED_RR
Revert set ol_rx_thread to SCHED_RR, SCHED_RR could lead to
hdd_ctx->bus_bw_work delayed for long time, and throughput level is not
updated while running traffic, finally hdd_rx_packet_cbk drop packets(rx
path slow).

Change-Id: Idc48c4ff4f38e25124121f814492ea116555cd32
CRs-Fixed: 2398511
2019-02-22 01:27:43 -08:00
Jeff Johnson
b8cfffb180 qcacld-3.0: Remove obsolete hdd_context_lock
The functionality previously synchronized by the hdd_context_lock has
migrated to the OSIF Request Manager, and the hdd_context_lock is no
longer used. Since it is obsolete, remove it.

Change-Id: Ibb807eeec5e5a20a39596cdb1b068ea5cca9d2d3
CRs-Fixed: 2400777
2019-02-19 23:31:03 -08:00
Rajeev Kumar
0f10c5ab45 qcacld-3.0: Remove obsolete prevent_link_down from hdd cfg
After CFG INI componentization hdd prevent link down config
is obsolete and hence remove it from hdd config.

Change-Id: Ibcceef38b9aedfb323e859ff0c20d1b068dce08d
CRs-Fixed: 2397353
2019-02-15 00:44:54 -08:00
gaurank kathpalia
43c5262700 qcacld-3.0: Refactor cfg item dot11mode ini to hdd cfg
Refactor cfg item dot11mode ini to hdd cfg

Change-Id: I212ea8040f958de5834aefc70b1e39102aa635ab
CRs-Fixed: 2393501
2019-02-14 18:48:07 -08:00
Dustin Brown
6412d1f9cc qcacld-3.0: Move hdd_dsc to osif/sync
Move the contents of hdd_dsc to the new files added in osif/sync as part
of Ica94d32028d10d344294d6cc12d91a06efe1ab6c.

Change-Id: I556e9d2833edd2bd26266496b6000347649c5fbe
CRs-Fixed: 2396512
2019-02-11 23:58:12 -08:00
Pragaspathi Thilagaraj
a889375029 qcacld-3.0: Refactor legacy ini items
Refactor the below two ini items to new converged cfg/ini
infrastructure:
"gEnableChangeChannelBandWidth"
"extscan_adaptive_dwell_mode"

"extscan_adaptive_dwell_mode" - move this to scm module
"gEnableChangeChannelBandWidth" - move this to mlme

Change-Id: I1ca6657a95c2cd47057f11ccf23c47347f3fc33b
CRs-Fixed: 2394240
2019-02-11 07:38:23 -08:00
Krishna Reddy
a50d09f425 qcacld-3.0: Dynamic Coex IOCTL Changes
Add iwpriv commands to support dynamic control of Bluetooth
coexistence mode and RSSI threshold level for switching
between FDD and TDD modes

Change-Id: I527335896c7d36d7a93425c2a4d02a339ec44605
CRs-Fixed: 2393421
2019-02-10 23:46:26 -08:00
Jeff Johnson
a7d5b54c7e qcacld-3.0: Replace typedef tSirSmeChanInfo
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 tSirSmeChanInfo typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.

Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance, as well as to be more specific on how the
struct is used.

Change-Id: Ic9a596d05a7c4c0727264c33e865edd4a9786dac
CRs-Fixed: 2394998
2019-02-09 18:02:47 -08:00
Abhinav Kumar
c8c215007a qcacld-3.0: ADD MLME INI item of WMM Config
Add the WMM config ini config
CFG_TL_DELAYED_TRGR_FRM_INT_NAME to MLME cfg.

Introduce the basic infra APIs related to these configs
from mlme.

Change-Id: Ifaf8072a78f21760e00973e625d7c8e41d8b51a6
CRs-Fixed: 2361533
2019-02-08 06:14:33 -08:00
Sandeep Puligilla
3461878302 qcacld-3.0: Refactor 11AC override CFG items
Refactor following CFG items
1. CFG_SAP_11AC_OVERRIDE
2. CFG_GO_11AC_OVERRIDE

Change-Id: I63497fcc4440fb079fa0f8d8879758baad2d8fc2
CRs-Fixed: 2391667
2019-02-07 10:10:20 -08:00
Jeff Johnson
84512fb3a5 qcacld-3.0: Remove session_id from hdd_adapter
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it was desirable
to change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. Subsequent
changes replaced all session_id field references with vdev_id.

Now that all references to hdd_adapter field session_id have been
changed to vdev_id, remove the union that was previously added,
leaving behind just the vdev_id field.

Change-Id: I7a2e0812dcd9e9a9f229d1e310785710ab9d4acf
CRs-Fixed: 2393156
2019-02-07 00:13:04 -08:00
Abhinav Kumar
338e57d779 qcacld-3.0: Avoid VDEV restart for SAP when roaming in progress
Currently, driver allows VDEV-RESTART on SAP interface in order to
channel switch or hidden ssid connection when roaming is in progress
on STA interface. This leads to two simultaneous vdev starts or
vdev-restart in FW which causes the FW to assert.

Add changes to reject the channel switch for SAP or in hidden ssid
connection if roaming is in progress on any STA interface.

Change-Id: I1cea389021049779b5aa00145e2470cd67158edd
CRs-Fixed: 2390235
2019-02-06 17:12:36 -08:00
gaurank kathpalia
ba22ef2abf qcacld-3.0: Refactor ini 11d in world mode to reg cfg
Refactor ini 11d in world mode to reg cfg, instead of
hdd config.

Change-Id: I9463d6efe3c109aa07eb98378d38ef0b23ff3880
CRs-Fixed: 2393498
2019-02-06 14:39:05 -08:00
Dustin Brown
a9a8452739 qcacld-3.0: Remove timer_multiplier from hdd_config
gTimerMultiplier is only ever handed down to qdf_timer_set_multiplier.
Don't bother keeping a copy in hdd_config.

Change-Id: I901cb95d4fe98efd165b8351052c6dc8a1252b74
CRs-Fixed: 2393093
2019-02-05 20:12:31 -08:00
Pragaspathi Thilagaraj
f37f393792 qcacld-3.0: Remove legacy scan and ap protection related ini items
Remove the following scan and ap protection related ini items:
CFG_AP_ENABLE_PROTECTION_MODE_NAME
CFG_ENABLE_MAC_ADDR_SPOOFING
CFG_SCAN_AGING_PARAM_NAME

Replace the corresponding hdd_config variables and replace
these variable callers with ucfg api from corresponding module.

Change-Id: I99a2659e2151ad285e9451b9e9cc036a199581a3
CRs-Fixed: 2378991
2019-02-05 18:01:10 -08:00
Ashish Kumar Dhanotiya
c617106eea qcacld-3.0: Add support to cache peer capability info
Currently connected peer capability information is not getting
cached for SAP.

Add support to cache the capability info from assoc request

Change-Id: I0088bd20a98e2491f6ffb452417bc73f21e69e63
CRs-Fixed: 2392939
2019-02-05 06:29:30 -08:00
Jeff Johnson
19f4af5b3a qcacld-3.0: Alias vdev_id to session_id in hdd_adapter
Currently struct hdd_adapter uses the legacy term session_id. To align
with converged naming it is desirable to change this to vdev_id, but
due to the large number of places where session_id is used it will be
difficult to modify all occurences at once. In order to allow changes
to "trickle in" replace the session_id field with a union that
contains both a session_id and a vdev_id field. This will allow
vdev_id and session_id to both be used to access the same data item.

Subsequent changes can then replace references to session_id with
vdev_id, and then once all references have been converted, replace the
union with a single vdev_id field.

Change-Id: Id92b1a7bb9721564ba01184809fec98be2143545
CRs-Fixed: 2392986
2019-02-05 01:38:50 -08:00
Nachiket Kukade
2fb1fdb1ac qcacld-3.0: Combine all NAN related flags with WLAN_FEATURE_NAN
Flag WLAN_FEATURE_NAN_DATAPATH was added to protect NAN Datapath
related code, while WLAN_FEATURE_NAN_CONVERGENCE was added to
protect the converged code inside NAN Component. Since the
original NAN Discovery related code has now been moved inside
NAN component and NAN Datapath cannot exist without NAN Discovery,
keeping these flags separate doesn't make sense. Combine these
two flags with WLAN_FEATURE_NAN flag which is the original NAN
feature flag.

As a cleanup of NAN code, combine all NAN related flags with
WLAN_FEATURE_NAN flag.

Change-Id: If98ecaace17f8724e9c28325ef61e721f42e1d8f
CRs-Fixed: 2377375
2019-02-04 10:44:30 -08:00