00001 /* Linux Prism II Stumbler - Utility Scan for 802_11 networks under Linux 00002 * 00003 * File : MADWIFI-NG.h 00004 * Project : WifiScanner (c) 2002 Herv<E9> Schauer Consultants 00005 * Usage : This utility is written for use with IEEE 802.11 adapters based 00006 * on Intersil's PRISM II chipset (PCMCIA). 00007 * 00008 * Base code was from prismstumbler Jan Fernquist <Jan.B.Fernquist@telia.com> 00009 * and wlanctl from www.linux-wlan.org 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00024 * 00025 */ 00026 00027 #ifndef __MADWIFI_NG_H__ 00028 #define __MADWIFI_NG_H__ 00029 00030 /* Madwifi NG ioctls from net80211 */ 00031 #define SIOC80211IFCREATE (SIOCDEVPRIVATE+7) 00032 #define SIOC80211IFDESTROY (SIOCDEVPRIVATE+8) 00033 00034 #define IEEE80211_CLONE_BSSID 0x0001 00035 #define IEEE80211_NO_STABEACONS 0x0002 00036 00037 #define IEEE80211_M_STA 1 00038 #define IEEE80211_M_IBSS 0 00039 #define IEEE80211_M_MASTER 6 00040 #define IEEE80211_M_MONITOR 8 00041 00042 00043 int selectChannelMADWIFI_NG(char *devname, int channel); 00044 int shutCardMADWIFI_NG(char *devname); 00045 int openCardMADWIFI_NG(char *devname); 00046 int getPacketMADWIFI_NG(p80211_caphdr_t * wlan_header, UINT8 * buf, int maxlen); 00047 int openPacketMADWIFI_NG(char *devname); 00048 void closePacketMADWIFI_NG(void); 00049 00050 #endif