-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc index a57645b..d385df4 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc @@ -81,25 +81,25 @@ int card_into_monitormode (pcap_t **orighandle, const char *device, int cardtype int *ptr; /* Socket needed to use the iocall to */ fd = socket(AF_INET, SOCK_STREAM, 0); if ( fd == -1 ) { return -1; } ptr = (int *) ireq.u.name; // This is the monitor mode for 802.11 non-prism header ptr[0] = 2; strcpy(ireq.ifr_ifrn.ifrn_name, device); - if (ioctl( fd, SIOCIWFIRSTPRIV + 4, &ireq)==0) + if (ioctl( fd, SIOCDEVPRIVATE, &ireq)==0) { /* All was fine... */ close(fd); wl_loginfo("Set hostap card %s into monitormode",device); return 1; } else { /* iocall does not work */ close(fd); wl_logerr("Could not set hostap card %s into monitormode, check cardtype",device); return 0; |