-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc index cf50d8c..626b28c 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc @@ -55,17 +55,17 @@ int card_into_monitormode (pcap_t **orighandle, const char *device, int cardtype } else if (cardtype == CARD_TYPE_HOSTAP) { int skfd; skfd = socket(AF_INET, SOCK_STREAM, 0); struct iwreq wrq; wrq.u.mode = IW_MODE_MONITOR; - if(iw_set_ext(skfd,device,SIOCSIWMODE,&wrq)<0) + if(iw_set_ext(skfd,(char *) device,SIOCSIWMODE,&wrq)<0) { wl_logerr("Could not set hostap card %s to raw mode, check cardtype", device); return 0; } else { wl_loginfo("Successfully set hostap card %s into raw mode",device); return 1; @@ -98,17 +98,17 @@ int card_into_monitormode (pcap_t **orighandle, const char *device, int cardtype return 1; } /* Check card is in the rfmon mode */ int card_check_rfmon_datalink (const char *device) { int datalinktype=0; pcap_t *phandle; - phandle = pcap_open_live(device, 65,0,0,NULL); + phandle = pcap_open_live((char *)device, 65,0,0,NULL); datalinktype = pcap_datalink (phandle); pcap_close(phandle); if (datalinktype != DLT_IEEE802_11) /* Rawmode is IEEE802_11 */ { return 0; } else @@ -211,17 +211,17 @@ int card_set_channel (const char *device, int channel, int cardtype) /* when it is an hostap card you need another iocall for channel switching */ else if (cardtype == CARD_TYPE_HOSTAP) { int skfd; skfd = socket(AF_INET, SOCK_STREAM, 0); struct iwreq wrq; iw_float2freq((double) channel, &wrq.u.freq); - if(iw_set_ext(skfd,device,SIOCSIWFREQ,&wrq)<0) + if(iw_set_ext(skfd,(char *) device,SIOCSIWFREQ,&wrq)<0) { wl_logerr("Could not set hostap card %s to channel %d", device, channel); return 0; } else { wl_loginfo("Successfully set hostap card %s to channel %d", device, channel); return 1; @@ -264,17 +264,17 @@ int iw_get_range_info(int skfd, const char * ifname, iw_range * range) char buffer[sizeof(iw_range) * 2]; /* Large enough */ /* Cleanup */ memset(buffer, 0, sizeof(buffer)); wrq2.u.data.pointer = (caddr_t) buffer; wrq2.u.data.length = sizeof(buffer); wrq2.u.data.flags = 0; - if(iw_get_ext(skfd, ifname, SIOCGIWRANGE, &wrq2) < 0) + if(iw_get_ext(skfd, (char *)ifname, SIOCGIWRANGE, &wrq2) < 0) { wl_logerr("Could not get the range from the interface"); return(-1); } else { /* Copy stuff at the right place, ignore extra */ memcpy((char *) range, buffer, sizeof(iw_range)); |