Deprecate set_intra_bss() driver_ops
The AP client isolation parameter is now available through set_ap(). driver_nl80211.c was the only driver wrapper using the set_intra_bss() call in hostap.git, but some external trees may have used this. Once those are cleared, the set_infra_bss() driver_ops can be removed completely. The only remaining use case for it currently is in P2P GO mode with wpa_supplicant.
This commit is contained in:
parent
5ce0f8b31b
commit
fd13a54180
3 changed files with 39 additions and 38 deletions
|
@ -436,14 +436,6 @@ void handle_probe_req(struct hostapd_data *hapd,
|
|||
}
|
||||
|
||||
|
||||
static int hostapd_set_ap_isolate(struct hostapd_data *hapd, int value)
|
||||
{
|
||||
if (hapd->driver == NULL || hapd->driver->set_intra_bss == NULL)
|
||||
return 0;
|
||||
return hapd->driver->set_intra_bss(hapd->drv_priv, !value);
|
||||
}
|
||||
|
||||
|
||||
static int hostapd_set_bss_params(struct hostapd_data *hapd,
|
||||
int use_protection)
|
||||
{
|
||||
|
@ -494,13 +486,6 @@ static int hostapd_set_bss_params(struct hostapd_data *hapd,
|
|||
ret = -1;
|
||||
}
|
||||
|
||||
if (hostapd_set_ap_isolate(hapd, hapd->conf->isolate) &&
|
||||
hapd->conf->isolate) {
|
||||
wpa_printf(MSG_ERROR, "Could not enable AP isolation in "
|
||||
"kernel driver");
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -666,6 +651,7 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
|
|||
params.beacon_ies = beacon;
|
||||
params.proberesp_ies = proberesp;
|
||||
params.assocresp_ies = assocresp;
|
||||
params.isolate = hapd->conf->isolate;
|
||||
if (hostapd_drv_set_ap(hapd, ¶ms))
|
||||
wpa_printf(MSG_ERROR, "Failed to set beacon parameters");
|
||||
hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue