WPS: Added comments for main data structures
authorJouni Malinen <j@w1.fi>
Fri, 28 Nov 2008 18:50:08 +0000 (20:50 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Nov 2008 18:50:08 +0000 (20:50 +0200)
src/wps/wps.h
src/wps/wps_i.h

index 3965acb..0d08e1a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Wi-Fi Protected Setup
- * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2007-2008, Jouni Malinen <j@w1.fi>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -91,6 +91,12 @@ struct wps_registrar_config {
 };
 
 
+/**
+ * struct wps_context - Long term WPS context data
+ *
+ * This data is stored at the higher layer Authenticator or Supplicant data
+ * structures and it is maintained over multiple registration protocol runs.
+ */
 struct wps_context {
        int ap;
        struct wps_registrar *registrar;
index 806ba9f..8d6242b 100644 (file)
 #include "wps.h"
 #include "wps_defs.h"
 
+/**
+ * struct wps_data - WPS registration protocol data
+ *
+ * This data is stored at the EAP-WSC server/peer method and it is kept for a
+ * single registration protocol run.
+ */
 struct wps_data {
        int authenticator;
        struct wps_context *wps;