Changeset 163
- Timestamp:
- 08/16/08 15:03:23 (3 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
- 2 moved
-
Makefile.in (modified) (1 diff)
-
lorcon.3 (modified) (1 diff)
-
mac80211inject.c (moved) (moved from trunk/d80211inject.c) (4 diffs)
-
mac80211inject.h (moved) (moved from trunk/d80211inject.h) (2 diffs)
-
tx80211.c (modified) (4 diffs)
-
tx80211.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r157 r163 32 32 hapinject.lo rt2500inject.lo rtlinject.lo \ 33 33 rt2570inject.lo airpinject.lo rt73inject.lo \ 34 rt61inject.lo zd1211rwinject.lo d80211inject.lo \34 rt61inject.lo zd1211rwinject.lo mac80211inject.lo \ 35 35 bcm43xxinject.lo tx80211.lo \ 36 36 lorcon_packasm.lo lorcon_forge.lo -
trunk/lorcon.3
r161 r163 204 204 Indicates the Linux bcm43xx kernel drivers. The string "bcm43xx" may be used to indicate the use of this driver. 205 205 .TP 206 .B INJ_ D80211206 .B INJ_MAC80211 207 207 Generic driver for Linux Mac80211 wireless layer drivers, which require a cutting-edge kernel. Multiple device names are aliased to this driver, including "ath5k" and "iwlwifi". Future Linux support will be concentrated on this driver. 208 208 .TP -
trunk/mac80211inject.c
r157 r163 25 25 #ifdef SYS_LINUX 26 26 27 #include " d80211inject.h"27 #include "mac80211inject.h" 28 28 #include "wtinject.h" 29 29 30 int tx80211_ d80211_init(struct tx80211 *in_tx)30 int tx80211_mac80211_init(struct tx80211 *in_tx) 31 31 { 32 in_tx->capabilities = tx80211_ d80211_capabilities();32 in_tx->capabilities = tx80211_mac80211_capabilities(); 33 33 in_tx->open_callthrough = &wtinj_open; 34 34 in_tx->close_callthrough = &wtinj_close; … … 37 37 in_tx->getchan_callthrough = &wtinj_getchannel; 38 38 in_tx->setchan_callthrough = &wtinj_setchannel; 39 in_tx->txpacket_callthrough = &tx80211_ d80211_send;39 in_tx->txpacket_callthrough = &tx80211_mac80211_send; 40 40 in_tx->setfuncmode_callthrough = &wtinj_setfuncmode; 41 41 … … 43 43 } 44 44 45 int tx80211_ d80211_capabilities()45 int tx80211_mac80211_capabilities() 46 46 { 47 47 return (TX80211_CAP_SNIFF | TX80211_CAP_TRANSMIT | … … 51 51 } 52 52 53 int tx80211_ d80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt)53 int tx80211_mac80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt) 54 54 { 55 55 struct tx80211_packet mwng_pkt; -
trunk/mac80211inject.h
r160 r163 19 19 */ 20 20 21 #ifndef __ D80211INJECT_H__22 #define __ D80211INJECT_H__21 #ifndef __MAC80211INJECT_H__ 22 #define __MAC80211INJECT_H__ 23 23 24 24 #ifdef HAVE_CONFIG_H … … 56 56 #include "wtinject.h" 57 57 58 int tx80211_ d80211_init(struct tx80211 *in_tx);59 int tx80211_ d80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt);58 int tx80211_mac80211_init(struct tx80211 *in_tx); 59 int tx80211_mac80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt); 60 60 61 int tx80211_ d80211_capabilities();61 int tx80211_mac80211_capabilities(); 62 62 63 63 #endif /* linux */ -
trunk/tx80211.c
r157 r163 120 120 121 121 ret->cardnames[ret->num_cards] = strdup("rt2570"); 122 ret->descriptions[ret->num_cards] = strdup("Ra ylink 2570 802.11b");122 ret->descriptions[ret->num_cards] = strdup("Ralink 2570 802.11b"); 123 123 ret->capabilities[ret->num_cards] = tx80211_rt2570_capabilities(); 124 124 ret->num_cards++; 125 125 126 126 ret->cardnames[ret->num_cards] = strdup("rt2500"); 127 ret->descriptions[ret->num_cards] = strdup("Ra ylink 2500 802.11b");127 ret->descriptions[ret->num_cards] = strdup("Ralink 2500 802.11b"); 128 128 ret->capabilities[ret->num_cards] = tx80211_rt2500_capabilities(); 129 129 ret->num_cards++; 130 130 131 131 ret->cardnames[ret->num_cards] = strdup("rt73"); 132 ret->descriptions[ret->num_cards] = strdup("Ra ylink 73 802.11g USB");132 ret->descriptions[ret->num_cards] = strdup("Ralink 73 802.11g USB"); 133 133 ret->capabilities[ret->num_cards] = tx80211_rt73_capabilities(); 134 134 ret->num_cards++; 135 135 136 136 ret->cardnames[ret->num_cards] = strdup("rt61"); 137 ret->descriptions[ret->num_cards] = strdup("Ra ylink 61 pre-N PC Card");137 ret->descriptions[ret->num_cards] = strdup("Ralink 61 pre-N PC Card"); 138 138 ret->capabilities[ret->num_cards] = tx80211_rt61_capabilities(); 139 139 ret->num_cards++; … … 150 150 151 151 ret->cardnames[ret->num_cards] = strdup("d80211"); 152 ret->descriptions[ret->num_cards] = strdup("Linux generic d80211"); 153 ret->capabilities[ret->num_cards] = tx80211_d80211_capabilities(); 152 ret->descriptions[ret->num_cards] = strdup("Linux generic mac80211"); 153 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 154 ret->num_cards++; 155 156 ret->cardnames[ret->num_cards] = strdup("mac80211"); 157 ret->descriptions[ret->num_cards] = strdup("Linux generic mac80211"); 158 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 154 159 ret->num_cards++; 155 160 156 161 ret->cardnames[ret->num_cards] = strdup("ath5k"); 157 ret->descriptions[ret->num_cards] = strdup("Ath5k Atheros ");158 ret->capabilities[ret->num_cards] = tx80211_ d80211_capabilities();162 ret->descriptions[ret->num_cards] = strdup("Ath5k Atheros (mac80211)"); 163 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 159 164 ret->num_cards++; 160 165 161 166 ret->cardnames[ret->num_cards] = strdup("iwlwifi"); 162 ret->descriptions[ret->num_cards] = strdup("iwlwifi Intel"); 163 ret->capabilities[ret->num_cards] = tx80211_d80211_capabilities(); 164 ret->num_cards++; 167 ret->descriptions[ret->num_cards] = strdup("iwlwifi Intel (mac80211)"); 168 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 169 ret->num_cards++; 170 171 ret->cardnames[ret->num_cards] = strdup("iwl-agn"); 172 ret->descriptions[ret->num_cards] = strdup("iwlwifi Intel (mac80211)"); 173 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 174 ret->num_cards++; 175 176 ret->cardnames[ret->num_cards] = strdup("iwl4965"); 177 ret->descriptions[ret->num_cards] = strdup("iwlwifi Intel (mac80211)"); 178 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 179 ret->num_cards++; 180 181 ret->cardnames[ret->num_cards] = strdup("iwl5000"); 182 ret->descriptions[ret->num_cards] = strdup("iwlwifi Intel (mac80211)"); 183 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 184 ret->num_cards++; 185 186 ret->cardnames[ret->num_cards] = strdup("b43"); 187 ret->descriptions[ret->num_cards] = strdup("Broadcom b43 (mac80211)"); 188 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 189 ret->num_cards++; 190 191 ret->cardnames[ret->num_cards] = strdup("b43-legacy"); 192 ret->descriptions[ret->num_cards] = strdup("Broadcom b43-legacy (mac80211)"); 193 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 194 ret->num_cards++; 195 196 ret->cardnames[ret->num_cards] = strdup("rt2x00"); 197 ret->descriptions[ret->num_cards] = strdup("Realtek 2x00 (mac80211)"); 198 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 199 ret->num_cards++; 200 201 ret->cardnames[ret->num_cards] = strdup("rt2500pci"); 202 ret->descriptions[ret->num_cards] = strdup("Realtek 2500 PCI (mac80211)"); 203 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 204 ret->num_cards++; 205 206 ret->cardnames[ret->num_cards] = strdup("rt2500usb"); 207 ret->descriptions[ret->num_cards] = strdup("Realtek 2500 USB (mac80211)"); 208 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 209 ret->num_cards++; 210 211 ret->cardnames[ret->num_cards] = strdup("rt61pci"); 212 ret->descriptions[ret->num_cards] = strdup("Realtek 61 PCI (mac80211)"); 213 ret->capabilities[ret->num_cards] = tx80211_mac80211_capabilities(); 214 ret->num_cards++; 215 216 165 217 166 218 #endif /* SYS_LINUX */ … … 244 296 return INJ_BCM43XX; 245 297 246 if (!strcasecmp(in_str, "ath5k") || 247 !strcasecmp(in_str, "iwlwifi") || 248 !strcasecmp(in_str, "d80211")) 249 return INJ_D80211; 298 if (!strcasecmp(in_str, "ath5k") || !strcasecmp(in_str, "ath9k") || 299 !strcasecmp(in_str, "iwlwifi") || !strcasecmp(in_str, "iwlagn") || 300 !strcasecmp(in_str, "iwl-agn") || !strcasecmp(in_str, "iwl3945") || 301 !strcasecmp(in_str, "iwl4965") || !strcasecmp(in_str, "iwl5000") || 302 !strcasecmp(in_str, "mac80211") || !strcasecmp(in_str, "d80211") || 303 !strcasecmp(in_str, "rt2x00") || !strcasecmp(in_str, "rt2400pci") || 304 !strcasecmp(in_str, "rt2500pci") || strcasecmp(in_str, "rt2500usb") || 305 !strcasecmp(in_str, "rt61pci") || strcasecmp(in_str, "rt73usb") || 306 !strcasecmp(in_str, "b43") || !strcasecmp(in_str, "b43legacy") || 307 !strcasecmp(in_str, "rtl8180") || !strcasecmp(in_str, "rtl8187")) 308 return INJ_MAC80211; 250 309 251 310 #endif /* SYS_LINUX */ … … 325 384 break; 326 385 327 case INJ_ D80211:328 ret = tx80211_ d80211_init(in_tx);386 case INJ_MAC80211: 387 ret = tx80211_mac80211_init(in_tx); 329 388 break; 330 389 -
trunk/tx80211.h
r159 r163 224 224 #define INJ_ZD1211RW 13 225 225 #define INJ_BCM43XX 14 226 #define INJ_ D8021115226 #define INJ_MAC80211 15 227 227 /* 228 228 * No-one should test for INJ_MAX, test for INJ_NODRIVER instead
