blob: 5dd10793e0ed5854fb2058b00edf1e90814baa48 [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;
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];
developer54afa2c2022-10-18 17:44:13 +080044 char noscan[2];
developerc4548732023-02-06 20:02:10 +080045 unsigned int rtsThreshold;
46 BOOL ht_coex;
developer402bf2a2022-10-04 15:20:18 +080047} wifi_radio_param;
48
49typedef struct {
50 wifi_radio_param *radio_info; // for multiple vap
developer9567a462022-11-17 20:42:05 +080051 bool sta_mode;
developerb3f00662022-12-29 09:35:55 +080052 bool wds_mode;
developer402bf2a2022-10-04 15:20:18 +080053 int radio_index;
54 int ap_index;
developer9567a462022-11-17 20:42:05 +080055 int sta_index;
developer402bf2a2022-10-04 15:20:18 +080056 char ssid[33];
57 int wpa;
58 char password[64];
developer3ddad2f2022-10-13 13:33:57 +080059 wifi_vap_security_t security;
developer9567a462022-11-17 20:42:05 +080060 int mac_offset;
developer2bcdef92022-12-13 16:19:09 +080061 char ifname[16];
developerc4548732023-02-06 20:02:10 +080062 bool hidden;
developer1ac0e892022-11-25 14:30:05 +080063} wifi_intf_param;
developer402bf2a2022-10-04 15:20:18 +080064
65struct params
66{
67 char * name;
68 char * value;
69};
70
71INT wifi_getMaxRadioNumber(INT *max_radio_num);