aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-07 09:49:27 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-07 09:49:27 (GMT)
commitd3e3a20565b426ce5cd402630812503a78abe9dc (patch)
tree702c7886efb6e485a1296f7b384033b749294ad2 /src/ap
parent3234cba40e6802d97c3df0339c4392fd2c1f294f (diff)
downloadhostap-d3e3a20565b426ce5cd402630812503a78abe9dc.zip
hostap-d3e3a20565b426ce5cd402630812503a78abe9dc.tar.gz
hostap-d3e3a20565b426ce5cd402630812503a78abe9dc.tar.bz2
Remove unnecessary ifname parameter from set_ht_params() driver op
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/ap_drv_ops.c11
-rw-r--r--src/ap/ap_drv_ops.h2
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 75c74a7..d79c698 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -186,8 +186,7 @@ static int hostapd_set_bss_params(struct hostapd_data *hapd,
ht_oper = pos;
pos = hostapd_eid_ht_operation(hapd, pos);
if (pos > ht_oper && ht_oper > ht_capab &&
- hostapd_set_ht_params(hapd->conf->iface, hapd,
- ht_capab + 2, ht_capab[1],
+ hostapd_set_ht_params(hapd, ht_capab + 2, ht_capab[1],
ht_oper + 2, ht_oper[1])) {
wpa_printf(MSG_ERROR, "Could not set HT capabilities "
"for kernel driver");
@@ -574,16 +573,16 @@ int hostapd_driver_commit(struct hostapd_data *hapd)
}
-int hostapd_set_ht_params(const char *ifname, struct hostapd_data *hapd,
+int hostapd_set_ht_params(struct hostapd_data *hapd,
const u8 *ht_capab, size_t ht_capab_len,
const u8 *ht_oper, size_t ht_oper_len)
{
if (hapd->driver == NULL || hapd->driver->set_ht_params == NULL ||
ht_capab == NULL || ht_oper == NULL)
return 0;
- return hapd->driver->set_ht_params(
- ifname, hapd->drv_priv, ht_capab, ht_capab_len,
- ht_oper, ht_oper_len);
+ return hapd->driver->set_ht_params(hapd->drv_priv,
+ ht_capab, ht_capab_len,
+ ht_oper, ht_oper_len);
}
diff --git a/src/ap/ap_drv_ops.h b/src/ap/ap_drv_ops.h
index 0085ea2..0e8f9cc 100644
--- a/src/ap/ap_drv_ops.h
+++ b/src/ap/ap_drv_ops.h
@@ -55,7 +55,7 @@ struct hostapd_hw_modes *
hostapd_get_hw_feature_data(struct hostapd_data *hapd, u16 *num_modes,
u16 *flags);
int hostapd_driver_commit(struct hostapd_data *hapd);
-int hostapd_set_ht_params(const char *ifname, struct hostapd_data *hapd,
+int hostapd_set_ht_params(struct hostapd_data *hapd,
const u8 *ht_capab, size_t ht_capab_len,
const u8 *ht_oper, size_t ht_oper_len);
int hostapd_drv_none(struct hostapd_data *hapd);