developer | 91f8074 | 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; |
| 26 | int pure_mode; |
| 27 | int chanbw; |
| 28 | char ht_capab[8]; |
| 29 | int txpower; |
| 30 | BOOL diversity; |
| 31 | int rxantenna; |
| 32 | int txantenna; |
| 33 | char country[3]; |
| 34 | BOOL country_ie; |
| 35 | int distance; |
| 36 | int beacon_int; |
| 37 | BOOL legacy_rates; |
| 38 | char require_mode[2]; |
| 39 | int cell_density; |
| 40 | char basic_rate[64]; |
| 41 | char supported_rates[64]; |
| 42 | int log_level; |
| 43 | char hostapd_options[64]; |
developer | 6feac68 | 2022-10-18 17:44:13 +0800 | [diff] [blame] | 44 | char noscan[2]; |
developer | 91f8074 | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 45 | } wifi_radio_param; |
| 46 | |
| 47 | typedef struct { |
| 48 | wifi_radio_param *radio_info; // for multiple vap |
developer | 5061483 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 49 | bool sta_mode; |
developer | b212378 | 2022-12-29 09:35:55 +0800 | [diff] [blame^] | 50 | bool wds_mode; |
developer | 91f8074 | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 51 | int radio_index; |
| 52 | int ap_index; |
developer | 5061483 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 53 | int sta_index; |
developer | 91f8074 | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 54 | char ssid[33]; |
| 55 | int wpa; |
| 56 | char password[64]; |
developer | ff378f2 | 2022-10-13 13:33:57 +0800 | [diff] [blame] | 57 | wifi_vap_security_t security; |
developer | 5061483 | 2022-11-17 20:42:05 +0800 | [diff] [blame] | 58 | int mac_offset; |
developer | 7ac3bd5 | 2022-12-13 16:19:09 +0800 | [diff] [blame] | 59 | char ifname[16]; |
developer | 465ca0c | 2022-11-25 14:30:05 +0800 | [diff] [blame] | 60 | } wifi_intf_param; |
developer | 91f8074 | 2022-10-04 15:20:18 +0800 | [diff] [blame] | 61 | |
| 62 | struct params |
| 63 | { |
| 64 | char * name; |
| 65 | char * value; |
| 66 | }; |
| 67 | |
| 68 | INT wifi_getMaxRadioNumber(INT *max_radio_num); |