Skip to content

Commit

Permalink
Initial WiFi driver header file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 22, 2024
1 parent 1d550a7 commit 57eee5a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions sdk/librishka/drivers/wifi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#ifndef LIBRISHKA_DRIVERS_WIFI_H
#define LIBRISHKA_DRIVERS_WIFI_H

#include <librishka.h>
#include <librishka/types.h>

typedef enum {
WIFI_AUTH_OPEN = 0x00, /**< Open */
WIFI_AUTH_WEP, /**< WEP */
WIFI_AUTH_WPA_PSK, /**< WPA-PSK */
WIFI_AUTH_WPA2_PSK, /**< WPA2-PSK */
WIFI_AUTH_WPA_WPA2_PSK, /**< WPA-WPA2-PSK */
WIFI_AUTH_ENTERPRISE, /**< WiFi EAP security */
WIFI_AUTH_WPA2_ENTERPRISE = 0x05, /**< WiFi EAP security */
WIFI_AUTH_WPA3_PSK, /**< WPA3-PSK */
WIFI_AUTH_WPA2_WPA3_PSK, /**< WPA2-WPA3-PSK */
WIFI_AUTH_WAPI_PSK, /**< WAPI-PSK */
WIFI_AUTH_WPA3_ENT_192, /**< WPA3-ENT-SUITE-B 192-BIT */
WIFI_AUTH_MAX
} WiFiAuthMode;

typedef enum {
WIFI_FAST_SCAN = 0x00, /**< Do fast scan, scan will end after find SSID match AP */
WIFI_ALL_CHANNEL_SCAN = 0x01 /**< All channel scan, scan will end after scan all the channel */
} WiFiScanMethod;

typedef enum {
WIFI_CONNECT_AP_BY_SIGNAL = 0, /**< Sort match AP in scan list by RSSI */
WIFI_CONNECT_AP_BY_SECURITY, /**< Sort match AP in scan list by security mode */
} WiFiSortMethod;

typedef enum {
WIFI_STATUS_NO_SHIELD = 0xff,
WIFI_STATUS_STOPPED = 0xfe,
WIFI_STATUS_IDLE_STATUS = 0x00,
WIFI_STATUS_NO_SSID_AVAIL = 0x01,
WIFI_STATUS_SCAN_COMPLETED = 0x02,
WIFI_STATUS_CONNECTED = 0x03,
WIFI_STATUS_CONNECT_FAILED = 0x04,
WIFI_STATUS_CONNECTION_LOST = 0x05,
WIFI_STATUS_DISCONNECTED = 0x06
} WiFiStatus;

#endif

0 comments on commit 57eee5a

Please sign in to comment.