diff --git a/configure.ac b/configure.ac index f94aa6b535..ccc816c2b2 100644 --- a/configure.ac +++ b/configure.ac @@ -217,8 +217,7 @@ AC_COMPILE_IFELSE( #include #include #include - #include - #include ]], + #include ]], [[#ifndef IWEVGENIE #error "not found" #endif]])], @@ -226,7 +225,7 @@ AC_COMPILE_IFELSE( [ac_have_iwevgenie=no]) AC_MSG_RESULT($ac_have_iwevgenie) if test "$ac_have_iwevgenie" = no; then - AC_MSG_ERROR(wireless-tools or libiw development headers >= 28pre9 not installed or not functional) + AC_MSG_ERROR(Linux kernel development headers not installed or not functional) fi dnl diff --git a/src/wifi-utils.c b/src/wifi-utils.c index 25c8080ce7..e3aeca5765 100644 --- a/src/wifi-utils.c +++ b/src/wifi-utils.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include @@ -84,12 +86,12 @@ wifi_data_free (WifiData *data) /***************************************************************/ -#include +#include typedef struct { WifiData parent; int fd; - iwqual max_qual; + struct iw_quality max_qual; gint8 num_freqs; guint32 freqs[IW_MAX_FREQUENCIES]; } WifiDataWext; @@ -477,7 +479,7 @@ wext_get_range (WifiDataWext *wext, NM_WIFI_DEVICE_CAP_RSN) static guint32 -wext_get_caps (WifiDataWext *wext, iwrange *range) +wext_get_caps (WifiDataWext *wext, struct iw_range *range) { guint32 caps = NM_WIFI_DEVICE_CAP_NONE;