Public bug reported:

Binary package hint: linux-wlan-ng


I compiled linux-wlan-ng from the svn repository.
It produced segfaults after loading the module prism2_usb.

I changes following file:
src/p80211/p80211netdev.c 

in function wlan_setup:

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) )
        dev = alloc_netdev(0,"wlan%d",ether_setup);
#else
        dev = kmalloc(sizeof(netdevice_t), GFP_ATOMIC);
#endif
        if ( dev == NULL ) {
                WLAN_LOG_ERROR("Failed to alloc netdev.\n");
                result = 1;
        } else {
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) )
                memset( dev, 0, sizeof(netdevice_t));
                ether_setup(dev);
#endif
.....
                if (dev->_tx == NULL) {
                  WLAN_LOG_ERROR("null pointer netif_stop_queue\n");
                  result = 1;
                }
                else {
                  netif_stop_queue(dev);
                }
................
sa...@sahoo-desktop:~/Documents/wlan-packages/linux-wlan-ng$ lsusb 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 067c:1022 Efficient Networks, Inc. Siemens SpeedStream 
1022 802.11b Adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

#svn co svn://svn.shaftnet.org/linux-wlan-ng/trunk linux-wlan-ng
#cd linux-wlan-ng
#make config
## edit files
## Fix segfaults bugs
#make all
#sudo make install

# Put USB
# blacklist prism2_usb because it segfaults and hangs 
# /etc/modprobe.d/blacklist-wlan.conf
#

sa...@sahoo-desktop:~/Documents/wlan-packages$ lsb_release -rd
Description:    Ubuntu 9.04
Release:        9.04
sa...@sahoo-desktop:~/Documents/wlan-packages$ sudo modprobe prism2_usb 
prism2_doreset=1
sa...@sahoo-desktop:~/Documents/wlan-packages$ dmesg | less
............
[ 5139.896109] usb 4-2: reset full speed USB device using uhci_hcd and address 2
[ 5141.057340] hfa384x_usbctlx_complete_sync: CTLX[1] error: state(Request 
failed)
[ 5143.061376] hfa384x_usbctlx_complete_sync: CTLX[1] error: state(Request 
failed)
[ 5143.061392] hfa384x_drvr_start: cmd_initialize() failed on two attempts, 
results -5 and -5
[ 5143.062355] prism2sta_ifstate: hfa384x_drvr_start() failed,result=-5
[ 5143.062453] usbcore: registered new interface driver prism2_usb
..........
sa...@sahoo-desktop:~/Documents/wlan-packages$ sudo wlanctl-ng wlan0 
lnxreq_ifstate ifstate=enable
message=lnxreq_ifstate
  ifstate=enable
  resultcode=implementation_failure

** Affects: linux-wlan-ng (Ubuntu)
     Importance: Undecided
         Status: New

-- 
SpeedStream 1022 is not working on Ubuntu 9.04, kernel 2.6.28-14-generic
https://bugs.launchpad.net/bugs/408673
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to