If your intent is to get the physical interface's name (whatever the "WAN Port Assignment" option is set to) then you should use:
nvram get wan_ifname
or to get the logical interface's name (ie. a tunnel if there is one, or the physical interface name if there's not):
get_wanface
The command you're using used to do exactly the same as get_wanface but BS changed something and wouldn't explain its new or intended behavior. Regardless, it's incorrect for this task.
http://www.dd-wrt.com/wiki/index.php/Access_To_Modem_Configuration _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)