Get rid of struct hostapd_driver_ops abstraction
This is not needed anymore and just makes things more difficult to understand, so move the remaining function pointers to direct function calls and get rid of the struct hostapd_driver_ops.
This commit is contained in:
parent
3acdf771b8
commit
0e8a96a911
10 changed files with 60 additions and 79 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "wps/wps_dev_attr.h"
|
||||
#include "hostapd.h"
|
||||
#include "ap_config.h"
|
||||
#include "ap_drv_ops.h"
|
||||
#include "beacon.h"
|
||||
#include "sta_info.h"
|
||||
#include "wps_hostapd.h"
|
||||
|
@ -140,7 +141,7 @@ static int hostapd_wps_set_ie_cb(void *ctx, struct wpabuf *beacon_ie,
|
|||
wpabuf_free(hapd->wps_probe_resp_ie);
|
||||
hapd->wps_probe_resp_ie = probe_resp_ie;
|
||||
ieee802_11_set_beacon(hapd);
|
||||
return hapd->drv.set_ap_wps_ie(hapd);
|
||||
return hostapd_set_ap_wps_ie(hapd);
|
||||
}
|
||||
|
||||
|
||||
|
@ -589,7 +590,7 @@ static void hostapd_wps_clear_ies(struct hostapd_data *hapd)
|
|||
wpabuf_free(hapd->wps_probe_resp_ie);
|
||||
hapd->wps_probe_resp_ie = NULL;
|
||||
|
||||
hapd->drv.set_ap_wps_ie(hapd);
|
||||
hostapd_set_ap_wps_ie(hapd);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue