aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-07 09:42:41 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-07 09:42:41 (GMT)
commit62847751e4d7e478198424767944ce79a464fecd (patch)
tree52134eb4c09e0caa37e3ff8f130a17f11af7e562 /src/ap
parent8709de1ae8e48c53f9530cd4f84a2b751d9d5081 (diff)
downloadhostap-62847751e4d7e478198424767944ce79a464fecd.zip
hostap-62847751e4d7e478198424767944ce79a464fecd.tar.gz
hostap-62847751e4d7e478198424767944ce79a464fecd.tar.bz2
Remove unnecessary ifname parameter from sta_add() driver op
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/ap_drv_ops.c4
-rw-r--r--src/ap/hostapd.h2
-rw-r--r--src/ap/ieee802_11.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index b392ebd..2261cdf 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -299,7 +299,7 @@ static int hostapd_sta_disassoc(struct hostapd_data *hapd, const u8 *addr,
}
-static int hostapd_sta_add(const char *ifname, struct hostapd_data *hapd,
+static int hostapd_sta_add(struct hostapd_data *hapd,
const u8 *addr, u16 aid, u16 capability,
const u8 *supp_rates, size_t supp_rates_len,
u16 listen_interval,
@@ -320,7 +320,7 @@ static int hostapd_sta_add(const char *ifname, struct hostapd_data *hapd,
params.supp_rates_len = supp_rates_len;
params.listen_interval = listen_interval;
params.ht_capabilities = ht_capab;
- return hapd->driver->sta_add(ifname, hapd->drv_priv, &params);
+ return hapd->driver->sta_add(hapd->drv_priv, &params);
}
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index 13b6722..61956f8 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -89,7 +89,7 @@ struct hostapd_driver_ops {
int reason);
int (*sta_disassoc)(struct hostapd_data *hapd, const u8 *addr,
int reason);
- int (*sta_add)(const char *ifname, struct hostapd_data *hapd,
+ int (*sta_add)(struct hostapd_data *hapd,
const u8 *addr, u16 aid, u16 capability,
const u8 *supp_rates, size_t supp_rates_len,
u16 listen_interval,
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 80815ac..b6ac50b 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1550,9 +1550,9 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
hostapd_get_ht_capab(hapd, sta->ht_capabilities, &ht_cap);
#endif /* CONFIG_IEEE80211N */
- if (hapd->drv.sta_add(hapd->conf->iface, hapd, sta->addr, sta->aid,
- sta->capability, sta->supported_rates,
- sta->supported_rates_len, sta->listen_interval,
+ if (hapd->drv.sta_add(hapd, sta->addr, sta->aid, sta->capability,
+ sta->supported_rates, sta->supported_rates_len,
+ sta->listen_interval,
sta->flags & WLAN_STA_HT ? &ht_cap : NULL)) {
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
HOSTAPD_LEVEL_NOTICE,