mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
add Scan WiFi
This commit is contained in:
parent
8482fb4fda
commit
d7bf8681b3
11 changed files with 2469 additions and 2284 deletions
|
@ -3433,5 +3433,68 @@ struct _TxPowerInfo24G {
|
|||
typedef struct _TxPowerInfo24G TxPowerInfo24G;
|
||||
typedef struct _TxPowerInfo24G *PTxPowerInfo24G;
|
||||
|
||||
/*
|
||||
|
||||
enum rtw_bss_type_t // __int32
|
||||
{
|
||||
RTW_BSS_TYPE_INFRASTRUCTURE = 0x0,
|
||||
RTW_BSS_TYPE_ADHOC = 0x1,
|
||||
RTW_BSS_TYPE_ANY = 0x2,
|
||||
RTW_BSS_TYPE_UNKNOWN = 0xFFFFFFFF,
|
||||
};
|
||||
|
||||
enum rtw_security_t // __int32
|
||||
{
|
||||
RTW_SECURITY_OPEN = 0x0,
|
||||
RTW_SECURITY_WEP_PSK = 0x1,
|
||||
RTW_SECURITY_WEP_SHARED = 0x8001,
|
||||
RTW_SECURITY_WPA_TKIP_PSK = 0x200002,
|
||||
RTW_SECURITY_WPA_AES_PSK = 0x200004,
|
||||
RTW_SECURITY_WPA2_AES_PSK = 0x400004,
|
||||
RTW_SECURITY_WPA2_TKIP_PSK = 0x400002,
|
||||
RTW_SECURITY_WPA2_MIXED_PSK = 0x400006,
|
||||
RTW_SECURITY_WPA_WPA2_MIXED = 0x600000,
|
||||
RTW_SECURITY_WPS_OPEN = 0x10000000,
|
||||
RTW_SECURITY_WPS_SECURE = 0x10000004,
|
||||
RTW_SECURITY_UNKNOWN = 0xFFFFFFFF,
|
||||
RTW_SECURITY_FORCE_32_BIT = 0x7FFFFFFF,
|
||||
};
|
||||
|
||||
enum rtw_802_11_band_t // __int32
|
||||
{
|
||||
RTW_802_11_BAND_5GHZ = 0x0,
|
||||
RTW_802_11_BAND_2_4GHZ = 0x1,
|
||||
};
|
||||
|
||||
|
||||
struct rtw_ssid
|
||||
{
|
||||
unsigned int8_t len;
|
||||
unsigned int8_t val[33];
|
||||
};
|
||||
|
||||
typedef rtw_ssid rtw_ssid_t;
|
||||
|
||||
struct rtw_mac
|
||||
{
|
||||
unsigned int8_t octet[6];
|
||||
};
|
||||
|
||||
typedef rtw_mac rtw_mac_t;
|
||||
|
||||
struct rtw_scan_result
|
||||
{
|
||||
rtw_ssid_t SSID;
|
||||
rtw_mac_t BSSID;
|
||||
sint16_t signal_strength;
|
||||
enum rtw_bss_type_t bss_type;
|
||||
enum rtw_security_t security;
|
||||
enum rtw_wps_type_t wps_type;
|
||||
unsigned int channel;
|
||||
enum rtw_802_11_band_t band;
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
#endif // _WLAN_LIB_H
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
#pragma pack(1)
|
||||
//#pragma pack(1)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -86,7 +86,7 @@ typedef struct rtw_network_info {
|
|||
int key_id;
|
||||
}rtw_network_info_t;
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__)// || defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
|
@ -96,14 +96,14 @@ typedef struct rtw_network_info {
|
|||
typedef struct rtw_scan_result {
|
||||
rtw_ssid_t SSID; /**< Service Set Identification (i.e. Name of Access Point) */
|
||||
rtw_mac_t BSSID; /**< Basic Service Set Identification (i.e. MAC address of Access Point) */
|
||||
signed short signal_strength; /**< Receive Signal Strength Indication in dBm. <-90=Very poor, >-30=Excellent */
|
||||
signed short signal_strength; /**< Receive Signal Strength Indication in dBm. <-90=Very poor, >-30=Excellent */
|
||||
rtw_bss_type_t bss_type; /**< Network type */
|
||||
rtw_security_t security; /**< Security type */
|
||||
rtw_wps_type_t wps_type; /**< WPS type */
|
||||
unsigned int channel; /**< Radio channel that the AP beacon was received on */
|
||||
unsigned int channel; /**< Radio channel that the AP beacon was received on */
|
||||
rtw_802_11_band_t band; /**< Radio band */
|
||||
} rtw_scan_result_t;
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#pragma pack()
|
||||
#endif
|
||||
|
||||
|
@ -117,7 +117,7 @@ typedef struct rtw_scan_handler_result {
|
|||
|
||||
} rtw_scan_handler_result_t;
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
|
@ -125,14 +125,14 @@ typedef struct rtw_scan_handler_result {
|
|||
* @brief The structure is used to store the WIFI setting gotten from WIFI driver.
|
||||
*/
|
||||
typedef struct rtw_wifi_setting {
|
||||
rtw_mode_t mode;
|
||||
rtw_mode_t mode;
|
||||
unsigned char ssid[33];
|
||||
unsigned char channel;
|
||||
rtw_security_t security_type;
|
||||
unsigned char password[65];
|
||||
unsigned char key_idx;
|
||||
}rtw_wifi_setting_t;
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#pragma pack()
|
||||
#endif
|
||||
|
||||
|
@ -167,7 +167,7 @@ typedef struct {
|
|||
unsigned int version; /**< version field */
|
||||
unsigned int length; /**< byte length of data in this record, */
|
||||
/* starting at version and including IEs */
|
||||
rtw_mac_t BSSID;
|
||||
rtw_mac_t BSSID;
|
||||
unsigned short beacon_period; /**< units are Kusec */
|
||||
unsigned short capability; /**< Capability information */
|
||||
unsigned char SSID_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue