aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ieee802_11h.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2007-02-03 17:04:38 (GMT)
committerJouni Malinen <j@w1.fi>2007-02-03 17:04:38 (GMT)
commit1d38742f045ab8222715d60b4b332c80790bde3f (patch)
treeb76cadf7127e04538887056e55de518b911c4ca4 /hostapd/ieee802_11h.c
parentc73e5e4745cbf5e80958fc071460a6538608ebff (diff)
downloadhostap-history-1d38742f045ab8222715d60b4b332c80790bde3f.zip
hostap-history-1d38742f045ab8222715d60b4b332c80790bde3f.tar.gz
hostap-history-1d38742f045ab8222715d60b4b332c80790bde3f.tar.bz2
Removed unused variables.
Diffstat (limited to 'hostapd/ieee802_11h.c')
-rw-r--r--hostapd/ieee802_11h.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hostapd/ieee802_11h.c b/hostapd/ieee802_11h.c
index 926a046..e1777bc 100644
--- a/hostapd/ieee802_11h.c
+++ b/hostapd/ieee802_11h.c
@@ -1,6 +1,7 @@
/*
* hostapd / IEEE 802.11h
- * Copyright 2005-2006, Devicescape Software, Inc.
+ * Copyright (c) 2005-2006, Devicescape Software, Inc.
+ * Copyright (c) 2007, Jouni Malinen <jkmaline@cc.hut.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -19,14 +20,13 @@
int hostapd_check_power_cap(struct hostapd_data *hapd, u8 *power, u8 len)
{
- unsigned int min_pwr, max_pwr;
+ unsigned int max_pwr;
if (len < 2) {
HOSTAPD_DEBUG(HOSTAPD_DEBUG_MINIMAL,
"Too short power capability IE\n");
return -1;
}
- min_pwr = power[0];
max_pwr = power[1];
if (max_pwr > hapd->iface->sta_max_power)
return -1;