2 * hostapd / IEEE 802.11h
3 * Copyright (c) 2005-2006, Devicescape Software, Inc.
4 * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Alternatively, this software may be distributed under the terms of BSD
13 * See README and COPYING for more details.
21 int hostapd_check_power_cap(struct hostapd_data *hapd, u8 *power, u8 len)
26 HOSTAPD_DEBUG(HOSTAPD_DEBUG_MINIMAL,
27 "Too short power capability IE\n");
31 if (max_pwr > hapd->iface->sta_max_power)