Changeset 11662
- Timestamp:
- 02/20/09 07:02:39 (4 years ago)
- File:
-
- 1 edited
-
src/router/libutils/utils.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/libutils/utils.c
r11661 r11662 1079 1079 } 1080 1080 1081 if( boardnum == 45 &&1082 nvram_match( "boardtype", "0x042f" )1083 && nvram_match( "boardrev", "0x10" ) )1084 {1085 cprintf( "router is Asus WL-500g Premium\n" );1086 setRouter( "Asus WL-500g Premium" );1087 return ROUTER_ASUS_WL500G_PRE;1088 }1089 1081 if( nvram_match( "boardtype", "0x042f" ) 1090 1082 && nvram_match( "boardrev", "0x10" ) ) … … 1092 1084 char *hwver = nvram_safe_get( "hardware_version" ); 1093 1085 1094 if( startswith( hwver, "WL500gp" ) )1086 if( boardnum == 45 || startswith( hwver, "WL500gp" ) ) 1095 1087 { 1096 1088 cprintf( "router is Asus WL-500g Premium\n" ); … … 1649 1641 } 1650 1642 1651 if( boardnum == 45 && 1652 nvram_match( "boardtype", "0x48E" ) 1643 if( bvram_match( "boardtype", "0x48E" ) 1653 1644 && nvram_match( "boardrev", "0x10" ) ) 1654 1645 { 1655 1646 char *hwver = nvram_safe_get( "hardware_version" ); 1656 1647 1657 if( startswith( hwver, "WL500GPV2" ) )1648 if( boardnum == 45 && startswith( hwver, "WL500GPV2" ) ) 1658 1649 { 1659 1650 cprintf( "router is Asus WL-500G Premium V2\n" ); … … 1661 1652 return ROUTER_ASUS_WL500G_PRE_V2; 1662 1653 } 1663 else if( startswith( hwver, "WL330GE" ) )1654 else if( boardnum == 45 && startswith( hwver, "WL330GE" ) ) 1664 1655 { 1665 1656 cprintf( "router is Asus WL-330GE\n" ); … … 1667 1658 return ROUTER_ASUS_330GE; 1668 1659 } 1669 else 1660 else if( boardnum == 45 || startswith( hwver, "WL500GU" ) || startswith( hwver, "WL500GC" ) ) 1670 1661 { 1671 1662 cprintf( "router is Asus WL-520GU/GC\n" ); … … 1674 1665 } 1675 1666 } 1676 if( nvram_match( "boardtype", "0x48E" ) 1677 && nvram_match( "boardrev", "0x10" ) ) 1678 { 1679 char *hwver = nvram_safe_get( "hardware_version" ); 1680 1681 if( startswith( hwver, "WL500gp" ) ) 1682 { 1683 cprintf( "router is Asus WL-520GU/GC\n" ); 1684 setRouter( "Asus WL-520GU" ); 1685 return ROUTER_ASUS_WL520GUGC; 1686 } 1687 } 1667 1688 1668 if( ( boardnum == 83258 || boardnum == 01 ) //or 001 or 0x01 1689 1669 && ( nvram_match( "boardtype", "0x048e" )
Note: See TracChangeset
for help on using the changeset viewer.
