Tomato 1.28
[tomato.git] / release / src / router / nvram / nvram_convert.c
blob015de84bf25149d00362493fd24a3e74e4423be2
1 #include <nvram_convert.h>
3 #define WL(a) "wl_"a
4 #define WL0(a) "wl0_"a
6 #define PPP(a) "ppp_"a
7 #define PPPOE(a) "pppoe_"a
9 struct nvram_convert nvram_converts[] = {
11 // Bellow change from 3.11.48.7
12 { WL("ssid"), WL0("ssid")},
13 // { WL("radio"), WL0("mode")}, // conflicts with wl_mode -- zzz
14 { WL("mode"), WL0("mode")},
15 { WL("wds"), WL0("wds")},
16 { WL("auth"), WL0("auth")},
17 { WL("key"), WL0("key")},
18 { WL("key1"), WL0("key1")},
19 { WL("key2"), WL0("key2")},
20 { WL("key3"), WL0("key3")},
21 { WL("key4"), WL0("key4")},
22 { WL("maclist"), WL0("maclist")},
23 { WL("channel"), WL0("channel")},
24 { WL("rateset"), WL0("rateset")},
25 { WL("rts"), WL0("rts")},
26 { WL("bcn"), WL0("bcn")},
27 { WL("gmode"), WL0("gmode")},
28 { WL("unit"), WL0("unit")},
29 { WL("ifname"), WL0("ifname")},
30 { WL("phytype"), WL0("phytype")},
31 { WL("country"), WL0("country")},
32 { WL("country_code"), WL0("country_code")},
33 { WL("closed"), WL0("closed")},
34 { WL("lazywds"), WL0("lazywds")},
35 { WL("wep"), WL0("wep")},
36 { WL("macmode"), WL0("macmode")},
37 { WL("rate"), WL0("rate")},
38 { WL("frag"), WL0("frag")},
39 { WL("dtim"), WL0("dtim")},
40 { WL("plcphdr"), WL0("plcphdr")},
41 { WL("gmode_protection"), WL0("gmode_protection")},
42 { WL("radio"), WL0("radio")},
43 // Below change from 3.21.9.0
44 { WL("auth_mode"), WL0("auth_mode")},
45 { WL("radius_ipaddr"), WL0("radius_ipaddr")},
46 { WL("radius_port"), WL0("radius_port")},
47 { WL("radius_key"), WL0("radius_key")},
48 { WL("wpa_psk"), WL0("wpa_psk")},
49 { WL("wpa_gtk_rekey"), WL0("wpa_gtk_rekey")},
50 { WL("frameburst"), WL0("frameburst")},
51 { WL("crypto"), WL0("crypto")},
52 { WL("ap_isolate"), WL0("ap_isolate")},
53 { WL("afterburner"), WL0("afterburner")},
54 { WL("crypto"), WL0("crypto")},
55 // Below change from 3.63.13.1
56 { WL("akm"), WL0("akm")},
57 { WL("preauth"), WL0("preauth")},
58 { WL("wme"), WL0("wme")},
59 { WL("wme_sta_bk"), WL0("wme_sta_bk")},
60 { WL("wme_sta_be"), WL0("wme_sta_be")},
61 { WL("wme_sta_vi"), WL0("wme_sta_vi")},
62 { WL("wme_sta_vo"), WL0("wme_sta_vo")},
63 { WL("wme_ap_bk"), WL0("wme_ap_bk")},
64 { WL("wme_ap_be"), WL0("wme_ap_be")},
65 { WL("wme_ap_vi"), WL0("wme_ap_vi")},
66 { WL("wme_ap_vo"), WL0("wme_ap_vo")},
67 { WL("wme_no_ack"), WL0("wme_no_ack")},
69 { WL0("ifname"), WL("ifname")}, // wlconf sets wl0_ifname, but not wl_ifname -- zzz
70 // for PPPoE
71 { PPP("username"), PPPOE("username")},
72 { PPP("passwd"), PPPOE("passwd")},
73 { PPP("idletime"), PPPOE("idletime")},
74 { PPP("keepalive"), PPPOE("keepalive")},
75 { PPP("demand"), PPPOE("demand")},
76 { PPP("service"), PPPOE("service")},
77 { PPP("ac"), PPPOE("ac")},
78 { PPP("static"), PPPOE("static")},
79 { PPP("static_ip"), PPPOE("static_ip")},
80 { PPP("username_1"), PPPOE("username_1")},
81 { PPP("passwd_1"), PPPOE("passwd_1")},
82 { PPP("idletime_1"), PPPOE("idletime_1")},
83 { PPP("keepalive_1"), PPPOE("keepalive_1")},
84 { PPP("demand_1"), PPPOE("demand_1")},
85 { PPP("service_1"), PPPOE("service_1")},
86 { PPP("ac_1"), PPPOE("ac_1")},
88 { 0, 0 },