WPS: Merged two cred_cb variables into the same one
Previously, wpa_supplicant as Enrollee case was handled using a different callback function pointer. However, now that the wps_context structure is allocated for all cases, the same variable can be used in all cases.
This commit is contained in:
parent
fa201b694f
commit
bcbbc7af45
10 changed files with 11 additions and 23 deletions
|
@ -41,7 +41,8 @@ int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
|
|||
}
|
||||
|
||||
|
||||
static int wpa_supplicant_wps_cred(void *ctx, struct wps_credential *cred)
|
||||
static int wpa_supplicant_wps_cred(void *ctx,
|
||||
const struct wps_credential *cred)
|
||||
{
|
||||
struct wpa_supplicant *wpa_s = ctx;
|
||||
struct wpa_ssid *ssid = wpa_s->current_ssid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue