Added support for Realtek RTL8192FU chipset using rtwn driver.
Used Linux's rtl8xxxu driver for reference.
New registers derived from it are saved in r92f_reg.h. Current additions include IQ/LC calibration, channel configuration, LED configuration.
Firmware image added as uuencoded rtwn-rtl8192fufw.fw.uu with a new rtwnfw/rtwnrtl8192fu module.
Some major change to rtwn_softc api:
- qmap API changed: sc_get_qmap() → sc_set_qmap() returning an error; per-chip implementations (r92cu_set_qmap, r92ce_set_qmap); rtwn_dma_init() calls it. 8192FU uses the 8192F-specific 3-bit/shifted qmap encoding.
- Firmware load address: sc->fw_start_addr replaces the hard-coded R92C_FW_START_ADDR (8192FU uses 0x4000); set in every attach path.
Current functionality status:
What works:
- Firmware loading
- Can scan for networks
- Connect to open and wpa2 network
- wpa_cli and wpa_supplicant works well
What works badly or is very flaky:
- assigning static ips
- ifconfig wlan0 create wlandev rtwn0
- ifconfig wlan0 up
- ifconfig wlan0 scan
- ifconfig wlan0 ssid <ssid>
- ifconfig wlan0 inet 192.168.x.x/24
- route add default 192.168.<gateway ip>
- # wait a few seconds
- ping -c3 1.1.1.1
[NOTE]: Lots of packets drops. in my test anywhere around 20 to 30% packet drops, could be more
- very poor speeds, i'm getting around 1 - 0.7 mbps
- very high latency
What doesn't work
- doesn't work with DHCP
- dhclient -d wlan0 either uses a recorded lease and just gives up
Sponsored by: Alchemilla Ventures Private Limited