From: Jouni Malinen Date: Sat, 4 Oct 2014 15:32:57 +0000 (+0300) Subject: wpa_ctrl: Update wpa_ctrl_recv() documentation for non-block behavior X-Git-Tag: hostap_2_3~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f02e6ad727dea1db91a081bffb3fb863e31bbc;p=thirdparty%2Fhostap.git 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 --- 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. */