diff --git a/ath/if_ath_pci.h b/ath/if_ath_pci.h index d15cf00..0263a68 100644 --- a/ath/if_ath_pci.h +++ b/ath/if_ath_pci.h @@ -50,8 +50,8 @@ #define PCI_RESTORE_STATE(a,b) pci_restore_state(a) #else #define bus_dma_sync_single pci_dma_sync_single -#define PCI_SAVE_STATE(a,b) pci_save_state(a,b) -#define PCI_RESTORE_STATE(a,b) pci_restore_state(a,b) +#define PCI_SAVE_STATE(a,b) pci_save_state(a, b) +#define PCI_RESTORE_STATE(a,b) pci_restore_state(a, b) #endif #define bus_alloc_consistent pci_alloc_consistent diff --git a/net80211/ieee80211_linux.h b/net80211/ieee80211_linux.h index c71f6c0..1d420d1 100644 --- a/net80211/ieee80211_linux.h +++ b/net80211/ieee80211_linux.h @@ -88,7 +88,7 @@ set_quality(struct iw_quality *iq, u_int rssi, int noise) #include #ifdef DECLARE_TASKLET /* native tasklets */ #define IEEE80211_TQ_STRUCT tasklet_struct -#define IEEE80211_INIT_TQUEUE(a,b,c) tasklet_init((a),(b),(unsigned long)(c)) +#define IEEE80211_INIT_TQUEUE(a,b,c) tasklet_init((a), (b), (unsigned long)(c)) #define IEEE80211_SCHEDULE_TQUEUE(a) tasklet_schedule((a)) #define IEEE80211_CANCEL_TQUEUE(a) if (!in_interrupt()) tasklet_kill((a)) typedef unsigned long IEEE80211_TQUEUE_ARG; @@ -106,7 +106,7 @@ typedef void *IEEE80211_TQUEUE_ARG; #define tasklet_disable(t) do { (void) t; local_bh_disable(); } while (0) #define tasklet_enable(t) do { (void) t; local_bh_enable(); } while (0) /* XXX: not supporting cancel in old kernels! */ -#define IEEE80211_CANCEL_TQUEUE(a) ((a),0) +#define IEEE80211_CANCEL_TQUEUE(a) ((a), 0) #endif /* !DECLARE_TASKLET */ #define IEEE80211_RESCHEDULE schedule @@ -137,7 +137,7 @@ typedef spinlock_t ieee80211com_lock_t; #if (defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)) && defined(spin_is_locked) #define IEEE80211_LOCK_ASSERT(_ic) \ - KASSERT(spin_is_locked(&(_ic)->ic_comlock),("ieee80211com not locked!")) + KASSERT(spin_is_locked(&(_ic)->ic_comlock), ("ieee80211com not locked!")) #else #define IEEE80211_LOCK_ASSERT(_ic) #endif @@ -254,7 +254,7 @@ typedef spinlock_t acl_lock_t; /* __skb_append got a third parameter in 2.6.14 */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) -#define __skb_append(a,b,c) __skb_append(a,b) +#define __skb_append(a,b,c) __skb_append(a, b) #endif /* @@ -410,7 +410,7 @@ extern const char *ether_sprintf(const u_int8_t *); * Queue write-arounds and support routines. */ extern struct sk_buff *ieee80211_getmgtframe(u_int8_t **frm, u_int pktlen); -#define IF_ENQUEUE(_q,_skb) skb_queue_tail(_q,_skb) +#define IF_ENQUEUE(_q,_skb) skb_queue_tail(_q, _skb) #define IF_DEQUEUE(_q,_skb) (_skb = skb_dequeue(_q)) #define _IF_QLEN(_q) skb_queue_len(_q) #define IF_DRAIN(_q) skb_queue_drain(_q) diff --git a/net80211/ieee80211_power.c b/net80211/ieee80211_power.c index b2d0360..12bbfe8 100644 --- a/net80211/ieee80211_power.c +++ b/net80211/ieee80211_power.c @@ -82,7 +82,7 @@ ieee80211_power_latevattach(struct ieee80211vap *vap) * know adhoc mode doesn't support ATIM yet... */ if (vap->iv_opmode == IEEE80211_M_HOSTAP) { - vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(u_int8_t); + vap->iv_tim_len = howmany(vap->iv_max_aid, 8) * sizeof(u_int8_t); MALLOC(vap->iv_tim_bitmap, u_int8_t *, vap->iv_tim_len, M_DEVBUF, M_NOWAIT | M_ZERO); if (vap->iv_tim_bitmap == NULL) { diff --git a/net80211/if_media.h b/net80211/if_media.h index 107b2fa..22e0564 100644 --- a/net80211/if_media.h +++ b/net80211/if_media.h @@ -367,9 +367,9 @@ struct ifmedia_description { #define IFM_SUBTYPE_TOKENRING_OPTION_DESCRIPTIONS { \ { IFM_TOK_ETR, "EarlyTokenRelease" }, \ { IFM_TOK_SRCRT, "SourceRouting" }, \ - { IFM_TOK_ALLR, "AllRoutes" }, \ - { IFM_TOK_DTR, "Dedicated" }, \ - { IFM_TOK_CLASSIC,"Classic" }, \ + { IFM_TOK_ALLR, "AllRoutes" }, \ + { IFM_TOK_DTR, "Dedicated" }, \ + { IFM_TOK_CLASSIC, "Classic" }, \ { IFM_TOK_AUTO, " " }, \ { 0, NULL }, \ }