add libxslt package
[openwrt.git] / package / nvram / src / nvram_convert.c
1
2 #define WL(a) "wl_"a
3 #define WL0(a) "wl0_"a
4 #define D11G(a) "d11g_"a
5
6 #define PPP(a) "ppp_"a
7 #define PPPOE(a) "pppoe_"a
8
9 struct nvram_convert {
10 char *name; // for WEB
11 char *wl0_name; // for driver
12 char *d11g_name; // for old nv name
13 };
14
15 struct nvram_convert nvram_converts[] = {
16 // Bellow change from 3.11.48.7
17 { WL("ssid"), WL0("ssid"), ""},
18 { WL("radio"), WL0("mode"), ""},
19 { WL("mode"), WL0("mode"), ""},
20 { WL("wds"), WL0("wds"), ""},
21 { WL("auth"), WL0("auth"), ""},
22 { WL("key"), WL0("key"), ""},
23 { WL("key1"), WL0("key1"), ""},
24 { WL("key2"), WL0("key2"), ""},
25 { WL("key3"), WL0("key3"), ""},
26 { WL("key4"), WL0("key4"), ""},
27 { WL("maclist"), WL0("maclist"), ""},
28 { WL("channel"), WL0("channel"), D11G("channel")},
29 { WL("rateset"), WL0("rateset"), D11G("rateset")},
30 { WL("rts"), WL0("rts"), D11G("rts")},
31 { WL("bcn"), WL0("bcn"), D11G("bcn")},
32 { WL("gmode"), WL0("gmode"), "d11g_mode"},
33 { WL("unit"), WL0("unit"), ""},
34 { WL("ifname"), WL0("ifname"), ""},
35 { WL("phytype"), WL0("phytype"), ""},
36 { WL("country"), WL0("country"), ""},
37 { WL("closed"), WL0("closed"), ""},
38 { WL("lazywds"), WL0("lazywds"), ""},
39 { WL("wep"), WL0("wep"), ""},
40 { WL("macmode"), WL0("macmode"), ""},
41 { WL("rate"), WL0("rate"), D11G("rate")},
42 { WL("frag"), WL0("frag"), D11G("frag")},
43 { WL("dtim"), WL0("dtim"), D11G("dtim")},
44 { WL("plcphdr"), WL0("plcphdr"), ""},
45 { WL("gmode_protection"), WL0("gmode_protection"), ""},
46 { WL("radio"), WL0("radio"), ""},
47 // Bellow change from 3.21.9.0
48 { WL("auth_mode"), WL0("auth_mode"), ""},
49 { WL("radius_ipaddr"), WL0("radius_ipaddr"), ""},
50 { WL("radius_port"), WL0("radius_port"), ""},
51 { WL("radius_key"), WL0("radius_key"), ""},
52 { WL("wpa_psk"), WL0("wpa_psk"), ""},
53 { WL("wpa_gtk_rekey"), WL0("wpa_gtk_rekey"), ""},
54 { WL("frameburst"), WL0("frameburst"), ""},
55 { WL("crypto"), WL0("crypto"), ""},
56 { WL("ap_isolate"), WL0("ap_isolate"), ""},
57 { WL("afterburner"), WL0("afterburner"), ""},
58 // for PPPoE
59 { PPP("username"), PPPOE("username"), ""},
60 { PPP("passwd"), PPPOE("passwd"), ""},
61 { PPP("idletime"), PPPOE("idletime"), ""},
62 { PPP("keepalive"), PPPOE("keepalive"), ""},
63 { PPP("demand"), PPPOE("demand"), ""},
64 { PPP("service"), PPPOE("service"), ""},
65 { PPP("ac"), PPPOE("ac"), ""},
66 { PPP("static"), PPPOE("static"), ""},
67 { PPP("static_ip"), PPPOE("static_ip"), ""},
68 { PPP("username_1"), PPPOE("username_1"), ""},
69 { PPP("passwd_1"), PPPOE("passwd_1"), ""},
70 { PPP("idletime_1"), PPPOE("idletime_1"), ""},
71 { PPP("keepalive_1"), PPPOE("keepalive_1"), ""},
72 { PPP("demand_1"), PPPOE("demand_1"), ""},
73 { PPP("service_1"), PPPOE("service_1"), ""},
74 { PPP("ac_1"), PPPOE("ac_1"), ""},
75
76 { 0, 0, 0},
77 };
This page took 0.051784 seconds and 5 git commands to generate.