diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-10-01 11:41:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-01 11:41:45 -0700 |
commit | cff7b89a36020a1ecc24736d441ffa5cdca95876 (patch) | |
tree | 399a5e2f254d8c28dee6f54dbde8391f8869e58b | |
parent | 26000a4b9b9a5ee9ffff6cedfbf96a9f422d4bef (diff) | |
parent | 064562a8c88d58a67fb93a9aa6c28600450c7dcd (diff) | |
download | wpa_supplicant-cff7b89a36020a1ecc24736d441ffa5cdca95876.tar.gz |
am 064562a8: am 4866d77c: Ensure to have interface UP before association.
Merge commit '064562a8c88d58a67fb93a9aa6c28600450c7dcd'
* commit '064562a8c88d58a67fb93a9aa6c28600450c7dcd':
Ensure to have interface UP before association.
-rw-r--r-- | driver_wext.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/driver_wext.c b/driver_wext.c index 1917ba5..ed5c639 100644 --- a/driver_wext.c +++ b/driver_wext.c @@ -1930,10 +1930,16 @@ wpa_driver_wext_associate(void *priv, struct wpa_driver_wext_data *drv = priv; int ret = 0; int allow_unencrypted_eapol; - int value; + int value, flags; wpa_printf(MSG_DEBUG, "%s", __FUNCTION__); + if (wpa_driver_wext_get_ifflags(drv, &flags) == 0) { + if (!(flags & IFF_UP)) { + wpa_driver_wext_set_ifflags(drv, flags | IFF_UP); + } + } + /* * If the driver did not support SIOCSIWAUTH, fallback to * SIOCSIWENCODE here. |