RALINK AP SDK 3.3.0.0 User's Manual
Page 54 of 93
11.3
How to add new default parameter in flash
There are four default settings In RT288x_SDK/source/vendors/Ralink/RT2880, based on
different platforms.
RT2860_default_vlan: IC+ ( gateway mode)/Vitesse Platform
RT2860_default_novlan: IC+ (bridge mode)/Marvell 1000 Phy platform
RT2860_default_oneport: IC+ 100 Phy platform
RT2561_default: RT2561 PCI NIC (RT2561 concurrent)
11.3.1
Example 1
Add a new default parameter - WHOAMI for IC+ platform
1.
Edit RT288x_SDK/source/vendors/Ralink/RT2880/ RT2860_default_vlan, and add the
following line.
WHOAMI=steven
2.
Push “wps/load_default” button or execute the following commands
#ralink_init clear 2860
#reboot
3.
Use nvram_get to retrieve WHOAMI parameter in script file
(RT288x_SDK/source/user/rt2880_app/scripts), or nvram_bufset, nvram_bufget,
nvram_commit in your CGI(RT288x_SDK/source/user/goahead/src) to use your
feature.
11.3.2
Example 2
Save the RADIO ON/OFF button in WebUI to flash:
1.
Add a line to RT288x_SDK/source/vendors/Ralink/RT2880/ RT2860_default_vlan for the
default value:
RadioOn=1
2.
Modify RT288x_SDK/source/user/goahead/src/wireless.c, function wirelessBasic() to
save the radio on/off value to flash: