aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-helper-transport-wlan.c')
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index ac3c7866b..15c17b048 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -1665,7 +1665,9 @@ open_device_raw (struct HardwareInfos *dev)
1665 if (((ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211) && 1665 if (((ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211) &&
1666 (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_PRISM) && 1666 (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_PRISM) &&
1667 (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_FULL)) || 1667 (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_FULL)) ||
1668 (wrq.u.mode != IW_MODE_MONITOR)) 1668 ( (wrq.u.mode != IW_MODE_MONITOR) &&
1669 (wrq.u.mode != IW_MODE_ADHOC) ))
1670
1669 { 1671 {
1670 fprintf (stderr, "Error: interface `%.*s' is not in monitor mode\n", 1672 fprintf (stderr, "Error: interface `%.*s' is not in monitor mode\n",
1671 IFNAMSIZ, dev->iface); 1673 IFNAMSIZ, dev->iface);