developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 1 | #include "uci_config.h" |
| 2 | #include "wifi_hal.h" |
| 3 | |
| 4 | typedef enum { |
| 5 | WIFI_MODE_A = 0x01, |
| 6 | WIFI_MODE_B = 0x02, |
| 7 | WIFI_MODE_G = 0x04, |
| 8 | WIFI_MODE_N = 0x08, |
| 9 | WIFI_MODE_AC = 0x10, |
| 10 | WIFI_MODE_AX = 0x20, |
| 11 | } wifi_ieee80211_Mode; |
| 12 | |
| 13 | typedef struct { |
| 14 | int radio_index; |
| 15 | char type[16]; |
| 16 | char phy[16]; |
| 17 | char macaddr[18]; |
| 18 | BOOL disabled; |
| 19 | int channel; |
| 20 | BOOL auto_channel; |
| 21 | char channels[64]; // list type |
| 22 | char hwmode[2]; |
| 23 | char band[8]; |
| 24 | char htmode[16]; |
| 25 | int bandwidth; |
developer | 02cc929 | 2023-02-24 18:01:27 +0800 | [diff] [blame] | 26 | int eht_320_conf; |
developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 27 | int pure_mode; |
| 28 | int chanbw; |
| 29 | char ht_capab[8]; |
| 30 | int txpower; |
| 31 | BOOL diversity; |
| 32 | int rxantenna; |
| 33 | int txantenna; |
| 34 | char country[3]; |
| 35 | BOOL country_ie; |
| 36 | int distance; |
| 37 | int beacon_int; |
| 38 | BOOL legacy_rates; |
| 39 | char require_mode[2]; |
| 40 | int cell_density; |
| 41 | char basic_rate[64]; |
| 42 | char supported_rates[64]; |
| 43 | int log_level; |
| 44 | char hostapd_options[64]; |
developer | 54afa2c | 2022-10-18 17:44:13 +0800 | [diff] [blame] | 45 | char noscan[2]; |
developer | c454873 | 2023-02-06 20:02:10 +0800 | [diff] [blame] | 46 | unsigned int rtsThreshold; |
| 47 | BOOL ht_coex; |
developer | 0e3ff46 | 2023-04-28 17:48:40 +0800 | [diff] [blame] | 48 | BOOL background_radar; |
developer | df2af0d | 2023-06-15 13:50:51 +0800 | [diff] [blame] | 49 | UCHAR he_bss_color; |
| 50 | ULONG transmit_power; |
developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 51 | } wifi_radio_param; |
| 52 | |
| 53 | typedef struct { |
| 54 | wifi_radio_param *radio_info; // for multiple vap |
developer | 9567a46 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 55 | bool sta_mode; |
developer | b3f0066 | 2022-12-29 09:35:55 +0800 | [diff] [blame] | 56 | bool wds_mode; |
developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 57 | int radio_index; |
| 58 | int ap_index; |
developer | 9567a46 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 59 | int sta_index; |
developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 60 | char ssid[33]; |
| 61 | int wpa; |
| 62 | char password[64]; |
developer | 3ddad2f | 2022-10-13 13:33:57 +0800 | [diff] [blame] | 63 | wifi_vap_security_t security; |
developer | 9567a46 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 64 | int mac_offset; |
developer | 2bcdef9 | 2022-12-13 16:19:09 +0800 | [diff] [blame] | 65 | char ifname[16]; |
developer | c454873 | 2023-02-06 20:02:10 +0800 | [diff] [blame] | 66 | bool hidden; |
developer | 223f598 | 2023-02-28 15:59:38 +0800 | [diff] [blame] | 67 | bool igmpsn_enable; |
developer | 0dff3a9 | 2023-03-17 15:08:42 +0800 | [diff] [blame] | 68 | int wps_state; |
developer | 223f598 | 2023-02-28 15:59:38 +0800 | [diff] [blame] | 69 | bool wps_pushbutton; |
| 70 | char macfilter[10]; |
| 71 | char maclist[512]; |
developer | 7cce84a | 2024-05-07 19:43:08 +0800 | [diff] [blame^] | 72 | char mac_address[20]; |
developer | 1ac0e89 | 2022-11-25 14:30:05 +0800 | [diff] [blame] | 73 | } wifi_intf_param; |
developer | 402bf2a | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 74 | |
| 75 | struct params |
| 76 | { |
| 77 | char * name; |
| 78 | char * value; |
| 79 | }; |
| 80 | |
| 81 | INT wifi_getMaxRadioNumber(INT *max_radio_num); |