mirror of https://github.com/hak5/openwrt.git
ramips: unify eeprom file name for the built-in wireless MAC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34860lede-17.01
parent
c81b4475c9
commit
8105c6badd
|
@ -28,9 +28,7 @@ rt2x00_eeprom_extract() {
|
||||||
board=$(ramips_board_name)
|
board=$(ramips_board_name)
|
||||||
|
|
||||||
case "$FIRMWARE" in
|
case "$FIRMWARE" in
|
||||||
"RT288X.eeprom" | \
|
"soc_wmac.eeprom")
|
||||||
"RT305X.eeprom" | \
|
|
||||||
"RT3883.eeprom")
|
|
||||||
case $board in
|
case $board in
|
||||||
dir-300-b1 | \
|
dir-300-b1 | \
|
||||||
dir-600-b1 | \
|
dir-600-b1 | \
|
||||||
|
|
|
@ -134,7 +134,7 @@ static struct platform_device rt288x_wifi_device = {
|
||||||
|
|
||||||
void __init rt288x_register_wifi(void)
|
void __init rt288x_register_wifi(void)
|
||||||
{
|
{
|
||||||
rt288x_wifi_data.eeprom_file_name = "RT288X.eeprom";
|
rt288x_wifi_data.eeprom_file_name = "soc_wmac.eeprom";
|
||||||
platform_device_register(&rt288x_wifi_device);
|
platform_device_register(&rt288x_wifi_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,8 @@ static struct platform_device rt305x_wifi_device = {
|
||||||
void __init rt305x_register_wifi(void)
|
void __init rt305x_register_wifi(void)
|
||||||
{
|
{
|
||||||
u32 t;
|
u32 t;
|
||||||
rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom";
|
|
||||||
|
rt305x_wifi_data.eeprom_file_name = "soc_wmac.eeprom";
|
||||||
|
|
||||||
if (soc_is_rt3352() || soc_is_rt5350()) {
|
if (soc_is_rt3352() || soc_is_rt5350()) {
|
||||||
t = rt305x_sysc_rr(SYSC_REG_SYSTEM_CONFIG);
|
t = rt305x_sysc_rr(SYSC_REG_SYSTEM_CONFIG);
|
||||||
|
|
|
@ -319,7 +319,7 @@ static struct platform_device rt3883_wlan_device = {
|
||||||
|
|
||||||
void __init rt3883_register_wlan(void)
|
void __init rt3883_register_wlan(void)
|
||||||
{
|
{
|
||||||
rt3883_wlan_data.eeprom_file_name = "RT3883.eeprom",
|
rt3883_wlan_data.eeprom_file_name = "soc_wmac.eeprom",
|
||||||
platform_device_register(&rt3883_wlan_device);
|
platform_device_register(&rt3883_wlan_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue