Thx, i know this command "iwlist wlan0 scan >> scan_tmpfile" will do redirection from the standard output to file. But when i do roaming, how can i use these privious data (i.e. scan_tmpfile)? In other words, how can let the driver refer privious scan result for roaming ?