Changeset 163

Show
Ignore:
Timestamp:
08/16/08 15:03:23 (3 months ago)
Author:
dragorn
Message:

Expanded d80211 into mac80211 and added multiple other cards (from diff sent on irc

by someone who I can't find in the logs, and the original diff was broken so the
actions were recreated)

Location:
trunk
Files:
4 modified
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r157 r163  
    3232                 hapinject.lo rt2500inject.lo rtlinject.lo \ 
    3333                 rt2570inject.lo airpinject.lo rt73inject.lo \ 
    34                  rt61inject.lo zd1211rwinject.lo d80211inject.lo \ 
     34                 rt61inject.lo zd1211rwinject.lo mac80211inject.lo \ 
    3535                 bcm43xxinject.lo tx80211.lo \ 
    3636                 lorcon_packasm.lo lorcon_forge.lo  
  • trunk/lorcon.3

    r161 r163  
    204204Indicates the Linux bcm43xx kernel drivers.  The string "bcm43xx" may be used to indicate the use of this driver. 
    205205.TP 
    206 .B INJ_D80211 
     206.B INJ_MAC80211 
    207207Generic 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. 
    208208.TP 
  • trunk/mac80211inject.c

    r157 r163  
    2525#ifdef SYS_LINUX 
    2626 
    27 #include "d80211inject.h" 
     27#include "mac80211inject.h" 
    2828#include "wtinject.h" 
    2929 
    30 int tx80211_d80211_init(struct tx80211 *in_tx) 
     30int tx80211_mac80211_init(struct tx80211 *in_tx) 
    3131{ 
    32         in_tx->capabilities = tx80211_d80211_capabilities(); 
     32        in_tx->capabilities = tx80211_mac80211_capabilities(); 
    3333        in_tx->open_callthrough = &wtinj_open; 
    3434        in_tx->close_callthrough = &wtinj_close; 
     
    3737        in_tx->getchan_callthrough = &wtinj_getchannel; 
    3838        in_tx->setchan_callthrough = &wtinj_setchannel; 
    39         in_tx->txpacket_callthrough = &tx80211_d80211_send; 
     39        in_tx->txpacket_callthrough = &tx80211_mac80211_send; 
    4040        in_tx->setfuncmode_callthrough = &wtinj_setfuncmode; 
    4141 
     
    4343} 
    4444 
    45 int tx80211_d80211_capabilities() 
     45int tx80211_mac80211_capabilities() 
    4646{ 
    4747        return (TX80211_CAP_SNIFF | TX80211_CAP_TRANSMIT | 
     
    5151} 
    5252 
    53 int tx80211_d80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt) 
     53int tx80211_mac80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt) 
    5454{ 
    5555        struct tx80211_packet mwng_pkt; 
  • trunk/mac80211inject.h

    r160 r163  
    1919*/ 
    2020 
    21 #ifndef __D80211INJECT_H__ 
    22 #define __D80211INJECT_H__ 
     21#ifndef __MAC80211INJECT_H__ 
     22#define __MAC80211INJECT_H__ 
    2323 
    2424#ifdef HAVE_CONFIG_H 
     
    5656#include "wtinject.h" 
    5757 
    58 int tx80211_d80211_init(struct tx80211 *in_tx); 
    59 int tx80211_d80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt); 
     58int tx80211_mac80211_init(struct tx80211 *in_tx); 
     59int tx80211_mac80211_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt); 
    6060 
    61 int tx80211_d80211_capabilities(); 
     61int tx80211_mac80211_capabilities(); 
    6262 
    6363#endif /* linux */ 
  • trunk/tx80211.c

    r157 r163  
    120120 
    121121        ret->cardnames[ret->num_cards] = strdup("rt2570"); 
    122         ret->descriptions[ret->num_cards] = strdup("Raylink 2570 802.11b"); 
     122        ret->descriptions[ret->num_cards] = strdup("Ralink 2570 802.11b"); 
    123123        ret->capabilities[ret->num_cards] = tx80211_rt2570_capabilities(); 
    124124        ret->num_cards++; 
    125125 
    126126        ret->cardnames[ret->num_cards] = strdup("rt2500"); 
    127         ret->descriptions[ret->num_cards] = strdup("Raylink 2500 802.11b"); 
     127        ret->descriptions[ret->num_cards] = strdup("Ralink 2500 802.11b"); 
    128128        ret->capabilities[ret->num_cards] = tx80211_rt2500_capabilities(); 
    129129        ret->num_cards++; 
    130130 
    131131        ret->cardnames[ret->num_cards] = strdup("rt73"); 
    132         ret->descriptions[ret->num_cards] = strdup("Raylink 73 802.11g USB"); 
     132        ret->descriptions[ret->num_cards] = strdup("Ralink 73 802.11g USB"); 
    133133        ret->capabilities[ret->num_cards] = tx80211_rt73_capabilities(); 
    134134        ret->num_cards++; 
    135135 
    136136        ret->cardnames[ret->num_cards] = strdup("rt61"); 
    137         ret->descriptions[ret->num_cards] = strdup("Raylink 61 pre-N PC Card"); 
     137        ret->descriptions[ret->num_cards] = strdup("Ralink 61 pre-N PC Card"); 
    138138        ret->capabilities[ret->num_cards] = tx80211_rt61_capabilities(); 
    139139        ret->num_cards++; 
     
    150150 
    151151        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(); 
    154159        ret->num_cards++; 
    155160 
    156161        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(); 
    159164        ret->num_cards++; 
    160165 
    161166        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 
    165217 
    166218#endif /* SYS_LINUX */ 
     
    244296                return INJ_BCM43XX; 
    245297 
    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; 
    250309 
    251310#endif /* SYS_LINUX */ 
     
    325384                break; 
    326385 
    327         case INJ_D80211: 
    328                 ret = tx80211_d80211_init(in_tx); 
     386        case INJ_MAC80211: 
     387                ret = tx80211_mac80211_init(in_tx); 
    329388                break; 
    330389 
  • trunk/tx80211.h

    r159 r163  
    224224#define INJ_ZD1211RW    13 
    225225#define INJ_BCM43XX     14 
    226 #define INJ_D80211              15 
     226#define INJ_MAC80211    15 
    227227/* 
    228228* No-one should test for INJ_MAX, test for INJ_NODRIVER instead