![]() Obviously it didn't connect because there's a problem. May 07 23:24:05 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:58 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:50 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:43 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:35 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:27 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:20 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:12 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:23:05 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:57 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:49 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:42 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:34 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:27 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:19 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:10 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:22:07 raspberrypi sudo: pi : TTY=pts/0 PWD=/home/pi USER=root COMMAND=/usr/bin/nano /etc/wpa_supplicant/wpa_nf ![]() May 07 23:22:03 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:21:55 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:21:47 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:21:40 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:21:32 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:21:25 raspberrypi wpa_supplicant: wlan0: Failed to initiate sched scan May 07 23:18:49 raspberrypi wpa_supplicant: Successfully initialized wpa_supplicant ![]() In line 19 we check if the scan was successful and hence print the results in a readable manner.Code: Select all May 07 23:18:49 raspberrypi wpa_supplicant: Successfully initialized wpa_supplicant.then we store the result of the scan in “scan_result” by calling the scan function on the IP address that we generated.As explained in the logic section we loop from 0 to 255 and concatenate the value to create a valid IP address.From lines 15-20 we run the main part of the program.In lines 9-13 we store the mac address and IP addresses in the form of a dictionary, append them to “client_list” and return that list. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |