aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-28 18:02:32 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-28 18:02:32 (GMT)
commitbcbbc7af45cc4b84a5c10e65f4283fdf68cd785a (patch)
tree7d110829491964ba3094be1adab76dfd1bfc8b93 /wpa_supplicant
parentfa201b694f55194331d99877b6c64058c1ebd990 (diff)
downloadhostap-06-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.zip
hostap-06-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.tar.gz
hostap-06-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.tar.bz2
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.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 0aca101..be7cafc 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -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;