The script /etc/sysconfig/network/scripts/ifup-wireless has two kinds of problems.
(1) Not all mainline drivers that use mac80211 are handled in the case statement that sets WPA_DRIVER. The effects are minimal; however, the user gets an unwarranted message that "WPA configured but may not be supported". The fix is to add all mac80211 drivers to the case statement.
(2) If there is a driver that does not use nl80211, the user will never get a connection, and is, therefore, more serious. The fix is to change the default to select the wext driver.
Signed-off-by: Larry Finger Larry.Finger@lwfinger.net ---
This problem was found while checking a driver that will soon be sent to the staging tree. It is the subject of Bug 625403.
Index: scripts/ifup-wireless =================================================================== --- scripts.orig/ifup-wireless +++ scripts/ifup-wireless @@ -747,6 +747,12 @@ case $ACTION in ar9170*) WPA_DRIVER=nl80211 ;; + rtl818*) + WPA_DRIVER=nl80211 + ;; + rt2860*|rt2870*|r8187se|r8192*|vt665*) + WPA_DRIVER=wext + ;; *) WPA_DRIVER=unsupported PREFER_WPA_SUPPLICANT=no @@ -757,10 +763,10 @@ case $ACTION in if [ "$WPA_DRIVER" = "unsupported" ]; then message "`printf " %-9s warning: WPA configured but may be unsupported" $INTERFACE`" message "`printf " %-9s warning: by this device" $INTERFACE`" - info_mesg "using WPA driver 'nl80211' for interface $INTERFACE" + info_mesg "using WPA driver 'wext' for interface $INTERFACE with driver $DRIVER" info_mesg "when you notice problems with this new driver, set " \ - "WIRELESS_WPA_DRIVER='wext' and file a bug report" - WPA_DRIVER=nl80211 + "WIRELESS_WPA_DRIVER='nl80211' and file a bug report" + WPA_DRIVER=wext fi start_wpa_supplicant elif [ "$PREFER_WPA_SUPPLICANT" = "yes" ]; then