Misc fixes to dd-wrt firmware issues