/* This file is part of Kismet Kismet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Kismet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Kismet; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "config.h" #ifndef __NL80211_CONFIG__ #define __NL80211_CONFIG__ // Use our own defines incase we don't have nl80211 #define nl80211_mntr_flag_none 0 #define nl80211_mntr_flag_fcsfail 1 #define nl80211_mntr_flag_plcpfail 2 #define nl80211_mntr_flag_control 3 #define nl80211_mntr_flag_otherbss 4 #define nl80211_mntr_flag_cookframe 5 struct nl80211_channel_block { char *phyname; int nfreqs; int *channel_list; }; typedef struct nl80211_channel_block nl80211_channel_block_t; int nl80211_connect(const char *interface, void **handle, void **cache, void **family, char *errstr); void nl80211_disconnect(void *handle); // Make a vap under mac80211 int nl80211_createvap(const char *interface, const char *newinterface, char *errstr); // Set vap flags int nl80211_setvapflag(const char *interface, char *errstr, int nflags, int *flags); // Set channel using nl80211 instead of SIOCWCHAN int nl80211_setchannel(const char *interface, int channel, unsigned int chmode, char *errstr); int nl80211_setchannel_cache(const char *interface, void *handle, void *family, int channel, unsigned int chmode, char *errstr); // Caller is expected to free return char *nl80211_find_parent(const char *interface); #define NL80211_CHANLIST_NO_INTERFACE -2 #define NL80211_CHANLIST_NOT_NL80211 -3 #define NL80211_CHANLIST_GENERIC -4 int nl80211_get_chanlist(const char *interface, int *ret_num_chans, int **ret_chan_list, char *errstr); #endif