Remove unused if_update() driver op
This commit is contained in:
parent
2a91091e15
commit
b5996353e7
5 changed files with 0 additions and 30 deletions
|
@ -406,15 +406,6 @@ hostapd_if_add(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
|
||||||
ifname, addr);
|
ifname, addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
|
||||||
hostapd_if_update(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
|
|
||||||
char *ifname, const u8 *addr)
|
|
||||||
{
|
|
||||||
if (hapd->driver == NULL || hapd->driver->if_update == NULL)
|
|
||||||
return -1;
|
|
||||||
return hapd->driver->if_update(hapd->drv_priv, type, ifname, addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
hostapd_if_remove(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
|
hostapd_if_remove(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
|
||||||
char *ifname, const u8 *addr)
|
char *ifname, const u8 *addr)
|
||||||
|
|
|
@ -1123,8 +1123,6 @@ struct wpa_driver_ops {
|
||||||
int (*if_add)(const char *iface, void *priv,
|
int (*if_add)(const char *iface, void *priv,
|
||||||
enum hostapd_driver_if_type type, char *ifname,
|
enum hostapd_driver_if_type type, char *ifname,
|
||||||
const u8 *addr);
|
const u8 *addr);
|
||||||
int (*if_update)(void *priv, enum hostapd_driver_if_type type,
|
|
||||||
char *ifname, const u8 *addr);
|
|
||||||
int (*if_remove)(void *priv, enum hostapd_driver_if_type type,
|
int (*if_remove)(void *priv, enum hostapd_driver_if_type type,
|
||||||
const char *ifname, const u8 *addr);
|
const char *ifname, const u8 *addr);
|
||||||
int (*set_sta_vlan)(void *priv, const u8 *addr, const char *ifname,
|
int (*set_sta_vlan)(void *priv, const u8 *addr, const char *ifname,
|
||||||
|
|
|
@ -3239,7 +3239,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
|
||||||
NULL /* bss_remove */,
|
NULL /* bss_remove */,
|
||||||
NULL /* valid_bss_mask */,
|
NULL /* valid_bss_mask */,
|
||||||
NULL /* if_add */,
|
NULL /* if_add */,
|
||||||
NULL /* if_update */,
|
|
||||||
NULL /* if_remove */,
|
NULL /* if_remove */,
|
||||||
NULL /* set_sta_vlan */,
|
NULL /* set_sta_vlan */,
|
||||||
NULL /* commit */,
|
NULL /* commit */,
|
||||||
|
|
|
@ -4371,14 +4371,6 @@ static int i802_if_add(const char *iface, void *priv,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int i802_if_update(void *priv, enum hostapd_driver_if_type type,
|
|
||||||
char *ifname, const u8 *addr)
|
|
||||||
{
|
|
||||||
/* unused at the moment */
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int i802_if_remove(void *priv, enum hostapd_driver_if_type type,
|
static int i802_if_remove(void *priv, enum hostapd_driver_if_type type,
|
||||||
const char *ifname, const u8 *addr)
|
const char *ifname, const u8 *addr)
|
||||||
{
|
{
|
||||||
|
@ -4624,7 +4616,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = {
|
||||||
.bss_add = i802_bss_add,
|
.bss_add = i802_bss_add,
|
||||||
.bss_remove = i802_bss_remove,
|
.bss_remove = i802_bss_remove,
|
||||||
.if_add = i802_if_add,
|
.if_add = i802_if_add,
|
||||||
.if_update = i802_if_update,
|
|
||||||
.if_remove = i802_if_remove,
|
.if_remove = i802_if_remove,
|
||||||
.set_sta_vlan = i802_set_sta_vlan,
|
.set_sta_vlan = i802_set_sta_vlan,
|
||||||
#endif /* HOSTAPD */
|
#endif /* HOSTAPD */
|
||||||
|
|
|
@ -1053,14 +1053,6 @@ static int test_driver_if_add(const char *iface, void *priv,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int test_driver_if_update(void *priv, enum hostapd_driver_if_type type,
|
|
||||||
char *ifname, const u8 *addr)
|
|
||||||
{
|
|
||||||
wpa_printf(MSG_DEBUG, "%s(type=%d ifname=%s)", __func__, type, ifname);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int test_driver_if_remove(void *priv, enum hostapd_driver_if_type type,
|
static int test_driver_if_remove(void *priv, enum hostapd_driver_if_type type,
|
||||||
const char *ifname, const u8 *addr)
|
const char *ifname, const u8 *addr)
|
||||||
{
|
{
|
||||||
|
@ -2484,7 +2476,6 @@ const struct wpa_driver_ops wpa_driver_test_ops = {
|
||||||
.bss_add = test_driver_bss_add,
|
.bss_add = test_driver_bss_add,
|
||||||
.bss_remove = test_driver_bss_remove,
|
.bss_remove = test_driver_bss_remove,
|
||||||
.if_add = test_driver_if_add,
|
.if_add = test_driver_if_add,
|
||||||
.if_update = test_driver_if_update,
|
|
||||||
.if_remove = test_driver_if_remove,
|
.if_remove = test_driver_if_remove,
|
||||||
.valid_bss_mask = test_driver_valid_bss_mask,
|
.valid_bss_mask = test_driver_valid_bss_mask,
|
||||||
.hapd_set_ssid = test_driver_set_ssid,
|
.hapd_set_ssid = test_driver_set_ssid,
|
||||||
|
|
Loading…
Reference in a new issue