blob: 587f015f1b6b6329646e42ef6b2638890a2e02cd [file] [log] [blame]
developer402bf2a2022-10-04 15:20:18 +08001#include "uci_config.h"
2#include "wifi_hal.h"
3
4typedef 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
13typedef 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;
developer02cc9292023-02-24 18:01:27 +080026 int eht_320_conf;
developer402bf2a2022-10-04 15:20:18 +080027 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];
developer54afa2c2022-10-18 17:44:13 +080045 char noscan[2];
developerc4548732023-02-06 20:02:10 +080046 unsigned int rtsThreshold;
47 BOOL ht_coex;
developer0e3ff462023-04-28 17:48:40 +080048 BOOL background_radar;
developer402bf2a2022-10-04 15:20:18 +080049} wifi_radio_param;
50
51typedef struct {
52 wifi_radio_param *radio_info; // for multiple vap
developer9567a462022-11-17 20:42:05 +080053 bool sta_mode;
developerb3f00662022-12-29 09:35:55 +080054 bool wds_mode;
developer402bf2a2022-10-04 15:20:18 +080055 int radio_index;
56 int ap_index;
developer9567a462022-11-17 20:42:05 +080057 int sta_index;
developer402bf2a2022-10-04 15:20:18 +080058 char ssid[33];
59 int wpa;
60 char password[64];
developer3ddad2f2022-10-13 13:33:57 +080061 wifi_vap_security_t security;
developer9567a462022-11-17 20:42:05 +080062 int mac_offset;
developer2bcdef92022-12-13 16:19:09 +080063 char ifname[16];
developerc4548732023-02-06 20:02:10 +080064 bool hidden;
developer223f5982023-02-28 15:59:38 +080065 bool igmpsn_enable;
developer0dff3a92023-03-17 15:08:42 +080066 int wps_state;
developer223f5982023-02-28 15:59:38 +080067 bool wps_cancel;
68 bool wps_pushbutton;
69 char macfilter[10];
70 char maclist[512];
developer1ac0e892022-11-25 14:30:05 +080071} wifi_intf_param;
developer402bf2a2022-10-04 15:20:18 +080072
73struct params
74{
75 char * name;
76 char * value;
77};
78
79INT wifi_getMaxRadioNumber(INT *max_radio_num);