madwifi: clean up scanning code, add support for changing scan lists