/* Realtek RTL8821AU / RTL8811AU USB WiFi (802.11ac, 1x1), e.g. the TP-Link * Archer T2U Nano (2357:011f). A port of the Linux rtw88 8821A/USB bring-up * (rtw88xxa.c, rtw8821a.c, mac.c, usb.c) that plugs into wifi.c through the * wififw dispatch layer (wifi_fw.h); every call below has the iwl_mvm.h * semantics. * * The chip runs with its crypto engine off: wifi.c decrypts CCMP RX in * software (ccmp.c) and this driver encrypts CCMP TX itself, so the * firmware never sees a key. Scanning is a software channel hop driven by * rtl8821au_poll(); TX uses fixed legacy rates (no rate adaptation). */ #ifndef RTL8821AU_H #define RTL8821AU_H /* Register the USB device probe (kernel.c, next to the ASIX/RNDIS ones). */ void rtl8821au_register(void); int rtl8821au_present(void); /* a supported stick is attached */ const char *rtl8821au_chip_name(void); const char *rtl8821au_fw_name(void); /* "" until the firmware runs */ int rtl8821au_fatal(void); /* unplugged / USB errors: reload */ int rtl8821au_up(unsigned char mac[6]); void rtl8821au_down(void); const char *rtl8821au_state(void); int rtl8821au_poll(void); int rtl8821au_scan_start(void); int rtl8821au_scan_running(void); int rtl8821au_prepare_connect(const unsigned char bssid[6], unsigned int chan, unsigned int beacon_int); int rtl8821au_set_assoc(unsigned short aid, unsigned int beacon_int, unsigned int dtim); void rtl8821au_disconnect(void); int rtl8821au_tx_mgmt(const unsigned char *frame, unsigned int len); int rtl8821au_tx_data(const unsigned char *frame, unsigned int len, int protect); int rtl8821au_set_key(int pairwise, int keyidx, const unsigned char key[16], const unsigned char rsc[6]); void rtl8821au_clear_keys(void); #endif