RTW(4)

πŸ“¦
version 11.0 Β· 2 versions
, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to RTW(4) β€” this is the rtw page from the Kernel Interfaces Manual, and it’s literally all about the Realtek RTL8180L IEEE 802.11b wireless network driver. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

vibe check, here’s how it attaches:

rtw* at cardbus? function ?
rtw* at pci? dev ? function ?

πŸ’… DESCRIPTION πŸ’…

rtw is the driver for PCI/CardBus 802.11b wireless adapters based on the Realtek RTL8180L. no cap. ✨

These devices can have a whole lineup of radio transceivers β€” for example the Philips SA2400A, Maxim MAX2820, and GCT GRF5101 β€” but heads up, not all of them are currently supported. 🫢

vibe check: these are the modes the rtw driver can operate in:

  • BSS mode β€” also known as infrastructure mode. This is what you use when associating with an access point, and all traffic passes through it. This mode is the default. πŸ‘‘
  • IBSS mode β€” also known as IEEE ad-hoc mode or peer-to-peer mode. This is the standardized method of operating without an access point. Stations associate with a service set. However, actual connections between stations are peer-to-peer.
  • Host AP β€” in this mode the driver acts as an access point (base station) for other cards. main character energy, honestly.
  • monitor mode β€” in this mode the driver is able to receive packets without associating with an access point. This disables the internal receive filter and enables the card to capture packets from networks which it wouldn't normally have access to, or to scan for access points. πŸ’…

rtw supports software WEP. Wired Equivalent Privacy (WEP) is the de facto encryption standard for wireless networks. It can be typically configured in one of three modes: no encryption; 40-bit encryption; or 104-bit encryption. Unfortunately, due to serious weaknesses in WEP protocol it is strongly recommended that it not be used as the sole mechanism to secure wireless communication. WEP is not enabled by default.

🚨 bestie, that WEP warning is not a vibe: serious weaknesses, so don’t make it your only security move.

πŸŽ€ CONFIGURATION πŸŽ€

The rtw driver can be configured at runtime with ifconfig(8) or on boot with ifconfig.if(5) using the following parameters:

  • bssid bssid β€” set the BSSID you want.
  • -bssid β€” unset the desired BSSID. In this mode the interface will automatically select a BSSID, which is the default.
  • chan n β€” set the channel (radio frequency) the driver uses, based on the given channel ID n.
  • -chan β€” unset the desired channel. In this mode the driver will automatically select a channel, which is the default.
  • media media β€” the rtw driver supports the following media types:
    • autoselect β€” enable autoselection of the media type and options.
    • DS1 β€” set 802.11b DS 1Mbps operation.
    • DS2 β€” set 802.11b DS 2Mbps operation.
    • DS5 β€” set 802.11b DS 5.5Mbps operation.
    • DS11 β€” set 802.11b DS 11Mbps operation.
  • mediaopt opts β€” the rtw driver supports the following media options:
    • hostap β€” select Host AP operation.
    • ibss β€” select IBSS operation.
    • monitor β€” select monitor mode.
  • -mediaopt opts β€” disable the specified media options on the driver and return it to the default mode of operation (BSS).
  • ssid id β€” set the network ID. The id can either be any text string up to 32 characters in length, or a series of hexadecimal digits up to 64 digits. An empty id string allows the interface to connect to any available access points. By default the rtw driver uses an empty string. Note that network ID is synonymous with Extended Service Set ID (ESSID).
  • nwkey key β€” enable WEP encryption using the specified key. The key can either be a string, a series of hexadecimal digits (preceded by 0x), or a set of keys of the form n:k1,k2,k3,k4, where n specifies which of the keys will be used for transmitted packets, and the four keys, k1 through k4, are configured as WEP keys. If a set of keys is specified, a comma (,) within the key must be escaped with a backslash (\). Note that if multiple keys are used, their order must be the same within the network. rtw is capable of using both 40-bit (5 characters or 10 hexadecimal digits) or 104-bit (13 characters or 26 hexadecimal digits) keys.
  • -nwkey β€” disable WEP encryption. This is the default mode of operation.
  • nwkey persist β€” enable WEP encryption with the persistent key stored in the network card.

πŸ”₯ HARDWARE πŸ”₯

The following adapters should work β€” slay:

  • Belkin F5D6020 V3 β€” CardBus
  • Buffalo WLI-CB-B11 β€” CardBus
  • Corega CG-WLCB11V3 β€” CardBus
  • D-Link DWL-610 β€” CardBus
  • Level-One WPC-0101 β€” CardBus
  • Linksys WPC11 v4 β€” CardBus
  • Netgear MA521 β€” CardBus
  • Ovislink AirLive WL-1120PCM β€” CardBus
  • Planet WL-3553 β€” CardBus
  • TrendNET TEW-266PC β€” CardBus
  • VCTnet PC-11B1 β€” CardBus

🌈 EXAMPLES 🌈

The following ifconfig.if(5) example creates a host-based access point on boot:

inet 192.168.1.1 255.255.255.0 NONE media autoselect \
        mediaopt hostap ssid my_net chan 11

Configure rtw0 for WEP, using hex key 0x1deadbeef1:

# ifconfig rtw0 nwkey 0x1deadbeef1

Return rtw0 to its default settings:

# ifconfig rtw0 -bssid -chan media autoselect \
        ssid "" -nwkey

Join an existing BSS network, my_net:

# ifconfig rtw0 192.168.1.1 netmask 0xffffff00 ssid my_net

πŸ‘‘ SEE ALSO πŸ‘‘

Go peek at these, iykyk: arp(4), cardbus(4), ifmedia(4), intro(4), netintro(4), pci(4), ifconfig.if(5), ifconfig(8).

Realtek, http://www.realtek.com.tw.

πŸ•°οΈ HISTORY πŸ•°οΈ

The rtw device driver first appeared in NetBSD 3.0 and then in OpenBSD 3.7. ✨

🫢 AUTHORS 🫢

The rtw driver was written by David Young ⟨dyoung@NetBSD.org⟩ and ported to OpenBSD by Jonathan Gray <jsg@openbsd.org>, who wrote this man page. πŸ’–

πŸ’€ BUGS πŸ’€

this is the rough part, bestie: only the Philips SA2400A and Maxim MAX2820 RF transceivers are known to work. Devices incorporating a GCT RF transceiver are not supported due to a lack of documentation from GCT. 😭

While PCI devices will attach most of them are not able to transmit. πŸ’€


and that’s the whole RTW(4) page, bestie β€” this cutie came from the Debian manual set, dated December 29, 2004. periodt. 🫢

πŸ“¦ where this page comes from