Remove unneeded iface parameter from if_add() driver op
This commit is contained in:
parent
17557ebe30
commit
7ab68865c0
4 changed files with 11 additions and 13 deletions
|
@ -412,8 +412,8 @@ int hostapd_if_add(struct hostapd_data *hapd, enum wpa_driver_if_type type,
|
||||||
{
|
{
|
||||||
if (hapd->driver == NULL || hapd->driver->if_add == NULL)
|
if (hapd->driver == NULL || hapd->driver->if_add == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
return hapd->driver->if_add(hapd->conf->iface, hapd->drv_priv, type,
|
return hapd->driver->if_add(hapd->drv_priv, type, ifname, addr,
|
||||||
ifname, addr, bss_ctx, drv_priv);
|
bss_ctx, drv_priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1488,7 +1488,6 @@ struct wpa_driver_ops {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if_add - Add a virtual interface
|
* if_add - Add a virtual interface
|
||||||
* @iface: Parent interface name
|
|
||||||
* @priv: Private driver interface data
|
* @priv: Private driver interface data
|
||||||
* @type: Interface type
|
* @type: Interface type
|
||||||
* @ifname: Interface name for the new virtual interface
|
* @ifname: Interface name for the new virtual interface
|
||||||
|
@ -1499,9 +1498,9 @@ struct wpa_driver_ops {
|
||||||
* not allowed (applies only to %WPA_IF_AP_BSS type)
|
* not allowed (applies only to %WPA_IF_AP_BSS type)
|
||||||
* Returns: 0 on success, -1 on failure
|
* Returns: 0 on success, -1 on failure
|
||||||
*/
|
*/
|
||||||
int (*if_add)(const char *iface, void *priv,
|
int (*if_add)(void *priv, enum wpa_driver_if_type type,
|
||||||
enum wpa_driver_if_type type, const char *ifname,
|
const char *ifname, const u8 *addr, void *bss_ctx,
|
||||||
const u8 *addr, void *bss_ctx, void **drv_priv);
|
void **drv_priv);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if_remove - Remove a virtual interface
|
* if_remove - Remove a virtual interface
|
||||||
|
|
|
@ -4683,8 +4683,7 @@ static enum nl80211_iftype wpa_driver_nl80211_if_type(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int wpa_driver_nl80211_if_add(const char *iface, void *priv,
|
static int wpa_driver_nl80211_if_add(void *priv, enum wpa_driver_if_type type,
|
||||||
enum wpa_driver_if_type type,
|
|
||||||
const char *ifname, const u8 *addr,
|
const char *ifname, const u8 *addr,
|
||||||
void *bss_ctx, void **drv_priv)
|
void *bss_ctx, void **drv_priv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1028,12 +1028,12 @@ static int test_driver_bss_remove(void *priv, const char *ifname)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int test_driver_if_add(const char *iface, void *priv,
|
static int test_driver_if_add(void *priv, enum wpa_driver_if_type type,
|
||||||
enum wpa_driver_if_type type, const char *ifname,
|
const char *ifname, const u8 *addr,
|
||||||
const u8 *addr, void *bss_ctx, void **drv_priv)
|
void *bss_ctx, void **drv_priv)
|
||||||
{
|
{
|
||||||
wpa_printf(MSG_DEBUG, "%s(iface=%s type=%d ifname=%s bss_ctx=%p)",
|
wpa_printf(MSG_DEBUG, "%s(type=%d ifname=%s bss_ctx=%p)",
|
||||||
__func__, iface, type, ifname, bss_ctx);
|
__func__, type, ifname, bss_ctx);
|
||||||
if (type == WPA_IF_AP_BSS)
|
if (type == WPA_IF_AP_BSS)
|
||||||
return test_driver_bss_add(priv, ifname, addr, bss_ctx);
|
return test_driver_bss_add(priv, ifname, addr, bss_ctx);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue