#538: wlanunit <-> ifr_name linkage not valid
------------------------------------+---------------------------------------
      Reporter:  [EMAIL PROTECTED]  |       Owner:  mrenzmann                   
                       
          Type:  enhancement        |      Status:  assigned                    
                       
      Priority:  major              |   Milestone:  version 0.9.x - progressive 
release candidate phase
     Component:  madwifi: other     |     Version:  trunk                       
                       
    Resolution:                     |    Keywords:                              
                       
Patch_attached:  1                  |  
------------------------------------+---------------------------------------
Comment (by kelmo):

 I think that the "error" variable is bogus:

 {{{
   CC [M]  /home/kel/src/modules/madwifi-ng/net80211/ieee80211_wireless.o
 cc1: warnings being treated as errors
 /home/kel/src/modules/madwifi-ng/net80211/ieee80211_wireless.c: In
 function 'ieee80211_ioctl_create_vap':
 /home/kel/src/modules/madwifi-ng/net80211/ieee80211_wireless.c:4897:
 warning: unused variable 'error'
 /home/kel/src/modules/madwifi-ng/net80211/ieee80211_wireless.c: In
 function 'ieee80211_create_vap':
 /home/kel/src/modules/madwifi-ng/net80211/ieee80211_wireless.c:4930:
 warning: unused variable 'error'
 make[6]: *** [/home/kel/src/modules/madwifi-
 ng/net80211/ieee80211_wireless.o] Error 1
 make[5]: *** [_module_/home/kel/src/modules/madwifi-ng/net80211] Error 2
 make[5]: Leaving directory `/home/kel/src/linux-2.6.17-rc3-kel-4'
 make[4]: *** [all] Error 2
 }}}

 After compiling successfully, the new modules were loaded without any
 problem, i destroyed the autocreated ath0, and attempted to create a new
 VAP:

 {{{
 # strace wlanconfig ath0 create wlandev wifi0 wlanmode sta
 execve("/sbin/wlanconfig", ["wlanconfig", "ath0", "create", "wlandev",
 "wifi0", "wlanmode", "sta"], [/* 37 vars */]) = 0
 uname({sys="Linux", node="KELSLAP", ...}) = 0
 brk(0)                                  = 0x804d000
 access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
 directory)
 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0xa7fc2000
 access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
 directory)
 open("/etc/ld.so.cache", O_RDONLY)      = 3
 fstat64(3, {st_mode=S_IFREG|0644, st_size=81747, ...}) = 0
 mmap2(NULL, 81747, PROT_READ, MAP_PRIVATE, 3, 0) = 0xa7fae000
 close(3)                                = 0
 access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
 directory)
 open("/lib/tls/libc.so.6", O_RDONLY)    = 3
 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260O\1"..., 512)
 = 512
 fstat64(3, {st_mode=S_IFREG|0755, st_size=1270928, ...}) = 0
 mmap2(NULL, 1276892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
 = 0xa7e76000
 mmap2(0xa7fa4000, 32768, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e) = 0xa7fa4000
 mmap2(0xa7fac000, 7132, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7fac000
 close(3)                                = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0xa7e75000
 mprotect(0xa7fa4000, 20480, PROT_READ)  = 0
 set_thread_area({entry_number:-1 -> 6, base_addr:0xa7e758e0,
 limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
 limit_in_pages:1, seg_not_present:0, useable:1}) = 0
 munmap(0xa7fae000, 81747)               = 0
 brk(0)                                  = 0x804d000
 brk(0x806e000)                          = 0x806e000
 open("/proc/net/dev", O_RDONLY)         = 3
 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0xa7fc1000
 read(3, "Inter-|   Receive               "..., 1024) = 938
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 <SNIP>
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 read(3, "", 1024)                       = 0
 ...
 }}}

 Loop-da-Loop

 Kel.

-- 
Ticket URL: <http://madwifi.org/ticket/538>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity

Reply via email to