Changeset 3627

Show
Ignore:
Timestamp:
05/14/08 21:11:57 (3 months ago)
Author:
mentor
Message:

Whitespace for control statements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath/if_ath.c

    r3626 r3627  
    16911691        } 
    16921692 
    1693         if(sc->sc_hasintmit) { 
     1693        if (sc->sc_hasintmit) { 
    16941694                u_int32_t intmit_on = 0; 
    16951695                ath_hal_getintmit(sc->sc_ah, &intmit_on); 
     
    64706470                /* Update beacon RSSI statistics, (apply to "pure" STA only) 
    64716471                 * AND only for our AP's beacons */ 
    6472                 if(vap->iv_opmode == IEEE80211_M_STA &&  
     6472                if (vap->iv_opmode == IEEE80211_M_STA &&  
    64736473                   sc->sc_ic.ic_opmode == IEEE80211_M_STA &&  
    64746474                   ni == vap->iv_bss)  
     
    89668966 
    89678967        } 
    8968         else if(ath_hal_getrfgain(ah) == HAL_RFGAIN_READ_REQUESTED) { 
     8968        else if (ath_hal_getrfgain(ah) == HAL_RFGAIN_READ_REQUESTED) { 
    89698969                /* With current HAL, I've never seen this so I'm going to log it 
    89708970                 * as an error and see if it ever shows up with newer HAL. */ 
     
    1072310723                        switch ((long)ctl->extra2) { 
    1072410724                        case ATH_DISTANCE: 
    10725                                 if(val > 0) { 
     10725                                if (val > 0) { 
    1072610726                                        sc->sc_slottimeconf    = ath_distance2slottime(sc, val); 
    1072710727                                        sc->sc_acktimeoutconf  = ath_distance2timeout(sc, val); 
     
    1263212632{ 
    1263312633        struct ath_softc *sc = ic->ic_dev->priv; 
    12634         switch(param) { 
     12634        switch (param) { 
    1263512635        case IEEE80211_PARAM_DRAINTXQ: 
    1263612636                printk("Draining tx queue...\n"); 
     
    1266412664                { 
    1266512665                        int j; 
    12666                         for(j = 0; j < value; j++) { 
    12667                                 if(!ath_take_txbuf_mgmt(sc)) { 
     12666                        for (j = 0; j < value; j++) { 
     12667                                if (!ath_take_txbuf_mgmt(sc)) { 
    1266812668                                        printk("Leaked %d tx buffers (of the %d tx buffers requested).\n", j, value); 
    1266912669                                        return 0; 
     
    1275412754                                                av->av_bcbuf, context); 
    1275512755        } 
    12756         else if(dd == &sc->sc_txdma) { 
     12756        else if (dd == &sc->sc_txdma) { 
    1275712757                struct ath_buf *tbf = NULL; 
    1275812758 
     
    1284012840        int index; 
    1284112841        struct ath_buf *lostbf; 
    12842         for(index = 0; index < dd->dd_nbuf; index++) { 
     12842        for (index = 0; index < dd->dd_nbuf; index++) { 
    1284312843                if (!test_bit(index, dd_bufs_found)) { 
    1284412844                        lostbf = descdma_get_buffer(dd, index); 
     
    1289612896 
    1289712897        /* NB: We have all you base... */ 
    12898         for(i = 0; i < ARRAY_SIZE(descdma); i++) { 
     12898        for (i = 0; i < ARRAY_SIZE(descdma); i++) { 
    1289912899                printk("\n"); 
    1290012900                dd = descdma[i]; 
     
    1290312903                        dd_bufs_found = kzalloc(BITS_TO_LONGS(dd->dd_nbuf) *  
    1290412904                                                sizeof(unsigned long), GFP_KERNEL); 
    12905                         if(dd == &sc->sc_txdma) { 
     12905                        if (dd == &sc->sc_txdma) { 
    1290612906                                ath_scanbufs_in_buflist_locked(sc, dd, dd_bufs_found,  
    1290712907                                                               &sc->sc_txbuf, "free list"); 
     
    1291012910                                ath_scanbufs_in_all_nodetable_locked(sc, dd, dd_bufs_found, nt); 
    1291112911                        } 
    12912                         else if(dd == &sc->sc_rxdma) { 
     12912                        else if (dd == &sc->sc_rxdma) { 
    1291312913                                ath_scanbufs_in_buflist_locked(sc, dd, dd_bufs_found,  
    1291412914                                                               &sc->sc_rxbuf, "queue"); 
    1291512915                        } 
    12916                         else if(dd == &sc->sc_bdma) { 
     12916                        else if (dd == &sc->sc_bdma) { 
    1291712917                                ath_scanbufs_in_buflist_locked(sc, dd, dd_bufs_found,  
    1291812918                                                               &sc->sc_bbuf, "free list"); 
     
    1292012920                                ath_scanbufs_in_all_hwtxq_locked(sc, dd, dd_bufs_found); 
    1292112921                        } 
    12922                         else if(dd == &sc->sc_grppolldma) { 
     12922                        else if (dd == &sc->sc_grppolldma) { 
    1292312923                                ath_scanbufs_in_buflist_locked(sc, dd, dd_bufs_found,  
    1292412924                                                               &sc->sc_grppollbuf, "free list"); 
  • madwifi/trunk/ath/if_ath_hal_macros.h

    r3481 r3627  
    6060   ATH_HAL_LOCK_ASSERT(_sc);                                       \ 
    6161   spin_unlock_irqrestore(&(_sc)->sc_hal_lock, __sc_halLockflags); \ 
    62    } while(0) 
     62   } while (0) 
    6363#define ATH_HAL_UNLOCK_IRQ_EARLY(_sc) \ 
    6464   ATH_HAL_LOCK_ASSERT(_sc);                                       \ 
  • madwifi/trunk/ath/if_athvar.h

    r3620 r3627  
    388388        ATH_NODE_UAPSD_LOCK_CHECK(_an);                                      \ 
    389389        spin_lock(&(_an)->an_uapsd_lock);                                    \ 
    390 } while(0) 
     390} while (0) 
    391391#define ATH_NODE_UAPSD_UNLOCK_IRQ_INSIDE(_an) do {                           \ 
    392392        ATH_NODE_UAPSD_LOCK_ASSERT(_an);                                     \ 
     
    404404        if (spin_is_locked(&(_an)->an_uapsd_lock)) \ 
    405405                printk(KERN_DEBUG "%s:%d - about to block on uapsd lock!\n", __func__, __LINE__); \ 
    406 } while(0) 
     406} while (0) 
    407407#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    408408#define ATH_NODE_UAPSD_LOCK_CHECK(_an) 
     
    562562        ATH_TXQ_LOCK_CHECK(_tq);                                        \ 
    563563        spin_lock(&(_tq)->axq_lock);                                    \ 
    564 } while(0) 
     564} while (0) 
    565565#define ATH_TXQ_UNLOCK_IRQ_INSIDE(_tq) do {                             \ 
    566566        ATH_TXQ_LOCK_ASSERT(_tq);                                       \ 
    567567        spin_unlock(&(_tq)->axq_lock);                                  \ 
    568 } while(0) 
     568} while (0) 
    569569 
    570570#if (defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)) && defined(spin_is_locked) 
     
    575575        if (spin_is_locked(&(_tq)->axq_lock)) \ 
    576576                printk(KERN_DEBUG "%s:%d - about to block on txq lock!\n", __func__, __LINE__); \ 
    577 } while(0) 
     577} while (0) 
    578578#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    579579#define ATH_TXQ_LOCK_CHECK(_tq) 
     
    874874        if (spin_is_locked(&(_sc)->sc_txbuflock)) \ 
    875875                printk(KERN_DEBUG "%s:%d - about to block on txbuf lock!\n", __func__, __LINE__); \ 
    876 } while(0) 
     876} while (0) 
    877877#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    878878#define ATH_TXBUF_LOCK_CHECK(_sc) 
     
    905905        if (spin_is_locked(&(_sc)->sc_rxbuflock)) \ 
    906906                printk(KERN_DEBUG "%s:%d - about to block on rxbuf lock!\n", __func__, __LINE__); \ 
    907 } while(0) 
     907} while (0) 
    908908#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    909909#define ATH_RXBUF_LOCK_CHECK(_sc) 
     
    935935        if (spin_is_locked(&(_sc)->sc_bbuflock)) \ 
    936936                printk(KERN_DEBUG "%s:%d - about to block on bbuf lock!\n", __func__, __LINE__); \ 
    937 } while(0) 
     937} while (0) 
    938938#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    939939#define ATH_BBUF_LOCK_CHECK(_sc) 
     
    967967        if (spin_is_locked(&(_sc)->sc_grppollbuflock)) \ 
    968968                printk(KERN_DEBUG "%s:%d - about to block on grppollbuf lock!\n", __func__, __LINE__); \ 
    969 } while(0) 
     969} while (0) 
    970970#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    971971#define ATH_GBUF_LOCK_CHECK(_sc) 
  • madwifi/trunk/ath_hal/ah_os.c

    r3601 r3627  
    881881{ 
    882882#ifdef AH_DEBUG 
    883         switch(ath_hal_debug) 
    884         { 
     883        switch (ath_hal_debug) { 
    885884        case HAL_DEBUG_OFF: 
    886885                break; 
  • madwifi/trunk/include/compat.h

    r3625 r3627  
    182182#define skb_tail_pointer(_skb) ((_skb)->tail) 
    183183#define skb_set_network_header(_skb, _offset) \ 
    184         do { (_skb)->nh.raw = (_skb)->data + (_offset); } while(0) 
     184        do { (_skb)->nh.raw = (_skb)->data + (_offset); } while (0) 
    185185#define skb_reset_network_header(_skb) \ 
    186         do { (_skb)->nh.raw = (_skb)->data; } while(0) 
     186        do { (_skb)->nh.raw = (_skb)->data; } while (0) 
    187187#define skb_mac_header(_skb) ((_skb)->mac.raw) 
    188188#define skb_reset_mac_header(_skb) \ 
    189         do { (_skb)->mac.raw = (_skb)->data; } while(0) 
     189        do { (_skb)->mac.raw = (_skb)->data; } while (0) 
    190190#endif 
    191191 
  • madwifi/trunk/net80211/ieee80211_beacon.c

    r3499 r3627  
    530530                                skb_put(skb, sizeof(*csa_ie)); 
    531531                                len_changed = 1; 
    532                         } else if(csa_ie->csa_count) 
     532                        } else if (csa_ie->csa_count) 
    533533                                csa_ie->csa_count--; 
    534534                         
  • madwifi/trunk/net80211/ieee80211_linux.h

    r3618 r3627  
    146146        if (spin_is_locked(&(_ic)->ic_comlock)) \ 
    147147                printk("%s:%d - about to block on ieee80211com lock!\n", __func__, __LINE__); \ 
    148 } while(0) 
     148} while (0) 
    149149#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    150150#define IEEE80211_LOCK_CHECK(_ic) 
     
    175175        if (spin_is_locked(&(_ic)->ic_vapslock)) \ 
    176176                printk("%s:%d - about to block on ieee80211com_vaps lock!\n", __func__, __LINE__); \ 
    177 } while(0) 
     177} while (0) 
    178178#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    179179#define IEEE80211_VAPS_LOCK_CHECK(_ic) 
     
    204204        IEEE80211_NODE_LOCK_CHECK(_ni);         \ 
    205205        spin_lock(&(_ni)->ni_nodelock); 
    206 } while(0) 
     206} while (0) 
    207207#define IEEE80211_NODE_UNLOCK_IRQ_INSIDE(_tq) do { \ 
    208208        IEEE80211_NODE_LOCK_ASSERT(_ni); \ 
     
    221221        if (spin_is_locked(&(_ni)->ni_nodelock)) \ 
    222222                printk("%s:%d - about to block on node lock!\n", __func__, __LINE__); \ 
    223 } while(0) 
     223} while (0) 
    224224#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    225225#define IEEE80211_NODE_LOCK_CHECK(_ni) 
     
    295295        ACL_LOCK_ASSERT(_as);                   \ 
    296296        spin_unlock(&(_as)->as_lock);           \ 
    297 } while(0) 
     297} while (0) 
    298298#define ACL_UNLOCK_EARLY(_as)                   \ 
    299299        ACL_LOCK_ASSERT(_as);                   \ 
     
    307307        if (spin_is_locked(&(_as)->as_lock)) \ 
    308308                printk("%s:%d - about to block on ACL lock!\n", __func__, __LINE__); \ 
    309 } while(0) 
     309} while (0) 
    310310#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    311311#define ACL_LOCK_CHECK(_as) 
     
    336336        IEEE80211_NODE_SAVEQ_LOCK_CHECK(_ni);                   \ 
    337337        spin_lock(&(_ni)->ni_savedq.lock);                      \ 
    338 } while(0) 
     338} while (0) 
    339339#define IEEE80211_NODE_SAVEQ_UNLOCK_IRQ_INSIDE(_ni) do {        \ 
    340340        IEEE80211_NODE_SAVEQ_LOCK_ASSERT(_ni);                  \ 
    341341        spin_unlock(&(_ni)->ni_savedq.lock);                    \ 
    342 } while(0) 
     342} while (0) 
    343343#define IEEE80211_NODE_SAVEQ_UNLOCK_IRQ_EARLY(_ni)              \ 
    344344        IEEE80211_NODE_SAVEQ_LOCK_ASSERT(_ni);                  \ 
     
    353353        if (spin_is_locked(&(_ni)->ni_savedq.lock)) \ 
    354354                printk("%s:%d - about to block on node saveq lock!\n", __func__, __LINE__); \ 
    355 } while(0) 
     355} while (0) 
    356356#else /* #if (defined(ATH_DEBUG_SPINLOCKS)) */ 
    357357#define IEEE80211_NODE_SAVEQ_LOCK_CHECK(_ni) 
  • madwifi/trunk/net80211/ieee80211_proto.c

    r3484 r3627  
    976976        if (IS_RUNNING(ic->ic_dev)) { 
    977977                if (vap->iv_opmode == IEEE80211_M_STA) { 
    978                         if(ic->ic_roaming != IEEE80211_ROAMING_MANUAL) { 
     978                        if (ic->ic_roaming != IEEE80211_ROAMING_MANUAL) { 
    979979                                /* Try to be intelligent about clocking the  
    980980                                 * state machine.  If we're currently in RUN  
     
    17641764                switch (dstate) { 
    17651765                case IEEE80211_S_RUN: 
    1766                         if(vap->iv_opmode == IEEE80211_M_MONITOR ||  
    1767                            vap->iv_opmode == IEEE80211_M_WDS || 
    1768                            vap->iv_opmode == IEEE80211_M_HOSTAP) { 
     1766                        if (vap->iv_opmode == IEEE80211_M_MONITOR ||  
     1767                            vap->iv_opmode == IEEE80211_M_WDS || 
     1768                            vap->iv_opmode == IEEE80211_M_HOSTAP) { 
    17691769                                IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,  
    17701770                                                "%s: Jumping directly to RUN " 
     
    19031903                                                tmpvap->iv_flags_ext &=  
    19041904                                                        ~IEEE80211_FEXT_SCAN_PENDING; 
    1905                                                 if(tmpvap->iv_state !=  
     1905                                                if (tmpvap->iv_state !=  
    19061906                                                                IEEE80211_S_RUN) { 
    19071907                                                        tmpvap->iv_newstate(tmpvap,  
    19081908                                                                        IEEE80211_S_RUN, 0); 
    1909                                                 } else if(tmpvap->iv_opmode ==  
     1909                                                } else if (tmpvap->iv_opmode ==  
    19101910                                                                IEEE80211_M_HOSTAP) { 
    19111911                                                        /* Force other AP through  
  • madwifi/trunk/net80211/ieee80211_scan.c

    r3488 r3627  
    10541054                /* Search for the first channel with no radar detected */ 
    10551055                int n = 0; 
    1056                 for(n = 0; n < ic->ic_nchans; n++) { 
     1056                for (n = 0; n < ic->ic_nchans; n++) { 
    10571057                        if (0 == (ic->ic_channels[n].ic_flags &  
    10581058                                                IEEE80211_CHAN_RADAR)) { 
  • madwifi/trunk/net80211/ieee80211_scan_ap.c

    r3532 r3627  
    840840 
    841841                /* Verify mode matches any fixed mode specified */ 
    842                 if((c->chan->ic_flags & as->as_required_mode) !=  
     842                if ((c->chan->ic_flags & as->as_required_mode) !=  
    843843                                as->as_required_mode) 
    844844                        continue;