]> err.no Git - linux-2.6/commitdiff
Merge /spare/repo/netdev-2.6 branch 'ieee80211'
authorJeff Garzik <jgarzik@pobox.com>
Wed, 13 Jul 2005 23:11:44 +0000 (19:11 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 13 Jul 2005 23:11:44 +0000 (19:11 -0400)
1  2 
MAINTAINERS
drivers/net/wireless/airo.c
drivers/net/wireless/wavelan_cs.c
drivers/net/wireless/wavelan_cs.p.h
drivers/net/wireless/wl3501_cs.c

diff --combined MAINTAINERS
index f317cb42952f017755b9ef7517c6e09f35f4e2a9,5d014725901c0ea91b4b352211a8dbaf8e806301..423103e5d9557bb9857da24f2f20ca8e5dc86624
@@@ -370,6 -370,10 +370,10 @@@ W:       http://www.thekelleys.org.uk/atme
  W:    http://atmelwlandriver.sourceforge.net/
  S:    Maintained
  
+ AUDIT SUBSYSTEM
+ L:    linux-audit@redhat.com (subscribers-only)
+ S:    Maintained
  AX.25 NETWORK LAYER
  P:    Ralf Baechle
  M:    ralf@linux-mips.org
@@@ -987,13 -991,6 +991,13 @@@ M:       mike.miller@hp.co
  L:    iss_storagedev@hp.com
  S:    Supported
   
 +HOST AP DRIVER
 +P:    Jouni Malinen
 +M:    jkmaline@cc.hut.fi
 +L:    hostap@shmoo.com
 +W:    http://hostap.epitest.fi/
 +S:    Maintained
 +
  HP100:        Driver for HP 10/100 Mbit/s Voice Grade Network Adapter Series
  P:    Jaroslav Kysela
  M:    perex@suse.cz
@@@ -1243,7 -1240,7 +1247,7 @@@ S:      Maintaine
  
  IRDA SUBSYSTEM
  P:    Jean Tourrilhes
- L:    irda-users@lists.sourceforge.net
+ L:    irda-users@lists.sourceforge.net (subscribers-only)
  W:    http://irda.sourceforge.net/
  S:    Maintained
  
@@@ -1810,8 -1807,9 +1814,9 @@@ M:      greg@kroah.co
  S:    Maintained
  
  PCMCIA SUBSYSTEM
+ P:    Linux PCMCIA Team
  L:    http://lists.infradead.org/mailman/listinfo/linux-pcmcia
- S:    Unmaintained
+ S:    Maintained
  
  PCNET32 NETWORK DRIVER
  P:    Thomas Bogendörfer
@@@ -2168,7 -2166,7 +2173,7 @@@ UltraSPARC (sparc64)
  P:    David S. Miller
  M:    davem@davemloft.net
  P:    Eddie C. Dost
- M:    ecd@skynet.be
+ M:    ecd@brainaid.de
  P:    Jakub Jelinek
  M:    jj@sunsite.ms.mff.cuni.cz
  P:    Anton Blanchard
index 758b48ba65ce5737279587d8c060b7b93378d881,47f3c5d0203da70e394d82509ab69fdea3c06cfa..6110187668dc14c12cc080174b66f86d07475552
@@@ -1040,7 -1040,7 +1040,7 @@@ typedef struct 
        u16 status;
  } WifiCtlHdr;
  
 -WifiCtlHdr wifictlhdr8023 = {
 +static WifiCtlHdr wifictlhdr8023 = {
        .ctlhdr = {
                .ctl    = HOST_DONT_RLSE,
        }
@@@ -1111,13 -1111,13 +1111,13 @@@ static int airo_thread(void *data)
  static void timer_func( struct net_device *dev );
  static int airo_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
  #ifdef WIRELESS_EXT
 -struct iw_statistics *airo_get_wireless_stats (struct net_device *dev);
 +static struct iw_statistics *airo_get_wireless_stats (struct net_device *dev);
  static void airo_read_wireless_stats (struct airo_info *local);
  #endif /* WIRELESS_EXT */
  #ifdef CISCO_EXT
  static int readrids(struct net_device *dev, aironet_ioctl *comp);
  static int writerids(struct net_device *dev, aironet_ioctl *comp);
 -int flashcard(struct net_device *dev, aironet_ioctl *comp);
 +static int flashcard(struct net_device *dev, aironet_ioctl *comp);
  #endif /* CISCO_EXT */
  #ifdef MICSUPPORT
  static void micinit(struct airo_info *ai);
@@@ -1226,12 -1226,6 +1226,12 @@@ static int setup_proc_entry( struct net
  static int takedown_proc_entry( struct net_device *dev,
                                struct airo_info *apriv );
  
 +static int cmdreset(struct airo_info *ai);
 +static int setflashmode (struct airo_info *ai);
 +static int flashgchar(struct airo_info *ai,int matchbyte,int dwelltime);
 +static int flashputbuf(struct airo_info *ai);
 +static int flashrestart(struct airo_info *ai,struct net_device *dev);
 +
  #ifdef MICSUPPORT
  /***********************************************************************
   *                              MIC ROUTINES                           *
  
  static int RxSeqValid (struct airo_info *ai,miccntx *context,int mcast,u32 micSeq);
  static void MoveWindow(miccntx *context, u32 micSeq);
 -void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *);
 -void emmh32_init(emmh32_context *context);
 -void emmh32_update(emmh32_context *context, u8 *pOctets, int len);
 -void emmh32_final(emmh32_context *context, u8 digest[4]);
 +static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *);
 +static void emmh32_init(emmh32_context *context);
 +static void emmh32_update(emmh32_context *context, u8 *pOctets, int len);
 +static void emmh32_final(emmh32_context *context, u8 digest[4]);
 +static int flashpchar(struct airo_info *ai,int byte,int dwelltime);
  
  /* micinit - Initialize mic seed */
  
@@@ -1322,7 -1315,7 +1322,7 @@@ static int micsetup(struct airo_info *a
        return SUCCESS;
  }
  
 -char micsnap[]= {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
 +static char micsnap[] = {0xAA,0xAA,0x03,0x00,0x40,0x96,0x00,0x02};
  
  /*===========================================================================
   * Description: Mic a packet
@@@ -1577,7 -1570,7 +1577,7 @@@ static void MoveWindow(miccntx *context
  static unsigned char aes_counter[16];
  
  /* expand the key to fill the MMH coefficient array */
 -void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *tfm)
 +static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *tfm)
  {
    /* take the keying material, expand if necessary, truncate at 16-bytes */
    /* run through AES counter mode to generate context->coeff[] */
  }
  
  /* prepare for calculation of a new mic */
 -void emmh32_init(emmh32_context *context)
 +static void emmh32_init(emmh32_context *context)
  {
        /* prepare for new mic calculation */
        context->accum = 0;
  }
  
  /* add some bytes to the mic calculation */
 -void emmh32_update(emmh32_context *context, u8 *pOctets, int len)
 +static void emmh32_update(emmh32_context *context, u8 *pOctets, int len)
  {
        int     coeff_position, byte_position;
    
  static u32 mask32[4] = { 0x00000000L, 0xFF000000L, 0xFFFF0000L, 0xFFFFFF00L };
  
  /* calculate the mic */
 -void emmh32_final(emmh32_context *context, u8 digest[4])
 +static void emmh32_final(emmh32_context *context, u8 digest[4])
  {
        int     coeff_position, byte_position;
        u32     val;
@@@ -2262,7 -2255,7 +2262,7 @@@ static void airo_read_stats(struct airo
        ai->stats.rx_fifo_errors = vals[0];
  }
  
 -struct net_device_stats *airo_get_stats(struct net_device *dev)
 +static struct net_device_stats *airo_get_stats(struct net_device *dev)
  {
        struct airo_info *local =  dev->priv;
  
@@@ -2381,7 -2374,7 +2381,7 @@@ void stop_airo_card( struct net_device 
        /*
         * Clean out tx queue
         */
-       if (test_bit(FLAG_MPI, &ai->flags) && skb_queue_len (&ai->txq) > 0) {
+       if (test_bit(FLAG_MPI, &ai->flags) && !skb_queue_empty(&ai->txq)) {
                struct sk_buff *skb = NULL;
                for (;(skb = skb_dequeue(&ai->txq));)
                        dev_kfree_skb(skb);
@@@ -2421,7 -2414,7 +2421,7 @@@ EXPORT_SYMBOL(stop_airo_card)
  
  static int add_airo_dev( struct net_device *dev );
  
 -int wll_header_parse(struct sk_buff *skb, unsigned char *haddr)
 +static int wll_header_parse(struct sk_buff *skb, unsigned char *haddr)
  {
        memcpy(haddr, skb->mac.raw + 10, ETH_ALEN);
        return ETH_ALEN;
@@@ -2688,7 -2681,7 +2688,7 @@@ static struct net_device *init_wifidev(
        return dev;
  }
  
 -int reset_card( struct net_device *dev , int lock) {
 +static int reset_card( struct net_device *dev , int lock) {
        struct airo_info *ai = dev->priv;
  
        if (lock && down_interruptible(&ai->sem))
        return 0;
  }
  
 -struct net_device *_init_airo_card( unsigned short irq, int port,
 -                                  int is_pcmcia, struct pci_dev *pci,
 -                                  struct device *dmdev )
 +static struct net_device *_init_airo_card( unsigned short irq, int port,
 +                                         int is_pcmcia, struct pci_dev *pci,
 +                                         struct device *dmdev )
  {
        struct net_device *dev;
        struct airo_info *ai;
@@@ -3294,7 -3287,7 +3294,7 @@@ exitrx
                                if (status & EV_TXEXC)
                                        get_tx_error(apriv, -1);
                                spin_lock_irqsave(&apriv->aux_lock, flags);
-                               if (skb_queue_len (&apriv->txq)) {
+                               if (!skb_queue_empty(&apriv->txq)) {
                                        spin_unlock_irqrestore(&apriv->aux_lock,flags);
                                        mpi_send_packet (dev);
                                } else {
@@@ -7242,7 -7235,7 +7242,7 @@@ static void airo_read_wireless_stats(st
        local->wstats.miss.beacon = vals[34];
  }
  
 -struct iw_statistics *airo_get_wireless_stats(struct net_device *dev)
 +static struct iw_statistics *airo_get_wireless_stats(struct net_device *dev)
  {
        struct airo_info *local =  dev->priv;
  
@@@ -7457,8 -7450,14 +7457,8 @@@ static int writerids(struct net_device 
   * Flash command switch table
   */
  
 -int flashcard(struct net_device *dev, aironet_ioctl *comp) {
 +static int flashcard(struct net_device *dev, aironet_ioctl *comp) {
        int z;
 -      int cmdreset(struct airo_info *);
 -      int setflashmode(struct airo_info *);
 -      int flashgchar(struct airo_info *,int,int);
 -      int flashpchar(struct airo_info *,int,int);
 -      int flashputbuf(struct airo_info *);
 -      int flashrestart(struct airo_info *,struct net_device *);
  
        /* Only super-user can modify flash */
        if (!capable(CAP_NET_ADMIN))
   * card.
   */
  
 -int cmdreset(struct airo_info *ai) {
 +static int cmdreset(struct airo_info *ai) {
        disable_MAC(ai, 1);
  
        if(!waitbusy (ai)){
   * mode
   */
  
 -int setflashmode (struct airo_info *ai) {
 +static int setflashmode (struct airo_info *ai) {
        set_bit (FLAG_FLASHING, &ai->flags);
  
        OUT4500(ai, SWS0, FLASH_COMMAND);
   * x 50us for  echo .
   */
  
 -int flashpchar(struct airo_info *ai,int byte,int dwelltime) {
 +static int flashpchar(struct airo_info *ai,int byte,int dwelltime) {
        int echo;
        int waittime;
  
   * Get a character from the card matching matchbyte
   * Step 3)
   */
 -int flashgchar(struct airo_info *ai,int matchbyte,int dwelltime){
 +static int flashgchar(struct airo_info *ai,int matchbyte,int dwelltime){
        int           rchar;
        unsigned char rbyte=0;
  
   * send to the card
   */
  
 -int flashputbuf(struct airo_info *ai){
 +static int flashputbuf(struct airo_info *ai){
        int            nwords;
  
        /* Write stuff */
  /*
   *
   */
 -int flashrestart(struct airo_info *ai,struct net_device *dev){
 +static int flashrestart(struct airo_info *ai,struct net_device *dev){
        int    i,status;
  
        ssleep(1);                      /* Added 12/7/00 */
index fe54571bc1213ce85db29dd7b09742f6c19e3a8a,f6130a53b7966fe7f9ba5d267b120c9b4f08eff5..183c4732ef65ca0eb24e99c79d1b43197a3f8930
  /* Do *NOT* add other headers here, you are guaranteed to be wrong - Jean II */
  #include "wavelan_cs.p.h"             /* Private header */
  
 +#ifdef WAVELAN_ROAMING
 +static void wl_cell_expiry(unsigned long data);
 +static void wl_del_wavepoint(wavepoint_history *wavepoint, struct net_local *lp);
 +static void wv_nwid_filter(unsigned char mode, net_local *lp);
 +#endif  /*  WAVELAN_ROAMING  */
 +
  /************************* MISC SUBROUTINES **************************/
  /*
   * Subroutines which won't fit in one of the following category
@@@ -506,9 -500,9 +506,9 @@@ fee_write(u_long   base,   /* i/o port of t
  
  #ifdef WAVELAN_ROAMING        /* Conditional compile, see wavelan_cs.h */
  
 -unsigned char WAVELAN_BEACON_ADDRESS[]= {0x09,0x00,0x0e,0x20,0x03,0x00};
 +static unsigned char WAVELAN_BEACON_ADDRESS[] = {0x09,0x00,0x0e,0x20,0x03,0x00};
    
 -void wv_roam_init(struct net_device *dev)
 +static void wv_roam_init(struct net_device *dev)
  {
    net_local  *lp= netdev_priv(dev);
  
    printk(KERN_DEBUG "WaveLAN: Roaming enabled on device %s\n",dev->name);
  }
   
 -void wv_roam_cleanup(struct net_device *dev)
 +static void wv_roam_cleanup(struct net_device *dev)
  {
    wavepoint_history *ptr,*old_ptr;
    net_local *lp= netdev_priv(dev);
  }
  
  /* Enable/Disable NWID promiscuous mode on a given device */
 -void wv_nwid_filter(unsigned char mode, net_local *lp)
 +static void wv_nwid_filter(unsigned char mode, net_local *lp)
  {
    mm_t                  m;
    unsigned long         flags;
  }
  
  /* Find a record in the WavePoint table matching a given NWID */
 -wavepoint_history *wl_roam_check(unsigned short nwid, net_local *lp)
 +static wavepoint_history *wl_roam_check(unsigned short nwid, net_local *lp)
  {
    wavepoint_history   *ptr=lp->wavepoint_table.head;
    
  }
  
  /* Create a new wavepoint table entry */
 -wavepoint_history *wl_new_wavepoint(unsigned short nwid, unsigned char seq, net_local* lp)
 +static wavepoint_history *wl_new_wavepoint(unsigned short nwid, unsigned char seq, net_local* lp)
  {
    wavepoint_history *new_wavepoint;
  
  }
  
  /* Remove a wavepoint entry from WavePoint table */
 -void wl_del_wavepoint(wavepoint_history *wavepoint, struct net_local *lp)
 +static void wl_del_wavepoint(wavepoint_history *wavepoint, struct net_local *lp)
  {
    if(wavepoint==NULL)
      return;
  }
  
  /* Timer callback function - checks WavePoint table for stale entries */ 
 -void wl_cell_expiry(unsigned long data)
 +static void wl_cell_expiry(unsigned long data)
  {
    net_local *lp=(net_local *)data;
    wavepoint_history *wavepoint=lp->wavepoint_table.head,*old_point;
  }
  
  /* Update SNR history of a wavepoint */
 -void wl_update_history(wavepoint_history *wavepoint, unsigned char sigqual, unsigned char seq)        
 +static void wl_update_history(wavepoint_history *wavepoint, unsigned char sigqual, unsigned char seq) 
  {
    int i=0,num_missed=0,ptr=0;
    int average_fast=0,average_slow=0;
  }
  
  /* Perform a handover to a new WavePoint */
 -void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp)
 +static void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp)
  {
    kio_addr_t          base = lp->dev->base_addr;
    mm_t                  m;
@@@ -4690,12 -4684,6 +4690,6 @@@ wavelan_attach(void
  
    /* Register with Card Services */
    client_reg.dev_info = &dev_info;
-   client_reg.EventMask = 
-     CS_EVENT_REGISTRATION_COMPLETE |
-     CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
-     CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
-     CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
-   client_reg.event_handler = &wavelan_event;
    client_reg.Version = 0x0210;
    client_reg.event_callback_args.client_data = link;
  
@@@ -4910,6 -4898,7 +4904,7 @@@ static struct pcmcia_driver wavelan_dri
                .name   = "wavelan_cs",
        },
        .attach         = wavelan_attach,
+       .event          = wavelan_event,
        .detach         = wavelan_detach,
        .id_table       = wavelan_ids,
  };
index 4ac359ed5b511d8a2072296c2ac0601ef17e0f52,677ff71883cb826a1e81eafdc4b8d9e9befabfad..01d882be8790c1b9c8d2b81d71fcc64248210dad
  #include <pcmcia/cistpl.h>
  #include <pcmcia/cisreg.h>
  #include <pcmcia/ds.h>
- #include <pcmcia/version.h>
  
  /* Wavelan declarations */
  #include "i82593.h"   /* Definitions for the Intel chip */
@@@ -648,6 -647,23 +647,6 @@@ struct net_loca
    void __iomem *mem;
  };
  
 -/**************************** PROTOTYPES ****************************/
 -
 -#ifdef WAVELAN_ROAMING
 -/* ---------------------- ROAMING SUBROUTINES -----------------------*/
 -
 -wavepoint_history *wl_roam_check(unsigned short nwid, net_local *lp);
 -wavepoint_history *wl_new_wavepoint(unsigned short nwid, unsigned char seq, net_local *lp);
 -void wl_del_wavepoint(wavepoint_history *wavepoint, net_local *lp);
 -void wl_cell_expiry(unsigned long data);
 -wavepoint_history *wl_best_sigqual(int fast_search, net_local *lp);
 -void wl_update_history(wavepoint_history *wavepoint, unsigned char sigqual, unsigned char seq);
 -void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp);
 -void wv_nwid_filter(unsigned char mode, net_local *lp);
 -void wv_roam_init(struct net_device *dev);
 -void wv_roam_cleanup(struct net_device *dev);
 -#endif        /* WAVELAN_ROAMING */
 -
  /* ----------------- MODEM MANAGEMENT SUBROUTINES ----------------- */
  static inline u_char          /* data */
        hasr_read(u_long);      /* Read the host interface : base address */
index 77d8ac858036a6639ba0f87db260ce0b1937431e,dd902126d0183aec8f5439a834e4d8ba51b3b3cd..7cc5edbf6edee7f4c41bfd8503319801c19a208c
@@@ -49,7 -49,6 +49,6 @@@
  
  #include <net/iw_handler.h>
  
- #include <pcmcia/version.h>
  #include <pcmcia/cs_types.h>
  #include <pcmcia/cs.h>
  #include <pcmcia/cistpl.h>
@@@ -297,8 -296,7 +296,8 @@@ static int wl3501_get_flash_mac_addr(st
   *
   * Move 'size' bytes from PC to card. (Shouldn't be interrupted)
   */
 -void wl3501_set_to_wla(struct wl3501_card *this, u16 dest, void *src, int size)
 +static void wl3501_set_to_wla(struct wl3501_card *this, u16 dest, void *src,
 +                            int size)
  {
        /* switch to SRAM Page 0 */
        wl3501_switch_page(this, (dest & 0x8000) ? WL3501_BSS_SPAGE1 :
   *
   * Move 'size' bytes from card to PC. (Shouldn't be interrupted)
   */
 -void wl3501_get_from_wla(struct wl3501_card *this, u16 src, void *dest,
 -                       int size)
 +static void wl3501_get_from_wla(struct wl3501_card *this, u16 src, void *dest,
 +                              int size)
  {
        /* switch to SRAM Page 0 */
        wl3501_switch_page(this, (src & 0x8000) ? WL3501_BSS_SPAGE1 :
@@@ -1440,14 -1438,14 +1439,14 @@@ fail
        goto out;
  }
  
 -struct net_device_stats *wl3501_get_stats(struct net_device *dev)
 +static struct net_device_stats *wl3501_get_stats(struct net_device *dev)
  {
        struct wl3501_card *this = dev->priv;
  
        return &this->stats;
  }
  
 -struct iw_statistics *wl3501_get_wireless_stats(struct net_device *dev)
 +static struct iw_statistics *wl3501_get_wireless_stats(struct net_device *dev)
  {
        struct wl3501_card *this = dev->priv;
        struct iw_statistics *wstats = &this->wstats;
@@@ -2006,13 -2004,6 +2005,6 @@@ static dev_link_t *wl3501_attach(void
        link->next               = wl3501_dev_list;
        wl3501_dev_list          = link;
        client_reg.dev_info      = &wl3501_dev_info;
-       client_reg.EventMask     = CS_EVENT_CARD_INSERTION |
-                                  CS_EVENT_RESET_PHYSICAL |
-                                  CS_EVENT_CARD_RESET |
-                                  CS_EVENT_CARD_REMOVAL |
-                                  CS_EVENT_PM_SUSPEND |
-                                  CS_EVENT_PM_RESUME;
-       client_reg.event_handler = wl3501_event;
        client_reg.Version       = 0x0210;
        client_reg.event_callback_args.client_data = link;
        ret = pcmcia_register_client(&link->handle, &client_reg);
@@@ -2247,12 -2238,13 +2239,13 @@@ static struct pcmcia_device_id wl3501_i
  MODULE_DEVICE_TABLE(pcmcia, wl3501_ids);
  
  static struct pcmcia_driver wl3501_driver = {
-       .owner          = THIS_MODULE,
-       .drv            = {
-               .name   = "wl3501_cs",
+       .owner          = THIS_MODULE,
+       .drv            = {
+               .name   = "wl3501_cs",
        },
-       .attach         = wl3501_attach,
-       .detach         = wl3501_detach,
+       .attach         = wl3501_attach,
+       .event          = wl3501_event,
+       .detach         = wl3501_detach,
        .id_table       = wl3501_ids,
  };