wifi.h 961 B

1234567891011121314151617181920212223242526
  1. /* WiFi station (Intel 7265D/3165, 6200/6300, Realtek RTL8821AU USB): 802.11
  2. * MLME, Ethernet <-> 802.11 data path, EAPOL queue for the ring-3
  3. * supplicant, and the `wifi` netdev. The device layer is reached through
  4. * wifi_fw.h (iwl_mvm.c / iwl_dvm.c over iwl_trans.c, or rtl8821au.c). */
  5. #ifndef WIFI_H
  6. #define WIFI_H
  7. #include "netdev.h"
  8. extern const struct netdev wifi_netdev;
  9. /* SYS_WIFI dispatcher (syscall.c). */
  10. int sys_wifi(int op, int a2, int a3);
  11. /* Stop the card's DMA before a kexec, even when it is not the active
  12. * netdev (its RX ring would otherwise keep writing into freed pages). */
  13. void wifi_shutdown(void);
  14. /* Upcalls from the device drivers. `status` is the Intel RX status word
  15. * (IWL_RX_*); 0 means "not decrypted", so CCMP frames go through the
  16. * software path. */
  17. void wifi_rx_frame(const unsigned char *frame, unsigned int len, int rssi,
  18. unsigned int status, unsigned int channel);
  19. void wifi_scan_done(int ok);
  20. #endif