Comment 71 for bug 207446

Revision history for this message
Christof Kaser (c-kaser) wrote :

HI! It seems nobody has tried my solution. It's not so easy to patch the source code. So here is a little recipe .

sudo apt-get install quilt libpcsclite-dev build-essential libssl-dev libdbus-1-dev
# maybe you need to install also other packages

mkdir wpa ; cd wpa/
pool=http://ftp.ubuntu.com/ubuntu/pool/
wget $pool/main/w/wpasupplicant/wpasupplicant_0.6.4.orig.tar.gz
wget $pool/main/w/wpasupplicant/wpasupplicant_0.6.4-2.diff.gz
wget $pool/main/w/wpasupplicant/wpasupplicant_0.6.4-2.dsc
dpkg-source -x wpasupplicant_0.6.4-2.dsc
cd wpasupplicant-0.6.4/

patch ./src/rsn_supp/wpa.c <<EOF
987a988
> usleep(10); // pause needed - because sending is in progress?
EOF

dpkg-buildpackage -us -uc -rfakeroot -d
# failing on building the wpa_gui is okay

strip wpa_supplicant/wpa_supplicant

sudo mv /sbin/wpa_supplicant /sbin/wpa_supplicant.orig
sudo cp wpa_supplicant/wpa_supplicant /sbin/
# reboot