Documentation ¶
Overview ¶
Package wlan provides the information of the wlan device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeviceNames = map[DeviceID]string{ Marvell88w8897SDIO: "Marvell 88W8897 SDIO", Marvell88w8997PCIE: "Marvell 88W8997 PCIE", QualcommAtherosQCA6174: "Qualcomm Atheros QCA6174", QualcommAtherosQCA6174SDIO: "Qualcomm Atheros QCA6174 SDIO", QualcommWCN3990: "Qualcomm WCN3990", QualcommWCN6750: "Qualcomm WCN6750", QualcommWCN6855: "Qualcomm WCN6855", Intel7260: "Intel 7260", Intel7265: "Intel 7265", Intel8265: "Intel 8265", Intel9000: "Intel 9000", Intel9260: "Intel 9260", Intel22260: "Intel 22260", Intel22560: "Intel 22560", IntelAX201: "Intel AX 201", IntelAX203: "Intel AX 203", IntelAX211: "Intel AX 211", IntelBE200: "Intel BE 200", BroadcomBCM4354SDIO: "Broadcom BCM4354 SDIO", BroadcomBCM4356PCIE: "Broadcom BCM4356 PCIE", BroadcomBCM4371PCIE: "Broadcom BCM4371 PCIE", Realtek8822CPCIE: "Realtek 8822C PCIE", Realtek8852APCIE: "Realtek 8852A PCIE", Realtek8852CPCIE: "Realtek 8852C PCIE", MediaTekMT7921PCIE: "MediaTek MT7921 PCIE", MediaTekMT7921SDIO: "MediaTek MT7921 SDIO", MediaTekMT7922PCIE: "MediaTek MT7922 PCIE", }
DeviceNames map contains WLAN device names.
View Source
var LookupWLANDev = map[DevInfo]DeviceID{ {Vendor: "0x02df", Device: "0x912d"}: Marvell88w8897SDIO, {Vendor: "0x1b4b", Device: "0x2b42"}: Marvell88w8997PCIE, {Vendor: "0x168c", Device: "0x003e"}: QualcommAtherosQCA6174, {Vendor: "0x0271", Device: "0x050a"}: QualcommAtherosQCA6174SDIO, {Vendor: "0x17cb", Device: "0x1103"}: QualcommWCN6855, {Vendor: "0x8086", Device: "0x08b1"}: Intel7260, {Vendor: "0x8086", Device: "0x08b2"}: Intel7260, {Vendor: "0x8086", Device: "0x095a"}: Intel7265, {Vendor: "0x8086", Device: "0x095b"}: Intel7265, {Vendor: "0x8086", Device: "0x9df0"}: Intel9000, {Vendor: "0x8086", Device: "0x31dc"}: Intel9000, {Vendor: "0x8086", Device: "0x2526"}: Intel9260, {Vendor: "0x8086", Device: "0x2723"}: Intel22260, {Vendor: "0x8086", Device: "0x24fd", Subsystem: "0x0010"}: Intel8265, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x0030"}: Intel9000, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x0034"}: Intel9000, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x4070"}: Intel22560, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x0074"}: Intel22560, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x6074"}: Intel22560, {Vendor: "0x8086", Device: "0x4df0", Subsystem: "0x0070"}: Intel22560, {Vendor: "0x8086", Device: "0x4df0", Subsystem: "0x4070"}: Intel22560, {Vendor: "0x8086", Device: "0x4df0", Subsystem: "0x0074"}: Intel22560, {Vendor: "0x8086", Device: "0x4df0", Subsystem: "0x6074"}: Intel22560, {Vendor: "0x8086", Device: "0xa0f0", Subsystem: "0x4070"}: Intel22560, {Vendor: "0x8086", Device: "0xa0f0", Subsystem: "0x0074"}: Intel22560, {Vendor: "0x8086", Device: "0xa0f0", Subsystem: "0x6074"}: Intel22560, {Vendor: "0x8086", Device: "0x02f0", Subsystem: "0x0070"}: IntelAX201, {Vendor: "0x8086", Device: "0xa0f0", Subsystem: "0x0070"}: IntelAX201, {Vendor: "0x8086", Device: "0x54f0", Subsystem: "0x0274"}: IntelAX203, {Vendor: "0x8086", Device: "0x54f0", Subsystem: "0x4274"}: IntelAX203, {Vendor: "0x8086", Device: "0x51f0", Subsystem: "0x0090"}: IntelAX211, {Vendor: "0x8086", Device: "0x51f1", Subsystem: "0x0090"}: IntelAX211, {Vendor: "0x8086", Device: "0x51f1", Subsystem: "0x0094"}: IntelAX211, {Vendor: "0x8086", Device: "0x51f0", Subsystem: "0x0094"}: IntelAX211, {Vendor: "0x8086", Device: "0x51f0", Subsystem: "0x4090"}: IntelAX211, {Vendor: "0x8086", Device: "0x54f0", Subsystem: "0x0090"}: IntelAX211, {Vendor: "0x8086", Device: "0x54f0", Subsystem: "0x0094"}: IntelAX211, {Vendor: "0x8086", Device: "0x7e40", Subsystem: "0x0090"}: IntelAX211, {Vendor: "0x8086", Device: "0x7e40", Subsystem: "0x0094"}: IntelAX211, {Vendor: "0x8086", Device: "0x272b"}: IntelBE200, {Vendor: "0x14e4", Device: "0x43ec"}: BroadcomBCM4356PCIE, {Vendor: "0x10ec", Device: "0xc822"}: Realtek8822CPCIE, {Vendor: "0x10ec", Device: "0x8852"}: Realtek8852APCIE, {Vendor: "0x10ec", Device: "0xc852"}: Realtek8852CPCIE, {Vendor: "0x14c3", Device: "0x7961"}: MediaTekMT7921PCIE, {Vendor: "0x037a", Device: "0x7901"}: MediaTekMT7921SDIO, {Vendor: "0x14c3", Device: "0x7922"}: MediaTekMT7922PCIE, {Vendor: "0x14c3", Device: "0x0616"}: MediaTekMT7922PCIE, {Compatible: "qcom,wcn3990-wifi"}: QualcommWCN3990, {Compatible: "qcom,wcn6750-wifi"}: QualcommWCN6750, }
LookupWLANDev mapping of device identification data to device ID.
Functions ¶
This section is empty.
Types ¶
type DevInfo ¶
type DevInfo struct { // Vendor is the vendor ID seen in /sys/class/net/<interface>/vendor. Vendor string // Device is the product ID seen in /sys/class/net/<interface>/device. Device string // Compatible is the compatible property. // See https://www.kernel.org/doc/Documentation/devicetree/usage-model.txt. Compatible string // Subsystem is the RF chip's ID. The addition of this property is necessary for // device disambiguation (b/129489799). Subsystem string // Device (enum) ID ID DeviceID // The device name. Name string }
DevInfo contains the information of the WLAN device.
func DeviceInfo ¶
DeviceInfo returns a public struct (DevInfo) containing the WLAN device information.
func (*DevInfo) SupportMUMIMO ¶
SupportMUMIMO return true if the WLAN device support MU-MIMO.
type DeviceID ¶
type DeviceID int32
DeviceID is used as a Device ID type.
const ( UnknownDevice DeviceID = iota Marvell88w8897SDIO Marvell88w8997PCIE QualcommAtherosQCA6174 QualcommAtherosQCA6174SDIO QualcommWCN3990 QualcommWCN6750 QualcommWCN6855 Intel7260 Intel7265 Intel8265 Intel9000 Intel9260 Intel22260 Intel22560 IntelAX201 IntelAX203 IntelAX211 IntelBE200 BroadcomBCM4354SDIO BroadcomBCM4356PCIE BroadcomBCM4371PCIE Realtek8822CPCIE Realtek8852APCIE Realtek8852CPCIE MediaTekMT7921PCIE MediaTekMT7921SDIO MediaTekMT7922PCIE )
WLAN Device IDs.
Click to show internal directories.
Click to hide internal directories.