Changeset 3696

Show
Ignore:
Timestamp:
06/04/08 10:09:17 (4 months ago)
Author:
proski
Message:

Fix support for Linux 2.6.26

Replace obsolete skb_append() with skb_queue_after(). Update
makefiles to deal with obj not being set and the module build time.

References: trunk@3602, trunk@3603, trunk@3605

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/branches/madwifi-0.9.4/Makefile

    r3061 r3696  
    4141# 
    4242 
    43 ifeq ($(obj),) 
    44 obj=    . 
    45 endif 
    46  
     43obj := $(firstword $(obj) $(SUBDIRS) .) 
    4744TOP = $(obj) 
    4845 
  • madwifi/branches/madwifi-0.9.4/ath/Makefile

    r2608 r3696  
    4141# 
    4242 
    43 ifeq ($(obj),) 
    44 obj=    . 
    45 endif 
    46  
     43obj := $(firstword $(obj) $(SUBDIRS) .) 
    4744TOP = $(obj)/.. 
    4845 
  • madwifi/branches/madwifi-0.9.4/ath_hal/Makefile

    r2608 r3696  
    4141# 
    4242 
    43 ifeq ($(obj),) 
    44 obj=    . 
    45 endif 
    46  
     43obj := $(firstword $(obj) $(SUBDIRS) .) 
    4744TOP = $(obj)/.. 
    4845 
  • madwifi/branches/madwifi-0.9.4/ath_rate/Makefile

    r3030 r3696  
    1 ifeq ($(obj),) 
    2 obj=    . 
    3 endif 
    4  
     1obj := $(firstword $(obj) $(SUBDIRS) .) 
    52TOP = $(obj)/.. 
    63 
  • madwifi/branches/madwifi-0.9.4/ath_rate/amrr/Makefile

    r2608 r3696  
    4141# Makefile for the Atheros Rate Control Support. 
    4242# 
    43 ifeq ($(obj),) 
    44 obj=    . 
    45 endif 
    46  
     43obj := $(firstword $(obj) $(SUBDIRS) .) 
    4744TOP = $(obj)/../.. 
    4845 
  • madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/Makefile

    r3030 r3696  
    3939# Makefile for the Atheros Rate Control Support. 
    4040# 
    41 ifeq ($(obj),) 
    42 obj=    . 
    43 endif 
    44  
     41obj := $(firstword $(obj) $(SUBDIRS) .) 
    4542TOP = $(obj)/../.. 
    4643 
  • madwifi/branches/madwifi-0.9.4/ath_rate/onoe/Makefile

    r2608 r3696  
    4141# Makefile for the Atheros Rate Control Support. 
    4242# 
    43 ifeq ($(obj),) 
    44 obj=    . 
    45 endif 
    46  
     43obj := $(firstword $(obj) $(SUBDIRS) .) 
    4744TOP = $(obj)/../.. 
    4845 
  • madwifi/branches/madwifi-0.9.4/ath_rate/sample/Makefile

    r2608 r3696  
    3939# Makefile for the Atheros Rate Control Support. 
    4040# 
    41 ifeq ($(obj),) 
    42 obj=    . 
    43 endif 
    44  
     41obj := $(firstword $(obj) $(SUBDIRS) .) 
    4542TOP = $(obj)/../.. 
    4643 
  • madwifi/branches/madwifi-0.9.4/include/compat.h

    r3051 r3696  
    176176#endif 
    177177 
     178/* __skb_append got a third parameter in 2.6.14 */ 
     179#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) 
     180#define __skb_queue_after(_list, _old, _new)    __skb_append(_old, _new) 
     181#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) 
     182#define __skb_queue_after(_list, _old, _new)    __skb_append(_old, _new, _list) 
     183#endif 
     184 
    178185#endif /* __KERNEL__ */ 
    179186 
  • madwifi/branches/madwifi-0.9.4/net80211/Makefile

    r2608 r3696  
    4040# Makefile for the 802.11 WLAN modules. 
    4141# 
    42 ifeq ($(obj),) 
    43 obj=    . 
    44 endif 
    45  
     42obj := $(firstword $(obj) $(SUBDIRS) .) 
    4643TOP = $(obj)/.. 
    4744# 
  • madwifi/branches/madwifi-0.9.4/net80211/ieee80211_linux.h

    r2696 r3696  
    239239#endif 
    240240 
    241 /* __skb_append got a third parameter in 2.6.14 */ 
    242 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) 
    243 #define __skb_append(a,b,c)     __skb_append(a,b) 
    244 #endif 
    245  
    246241/* 
    247242 * Per-node power-save queue definitions.  Beware of control 
     
    269264        (_qlen) = skb_queue_len(&(_ni)->ni_savedq);             \ 
    270265} while (0) 
    271 #define _IEEE80211_NODE_SAVEQ_ENQUEUE(_ni, _skb, _qlen, _age) do {
    272         struct sk_buff *tail = skb_peek_tail(&(_ni)->ni_savedq);
    273         if (tail != NULL) {                                     
    274                 _age -= M_AGE_GET(tail);                       
    275                 __skb_append(tail, _skb, &(_ni)->ni_savedq);  \ 
    276         } else {                                               
    277                 __skb_queue_head(&(_ni)->ni_savedq, _skb);     
    278         }                                                       
    279         M_AGE_SET(_skb, _age);                                 
    280         (_qlen) = skb_queue_len(&(_ni)->ni_savedq);             
     266#define _IEEE80211_NODE_SAVEQ_ENQUEUE(_ni, _skb, _qlen, _age) do {     
     267        struct sk_buff *tail = skb_peek_tail(&(_ni)->ni_savedq);       
     268        if (tail != NULL) {                                            
     269                _age -= M_AGE_GET(tail);                               
     270                __skb_queue_after(&(_ni)->ni_savedq, tail, _skb);     \ 
     271        } else {                                                       
     272                __skb_queue_head(&(_ni)->ni_savedq, _skb);             
     273        }                                                              
     274        M_AGE_SET(_skb, _age);                                         
     275        (_qlen) = skb_queue_len(&(_ni)->ni_savedq);                    
    281276} while (0) 
    282277 
  • madwifi/branches/madwifi-0.9.4/net80211/ieee80211_power.c

    r3302 r3696  
    238238        if (tail != NULL) { 
    239239                age -= M_AGE_GET(tail); 
    240                 __skb_append(tail, skb, &ni->ni_savedq); 
     240                __skb_queue_after(&ni->ni_savedq, tail, skb); 
    241241        } else 
    242242                __skb_queue_head(&ni->ni_savedq, skb);