summaryrefslogtreecommitdiff
authormax <max>2003-02-16 20:05:29 (UTC)
committer max <max>2003-02-16 20:05:29 (UTC)
commit0a64464dc16e6167402590ea8c30d9d56d9e5c3f (patch) (unidiff)
tree9206bddf8c8815ae35d549adb7eec132e9f38203
parent6c22cd2b118a10fe860c429b5ea012aaf0b99c22 (diff)
downloadopie-0a64464dc16e6167402590ea8c30d9d56d9e5c3f.zip
opie-0a64464dc16e6167402590ea8c30d9d56d9e5c3f.tar.gz
opie-0a64464dc16e6167402590ea8c30d9d56d9e5c3f.tar.bz2
Fixed hostap driver < wireless extension 14
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc2
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
81 int *ptr; 81 int *ptr;
82 /* Socket needed to use the iocall to */ 82 /* Socket needed to use the iocall to */
83 fd = socket(AF_INET, SOCK_STREAM, 0); 83 fd = socket(AF_INET, SOCK_STREAM, 0);
84 84
85 if ( fd == -1 ) { 85 if ( fd == -1 ) {
86 return -1; 86 return -1;
87 } 87 }
88 88
89 ptr = (int *) ireq.u.name; 89 ptr = (int *) ireq.u.name;
90 // This is the monitor mode for 802.11 non-prism header 90 // This is the monitor mode for 802.11 non-prism header
91 ptr[0] = 2; 91 ptr[0] = 2;
92 strcpy(ireq.ifr_ifrn.ifrn_name, device); 92 strcpy(ireq.ifr_ifrn.ifrn_name, device);
93 if (ioctl( fd, SIOCIWFIRSTPRIV + 4, &ireq)==0) 93 if (ioctl( fd, SIOCDEVPRIVATE, &ireq)==0)
94 { 94 {
95 /* All was fine... */ 95 /* All was fine... */
96 close(fd); 96 close(fd);
97 wl_loginfo("Set hostap card %s into monitormode",device); 97 wl_loginfo("Set hostap card %s into monitormode",device);
98 return 1; 98 return 1;
99 } 99 }
100 else 100 else
101 { 101 {
102 /* iocall does not work */ 102 /* iocall does not work */
103 close(fd); 103 close(fd);
104 wl_logerr("Could not set hostap card %s into monitormode, check cardtype",device); 104 wl_logerr("Could not set hostap card %s into monitormode, check cardtype",device);
105 return 0; 105 return 0;