wext: handle mode switches correctly for mac80211
authorDan Williams <dcbw@redhat.com>
Wed, 4 Jun 2008 17:55:57 +0000 (20:55 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 4 Jun 2008 17:55:57 +0000 (20:55 +0300)
commit59c9707863336c1255936c755d24c8eb1ed8db2f
treef8d7549abfe142d101380467dd2b9f2b07f8cd71
parent87114163b7936378c35ed3a411cc9d9e6a197dd0
wext: handle mode switches correctly for mac80211

Since mac80211 requires that the device be !IFF_UP to change the mode
(and I think the old prism54 fullmac driver does too), do that.  This
shouldn't harm fullmac devices since they can handle mode switches on
the fly and usually don't care about up/down that much.
src/drivers/driver_wext.c