This workaround is a little messy, but it seems to work better than nothing.
sudo nano -B /usr/lib/pm-utils/sleep.d/45iwlist
Then edit it so that the command "iwlist scan" is part of the process:
#!/bin/sh
# Kludge to force a rescan of available wireless networks on resume, so that
# stale ESSIDs aren't shown as current.
# To be removed when bug #336055 is resolved in the kernel.
. "${PM_FUNCTIONS}"
which iwlist || exit $NA
rescan_wireless()
{
for iface in /sys/class/net/*; do
[ -d "$iface/wireless" ] || continue
iface="${iface##*/}"
iwlist "$iface" scanning
done
}
case "$1" in
thaw|resume)
rescan_wireless
iwlist scan
;;
*) exit $NA
;;
esac
I had no luck with WICD.
This workaround is a little messy, but it seems to work better than nothing.
sudo nano -B /usr/lib/ pm-utils/ sleep.d/ 45iwlist
Then edit it so that the command "iwlist scan" is part of the process:
#!/bin/sh
# Kludge to force a rescan of available wireless networks on resume, so that
# stale ESSIDs aren't shown as current.
# To be removed when bug #336055 is resolved in the kernel.
. "${PM_FUNCTIONS}"
which iwlist || exit $NA
rescan_wireless() "${iface# #*/}"
{
for iface in /sys/class/net/*; do
[ -d "$iface/wireless" ] || continue
iface=
iwlist "$iface" scanning
done
}
case "$1" in
thaw|resume)
rescan_wireless
iwlist scan
;;
*) exit $NA
;;
esac
Then Control-X, Y, Enter to save.
I'm on an HP 1120nr