gsupplicant: Add a function to handle autoscan method