00001 /* Linux Prism II Stumbler - Utility Scan for 802_11 networks under Linux 00002 * 00003 * File : $Name$ 00004 * Project : WifiScanner (c) 2002 Hervé 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.com 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 * $Id: template_hardware.c 174 2007-07-25 13:20:29Z poggij $ 00026 */ 00027 00028 // XXXX is your hardware name, exemple CISCO, HOSTAP ... 00029 // It's in upper case 00030 00031 #include <include.h> 00032 #include <src/XXXX.h> 00033 00034 // All extern value you want 00035 extern ConfigStruct config; 00036 extern WINDOW *Sum_WND, *RealTime_WND; 00037 extern ScanResult_t Res; 00038 00039 int selectChannelXXXX(char *devname, int channel) 00040 { 00041 // change channel to monitor 00042 ...return result; 00043 } 00044 00045 int shutCardXXXX(char *devname) 00046 { 00047 // Turn off card and monitor mode 00048 ...return result; 00049 } 00050 00051 int openCardXXXX(char *devname) 00052 { 00053 // Turn on card and monitor mode 00054 ...return result; 00055 } 00056 00057 00058 // Get packet from card 00059 int getPacketXXXX(p80211_caphdr_t * wlan_header, UINT8 * buf, int maxlen) 00060 { 00061 ...return result; 00062 } 00063 00064 int openPacketXXXX(char *devname) 00065 { 00066 // Open netlink 00067 ...return result; 00068 } 00069 00070 void closePacketXXXX(void) 00071 { 00072 // close netlink 00073 ...}