From 43f02e6ad727dea1db91a081bffb3fb863e31bbc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 4 Oct 2014 18:32:57 +0300 Subject: [PATCH] wpa_ctrl: Update wpa_ctrl_recv() documentation for non-block behavior Commit 4fdc8def8855ce9b90ffbbdc47152ce46ccdcb1e changed the wpa_ctrl socket to be be non-blocking, so the comment about wpa_ctrl_recv() blocking is not valid anymore. Signed-off-by: Jouni Malinen --- src/common/wpa_ctrl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index d91594e31..4812f8df8 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -345,9 +345,10 @@ int wpa_ctrl_detach(struct wpa_ctrl *ctrl); * @reply_len: Length of the reply buffer * Returns: 0 on success, -1 on failure * - * This function will receive a pending control interface message. This - * function will block if no messages are available. The received response will - * be written to reply and reply_len is set to the actual length of the reply. + * This function will receive a pending control interface message. The received + * response will be written to reply and reply_len is set to the actual length + * of the reply. + * wpa_ctrl_recv() is only used for event messages, i.e., wpa_ctrl_attach() * must have been used to register the control interface as an event monitor. */