summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-09 19:10:59 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-04-09 19:10:59 -0700
commitd0a8111c2990b0a606c670d5ce4694190d834e48 (patch)
tree61697e221bb7c8941eca239e2b20f297e7aa88f4
parent4c41e635d3006ee847079dd28d8333a58ac8e71f (diff)
binding: wifi: clean up array of struct afb_verb_v2
AFB_SESSION_NONE is defined as zero so it doesn't need to be explicitly set. Change-Id: I8b871723e14bd7de415d0c869b8ad08b8061f40b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--binding-wifi/wifi-api.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/binding-wifi/wifi-api.c b/binding-wifi/wifi-api.c
index 2117d6d..22b8d77 100644
--- a/binding-wifi/wifi-api.c
+++ b/binding-wifi/wifi-api.c
@@ -652,17 +652,17 @@ static void unsubscribe(struct afb_req request)
* array of the verbs exported to afb-daemon
*/
static const struct afb_verb_v2 binding_verbs[] = {
-/* VERB'S NAME SESSION MANAGEMENT FUNCTION TO CALL SHORT DESCRIPTION */
-{ .verb = "activate", .session = AFB_SESSION_NONE, .callback = activate, .info = "Activate Wi-Fi" },
-{ .verb = "deactivate", .session = AFB_SESSION_NONE, .callback = deactivate, .info ="Deactivate Wi-Fi" },
-{ .verb = "scan", .session = AFB_SESSION_NONE, .callback = scan, .info ="Scanning Wi-Fi" },
-{ .verb = "scan_result", .session = AFB_SESSION_NONE, .callback = scan_result, .info = "Get scan result Wi-Fi" },
-{ .verb = "connect", .session = AFB_SESSION_NONE, .callback = connect, .info ="Connecting to Access Point" },
-{ .verb = "status", .session = AFB_SESSION_NONE, .callback = status, .info ="Check connection status" },
-{ .verb = "disconnect", .session = AFB_SESSION_NONE, .callback = disconnect, .info ="Disconnecting connection" },
-{ .verb = "insertpasskey",.session = AFB_SESSION_NONE, .callback = insertpasskey, .info ="inputs the passkey after it has been requsted"},
-{ .verb = "subscribe", .session = AFB_SESSION_NONE, .callback = subscribe, .info ="unsubscribes to the event of 'name'"},
-{ .verb = "unsubscribe", .session = AFB_SESSION_NONE, .callback = unsubscribe, .info ="unsubscribes to the event of 'name'"},
+/* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */
+{ .verb = "activate", .callback = activate, .info = "Activate Wi-Fi" },
+{ .verb = "deactivate", .callback = deactivate, .info ="Deactivate Wi-Fi" },
+{ .verb = "scan", .callback = scan, .info ="Scanning Wi-Fi" },
+{ .verb = "scan_result", .callback = scan_result, .info = "Get scan result Wi-Fi" },
+{ .verb = "connect", .callback = connect, .info ="Connecting to Access Point" },
+{ .verb = "status", .callback = status, .info ="Check connection status" },
+{ .verb = "disconnect", .callback = disconnect, .info ="Disconnecting connection" },
+{ .verb = "insertpasskey", .callback = insertpasskey, .info ="inputs the passkey after it has been requsted"},
+{ .verb = "subscribe", .callback = subscribe, .info ="unsubscribes to the event of 'name'"},
+{ .verb = "unsubscribe", .callback = unsubscribe, .info ="unsubscribes to the event of 'name'"},
{ } /* marker for end of the array */
};