--- etc/wpa_supplicant/ifupdown.sh.orig 2006-11-08 23:16:45.000000000 +0100 +++ etc/wpa_supplicant/ifupdown.sh 2006-11-25 21:06:52.991769200 +0100 @@ -35,6 +35,13 @@ exit 0 fi +if [ "$IF_WPA_ROAM" = slave ]; then + if [ "$MODE" = stop ] && [ "$PHASE" = pre-down ]; then + /sbin/wpa_action "$IFACE" stop + fi + exit 0 +fi + # quit if wpa_action is active if test_wpa_cli; then exit 0