2018-10-06 21:36:22 +08:00
|
|
|
PKG_DRIVERS += \
|
|
|
|
|
rtl8180 rtl8187 \
|
|
|
|
|
rtlwifi rtlwifi-pci rtlwifi-btcoexist rtlwifi-usb rtl8192c-common \
|
2020-05-27 00:17:15 +08:00
|
|
|
rtl8192ce rtl8192se rtl8192de rtl8192cu rtl8821ae \
|
|
|
|
|
rtl8xxxu
|
2018-10-06 21:36:22 +08:00
|
|
|
|
|
|
|
|
config-$(call config_package,rtl8180) += RTL8180
|
|
|
|
|
config-$(call config_package,rtl8187) += RTL8187
|
|
|
|
|
|
|
|
|
|
config-$(call config_package,rtlwifi) += RTL_CARDS RTLWIFI
|
|
|
|
|
config-$(call config_package,rtlwifi-pci) += RTLWIFI_PCI
|
|
|
|
|
config-$(call config_package,rtlwifi-btcoexist) += RTLBTCOEXIST
|
|
|
|
|
config-$(call config_package,rtlwifi-usb) += RTLWIFI_USB
|
|
|
|
|
config-$(call config_package,rtl8192c-common) += RTL8192C_COMMON
|
|
|
|
|
config-$(call config_package,rtl8192ce) += RTL8192CE
|
|
|
|
|
config-$(call config_package,rtl8192se) += RTL8192SE
|
|
|
|
|
config-$(call config_package,rtl8192de) += RTL8192DE
|
|
|
|
|
config-$(call config_package,rtl8192cu) += RTL8192CU
|
|
|
|
|
config-$(call config_package,rtl8821ae) += RTL8821AE
|
|
|
|
|
config-$(CONFIG_PACKAGE_RTLWIFI_DEBUG) += RTLWIFI_DEBUG
|
|
|
|
|
|
|
|
|
|
config-$(call config_package,rtl8xxxu) += RTL8XXXU
|
|
|
|
|
config-y += RTL8XXXU_UNTESTED
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl818x/Default
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek Drivers for RTL818x devices
|
|
|
|
|
URL:=https://wireless.wiki.kernel.org/en/users/drivers/rtl8187
|
|
|
|
|
DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8180
|
|
|
|
|
$(call KernelPackage/rtl818x/Default)
|
|
|
|
|
DEPENDS+= @PCI_SUPPORT
|
|
|
|
|
TITLE+= (RTL8180 PCI)
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl818x/rtl8180/rtl818x_pci.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl818x_pci)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8187
|
|
|
|
|
$(call KernelPackage/rtl818x/Default)
|
|
|
|
|
DEPENDS+= @USB_SUPPORT +kmod-usb-core
|
|
|
|
|
TITLE+= (RTL8187 USB)
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8187.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8187)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtlwifi/config
|
|
|
|
|
config PACKAGE_RTLWIFI_DEBUG
|
|
|
|
|
bool "Realtek wireless debugging"
|
|
|
|
|
depends on PACKAGE_kmod-rtlwifi
|
|
|
|
|
help
|
|
|
|
|
Say Y, if you want to debug realtek wireless drivers.
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtlwifi
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek common driver part
|
mac80211: netifd: Use a mask when using Usage: iw [options] command
Options:
--debug enable netlink debugging
--version show version (3.4)
Commands:
help [command]
Print usage for all or a specific command, e.g.
"help wowlan" or "help wowlan enable".
event [-t] [-r] [-f]
Monitor events from the kernel.
-t - print timestamp
-r - print relative timstamp
-f - print full frame for auth/assoc etc.
phy
list
List all wireless devices and their capabilities.
phy <phyname> info
Show capabilities for the specified wireless device.
dev
List all network interfaces for wireless hardware.
dev <devname> info
Show information for this interface.
dev <devname> del
Remove this virtual interface
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
Add a new virtual interface with the given configuration.
Valid interface types are: managed, ibss, monitor, mesh, wds.
The flags are only used for monitor interfaces, valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
The mesh_id is used only for mesh mode.
dev <devname> ibss join <SSID> <freq in MHz> [HT20|HT40+|HT40-|NOHT] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
Join the IBSS cell with the given SSID, if it doesn't exist create
it on the given frequency. When fixed frequency is requested, don't
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell's BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
it with the specified basic-rates, multicast-rate and beacon-interval.
dev <devname> ibss leave
Leave the current IBSS cell.
dev <devname> station dump
List all stations known, e.g. the AP on managed interfaces
dev <devname> station set <MAC address> vlan <ifindex>
Set an AP VLAN for this station.
dev <devname> station set <MAC address> plink_action <open|block>
Set mesh peer link action for this station (peer).
dev <devname> station del <MAC address>
Remove the given station entry (use with caution!)
dev <devname> station get <MAC address>
Get information for a specific station.
dev <devname> survey dump
List all gathered channel survey data
dev <devname> mesh leave
Leave a mesh.
dev <devname> mesh join <mesh ID> [mcast-rate <rate in Mbps>] [<param>=<value>]*
Join a mesh with the given mesh ID with mcast-rate and mesh parameters.
dev <devname> mpath dump
List known mesh paths.
dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
Set an existing mesh path's next hop.
dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
Create a new mesh path (instead of relying on automatic discovery).
dev <devname> mpath del <MAC address>
Remove the mesh path to the given node.
dev <devname> mpath get <MAC address>
Get information on mesh path to the given node.
dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [ssid <ssid>*|passive]
Scan on the given frequencies and probe for the given SSIDs
(or wildcard if not given) unless passive scanning is requested.
If -u is specified print unknown data in the scan results.
Specified (vendor) IEs must be well-formed.
dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [ssid <ssid>*|passive]
Trigger a scan on the given frequencies with probing for the given
SSIDs (or wildcard if not given) unless passive scanning is requested.
dev <devname> scan dump [-u]
Dump the current scan results. If -u is specified, print unknown
data in scan results.
reg get
Print out the kernel's current regulatory domain information.
reg set <ISO/IEC 3166-1 alpha2>
Notify the kernel about the current regulatory domain.
dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
Join the network with the given SSID (and frequency, BSSID).
With -w, wait for the connect to finish or fail.
dev <devname> disconnect
Disconnect from the current network.
dev <devname> link
Print information about the current link, if any.
dev <devname> offchannel <freq> <duration>
Leave operating channel and go to the given channel for a while.
dev <devname> cqm rssi <threshold|off> [<hysteresis>]
Set connection quality monitor RSSI threshold.
phy <phyname> wowlan show
Show WoWLAN status.
phy <phyname> wowlan disable
Disable WoWLAN.
phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [patterns <pattern>*]
Enable WoWLAN with the given triggers.
Each pattern is given as a bytestring with '-' in places where any byte
may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
00:11:22:33:ff:44 etc.
dev <devname> roc start <freq> <time>
phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
Set a bitmap of allowed antennas to use for TX and RX.
The driver may reject antenna configurations it cannot support.
dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
Specify transmit power level and setting type.
phy <phyname> set distance <distance>
Set appropriate coverage class for given link distance in meters.
Valid values: 0 - 114750
phy <phyname> set coverage <coverage class>
Set coverage class (1 for every 3 usec of air propagation time).
Valid values: 0 - 255.
phy <phyname> set netns <pid>
Put this wireless device into a different network namespace
phy <phyname> set rts <rts threshold|off>
Set rts threshold.
phy <phyname> set frag <fragmentation threshold|off>
Set fragmentation threshold.
dev <devname> set channel <channel> [HT20|HT40+|HT40-]
phy <phyname> set channel <channel> [HT20|HT40+|HT40-]
dev <devname> set freq <freq> [HT20|HT40+|HT40-]
phy <phyname> set freq <freq> [HT20|HT40+|HT40-]
Set frequency/channel the hardware is using, including HT
configuration.
phy <phyname> set name <new name>
Rename this wireless device.
dev <devname> set peer <MAC address>
Set interface WDS peer.
dev <devname> set noack_map <map>
Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)
dev <devname> set 4addr <on|off>
Set interface 4addr (WDS) mode.
dev <devname> set type <type>
Set interface type/mode.
Valid interface types are: managed, ibss, monitor, mesh, wds.
dev <devname> set meshid <meshid>
dev <devname> set monitor <flag>*
Set monitor flags. Valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
Set mesh parameter (run command without any to see available ones).
dev <devname> set power_save <on|off>
Set power save state to on or off.
dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [mcs-<2.4|5> <MCS index>*]
Sets up the specified rate masks.
Not passing any arguments would clear the existing mask (if any).
dev <devname> get mesh_param [<param>]
Retrieve mesh parameter (run command without any to see available ones).
dev <devname> get power_save <param>
Retrieve power save state.
You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
Do NOT screenscrape this tool, we don't consider its output stable.
2019-03-20 13:58:58 +08:00
|
|
|
DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT) +kmod-mac80211 +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
|
2018-10-06 21:36:22 +08:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtlwifi.ko
|
|
|
|
|
HIDDEN:=1
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtlwifi-pci
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek common driver part (PCI support)
|
|
|
|
|
DEPENDS+= @PCI_SUPPORT +kmod-rtlwifi
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl_pci.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl_pci)
|
|
|
|
|
HIDDEN:=1
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtlwifi-btcoexist
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek BT coexist support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/btcoexist/btcoexist.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,btcoexist)
|
|
|
|
|
HIDDEN:=1
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtlwifi-usb
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek common driver part (USB support)
|
|
|
|
|
DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-rtlwifi
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl_usb.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl_usb)
|
|
|
|
|
HIDDEN:=1
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8192c-common
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8192CE/RTL8192CU common support module
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192c/rtl8192c-common.ko
|
|
|
|
|
HIDDEN:=1
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8192ce
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8192CE/RTL8188CE support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi-pci +kmod-rtl8192c-common +rtl8192ce-firmware
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/rtl8192ce.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8192ce)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8192se
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8192SE/RTL8191SE support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi-pci +rtl8192se-firmware
|
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192se/rtl8192se.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8192se)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8192de
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8192DE/RTL8188DE support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi-pci +rtl8192de-firmware
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192de/rtl8192de.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8192de)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8192cu
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8192CU/RTL8188CU support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi-usb +kmod-rtl8192c-common +rtl8192cu-firmware
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/rtl8192cu.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8192cu)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8821ae
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=Realtek RTL8821AE support
|
|
|
|
|
DEPENDS+= +kmod-rtlwifi-btcoexist +kmod-rtlwifi-pci +rtl8821ae-firmware
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/rtl8821ae.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8821ae)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8xxxu
|
|
|
|
|
$(call KernelPackage/mac80211/Default)
|
|
|
|
|
TITLE:=alternative Realtek RTL8XXXU support
|
|
|
|
|
DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
|
|
|
|
|
FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
|
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8xxxu)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define KernelPackage/rtl8xxxu/description
|
|
|
|
|
This is an alternative driver for various Realtek RTL8XXX
|
|
|
|
|
parts written to utilize the Linux mac80211 stack.
|
|
|
|
|
The driver is known to work with a number of RTL8723AU,
|
|
|
|
|
RL8188CU, RTL8188RU, RTL8191CU, and RTL8192CU devices
|
|
|
|
|
|
|
|
|
|
This driver is under development and has a limited feature
|
|
|
|
|
set. In particular it does not yet support 40MHz channels
|
|
|
|
|
and power management. However it should have a smaller
|
|
|
|
|
memory footprint than the vendor drivers and benetifs
|
|
|
|
|
from the in kernel mac80211 stack.
|
|
|
|
|
|
|
|
|
|
It can coexist with drivers from drivers/staging/rtl8723au,
|
|
|
|
|
drivers/staging/rtl8192u, and drivers/net/wireless/rtlwifi,
|
|
|
|
|
but you will need to control which module you wish to load.
|
|
|
|
|
|
|
|
|
|
RTL8XXXU_UNTESTED is enabled
|
|
|
|
|
This option enables detection of Realtek 8723/8188/8191/8192 WiFi
|
|
|
|
|
USB devices which have not been tested directly by the driver
|
|
|
|
|
author or reported to be working by third parties.
|
|
|
|
|
|
|
|
|
|
Please report your results!
|
|
|
|
|
endef
|