Changeset 2651

Show
Ignore:
Timestamp:
08/12/07 02:39:09 (1 year ago)
Author:
mentor
Message:

Do not attempt to create a sysfs group for Linux < 2.6.17. Before this version a kobject's SysFS attributes are not initialised until rtnl_unlock() is called. This presents significant sequencing problems with our device initalisation system - so I'm giving up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/net80211/ieee80211_linux.c

    r2622 r2651  
    6161#include <net80211/ieee80211_monitor.h> 
    6262 
    63 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0
     63#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17
    6464#include <linux/device.h> 
    6565 
     
    103103        .attrs  = ieee80211_sysfs_attrs 
    104104}; 
    105 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */ 
     105#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */ 
    106106 
    107107/* 
     
    718718        char *devname = NULL; 
    719719        struct ieee80211_proc_entry *tmp = NULL; 
    720 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0
     720#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17
    721721        int ret; 
    722722 
     
    736736                return; 
    737737        } 
    738 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */ 
     738#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */ 
    739739 
    740740        space = 5 * sizeof(struct ctl_table) + sizeof(ieee80211_sysctl_template); 
     
    906906#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) 
    907907        sysfs_remove_group(&vap->iv_dev->dev.kobj, &ieee80211_attr_grp); 
    908 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0
     908#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17
    909909        sysfs_remove_group(&vap->iv_dev->class_dev.kobj, &ieee80211_attr_grp); 
    910910#endif