From: Christian Grothoff Date: Fri, 16 Nov 2012 16:35:51 +0000 (+0000) Subject: -also allow ad-hoc X-Git-Tag: initial-import-from-subversion-38251~10807 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f93ff4bd692670ccfe0150cd618881700d2396ab;p=oweals%2Fgnunet.git -also allow ad-hoc --- 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) if (((ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211) && (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_PRISM) && (ifr.ifr_hwaddr.sa_family != ARPHRD_IEEE80211_FULL)) || - (wrq.u.mode != IW_MODE_MONITOR)) + ( (wrq.u.mode != IW_MODE_MONITOR) && + (wrq.u.mode != IW_MODE_ADHOC) )) + { fprintf (stderr, "Error: interface `%.*s' is not in monitor mode\n", IFNAMSIZ, dev->iface);