Wifi problem – Patch wpa_supplicant

Several users have reported to me a WiFi connection problem with the firmware GPL. I had not noticed the problem because I do not use WiFi.
The problem occurs when the association to Wifi. if you already associate with your Wifi official firmware, you have certainly not seen any problem since the parameters have been preserved.

After some research, we can see that the JTAG returns the following log:
command: /usr/local/sbin/wpa_supplicant -P /tmp/wpa_supplicant.pid -D wext -B -i wlan0 -c /tmp/wpa_supplicant.conf
/usr/local/sbin/wpa_supplicant command not found

This is due to an error in the file src/libs/make/wpa_supplicant.mk

The following lines :
wpa_supplicant-install:
-mkdir -p $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
-mkdir -p $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin
cp $(WPA_SUPPLICANT_SOURCE)/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
cp $(WPA_SUPPLICANT_SOURCE)/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
cp $(WPA_SUPPLICANT_0_8_SOURCE)/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(WPA_SUPPLICANT_0_8_SOURCE)/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(HOSTAPD_0_8_SOURCE)/hostapd $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(HOSTAPD_0_8_SOURCE)/hostapd_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin

must be modified as follows :
wpa_supplicant-install:
-mkdir -p $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
-mkdir -p $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
-mkdir -p $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin
cp $(WPA_SUPPLICANT_SOURCE)/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
cp $(WPA_SUPPLICANT_SOURCE)/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/bin
cp $(WPA_SUPPLICANT_0_8_SOURCE)/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(WPA_SUPPLICANT_0_8_SOURCE)/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(HOSTAPD_0_8_SOURCE)/hostapd $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
cp $(HOSTAPD_0_8_SOURCE)/hostapd_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin
ln -s ../bin/hostpad $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin/hostpad
ln -s ../bin/hostpad_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin/hostpad_cli
ln -s ../bin/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin/wpa_supplicant
ln -s ../bin/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/sbin/wpa_cli
ln -s ../bin/wpa_supplicant $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin/wpa_supplicant.realtek
ln -s ../bin/wpa_cli $(TOP_INSTALL_ROOTFS_DIR)/usr/local/bin/wpa_cli.realtek

This patch can be download here

The commands make install and make firmware sufficient to fully integrate this hotfix. A complete compilation is not necessary.

This patch gives rise to a new firmware version 1.05.18 and the version 1.08.17.
Links wpa_supplicant.realtek and wpa_cli.realtek are needed for version 1.09 and higher.