]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
bsd: Fix a typo in error message
authorRyo ONODERA <ryo@tetera.org>
Sat, 13 Apr 2019 00:50:56 +0000 (09:50 +0900)
committerJouni Malinen <j@w1.fi>
Sat, 13 Apr 2019 08:26:25 +0000 (11:26 +0300)
When SIOCG80211 failed, show error message with SIOCG80211
instead of SIOCS80211.

Signed-off-by: Ryo ONODERA <ryo@tetera.org>
src/drivers/driver_bsd.c

index 8621aa0b0099fe6fa2712deaab85c1db38a58f57..46754968f13d7e84a98a65adb7aa44a2f27e675b 100644 (file)
@@ -143,7 +143,7 @@ bsd_get80211(void *priv, struct ieee80211req *ireq, int op, void *arg,
        ireq->i_data = arg;
 
        if (ioctl(drv->global->sock, SIOCG80211, ireq) < 0) {
-               wpa_printf(MSG_ERROR, "ioctl[SIOCS80211, op=%u, "
+               wpa_printf(MSG_ERROR, "ioctl[SIOCG80211, op=%u, "
                           "arg_len=%u]: %s", op, arg_len, strerror(errno));
                return -1;
        }