ieee802_11h.c

Go to the documentation of this file.
00001 
00016 #include "includes.h"
00017 
00018 #include "hostapd.h"
00019 
00020 
00021 int hostapd_check_power_cap(struct hostapd_data *hapd, u8 *power, u8 len)
00022 {
00023         unsigned int min_pwr, max_pwr;
00024 
00025         if (len < 2) {
00026                 HOSTAPD_DEBUG(HOSTAPD_DEBUG_MINIMAL,
00027                               "Too short power capability IE\n");
00028                 return -1;
00029         }
00030         min_pwr = power[0];
00031         max_pwr = power[1];
00032         if (max_pwr > hapd->iface->sta_max_power)
00033                 return -1;
00034         return 0;
00035 }
00036 

Generated on Sun Dec 31 13:43:27 2006 for hostapd by  doxygen 1.4.2