lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #ifndef _WIFI_H_ |
| 2 | #define _WIFI_H_ |
| 3 | |
| 4 | #ifdef CONFIG_RT2860V2_AP_WAPI |
| 5 | #define MAX_NUMBER_OF_MAC 96 |
| 6 | #else |
| 7 | #define MAX_NUMBER_OF_MAC 37 /*support max station num is 37-1*/ // if MAX_MBSSID_NUM is 8, this value can't be larger than 211 |
| 8 | #endif |
| 9 | |
| 10 | typedef union _MACHTTRANSMIT_SETTING { |
| 11 | struct { |
| 12 | unsigned short MCS: 7; // MCS |
| 13 | unsigned short BW: 1; //channel bandwidth 20MHz or 40 MHz |
| 14 | unsigned short ShortGI: 1; |
| 15 | unsigned short STBC: 2; //SPACE |
| 16 | unsigned short eTxBF: 1; |
| 17 | unsigned short rsv: 1; |
| 18 | unsigned short iTxBF: 1; |
| 19 | unsigned short MODE: 2; // Use definition MODE_xxx. |
| 20 | } field; |
| 21 | unsigned short word; |
| 22 | } MACHTTRANSMIT_SETTING; |
| 23 | |
| 24 | typedef struct _RT_802_11_MAC_ENTRY { |
| 25 | unsigned char ApIdx; |
| 26 | unsigned char Addr[6]; |
| 27 | unsigned char Aid; |
| 28 | unsigned char Psm; // 0:PWR_ACTIVE, 1:PWR_SAVE |
| 29 | unsigned char MimoPs; // 0:MMPS_STATIC, 1:MMPS_DYNAMIC, 3:MMPS_Enabled |
| 30 | char AvgRssi0; |
| 31 | char AvgRssi1; |
| 32 | char AvgRssi2; |
| 33 | unsigned int ConnectedTime; |
| 34 | MACHTTRANSMIT_SETTING TxRate; |
| 35 | unsigned int LastRxRate; |
| 36 | int StreamSnr[3]; |
| 37 | int SoundingRespSnr[3]; |
| 38 | unsigned int SSID_index; // for multissid station_list nxl |
| 39 | |
| 40 | } RT_802_11_MAC_ENTRY; |
| 41 | |
| 42 | typedef struct _RT_802_11_MAC_TABLE { |
| 43 | unsigned long Num; |
| 44 | RT_802_11_MAC_ENTRY Entry[MAX_NUMBER_OF_MAC]; //MAX_LEN_OF_MAC_TABLE = 32 |
| 45 | } RT_802_11_MAC_TABLE; |
| 46 | |
| 47 | /*add by myc for wifi_client_show 2012-04-19 begin*/ |
| 48 | typedef struct _DHCPOFFERADDR { |
| 49 | unsigned long expires; |
| 50 | unsigned long ip; |
| 51 | unsigned char mac[6]; |
| 52 | unsigned char host_name[20]; |
| 53 | unsigned char pad[2]; |
| 54 | } DHCPOFFERADDR; |
| 55 | |
| 56 | |
| 57 | #endif |