iwlagn: move scan code to scan file