Wifi Fix for OctoPi + Raspberry Pi 2 + RTL8192SU (DWA-131)
Problem Description: After setting the network information in /boot/octopi-wpa-supplicant.txt, the wlan0 card was up, but not connected. Environment: Raspberry Pi 2 Model B Rev 1.1 D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU] Octoprint version of OctoPi Troubleshooting: Since the interface was up for me, it was hard to tell what the problem was other than not being able to see (or manipulate) the interface (wlan0) from ifconfig (no IPV4 address, ifdown fails, ifup fails) 1) Take down the interface with the ip command # ip link set wlan0 down 2) Observe the messages from the following command # wpa_supplicant -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf In my case, I was getting an authentication error. Solution: This is what worked for me, AMMV. There probably is a better way as this seems like somewhat of a hackjob, but I'm betting on Cunningham's law to ...