SpeedStream 1022 is not working on Ubuntu 9.04, kernel 2.6.28-14-generic

Bug #408673 reported by sahoo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-wlan-ng (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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);
                }
................
sahoo@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
#

sahoo@sahoo-desktop:~/Documents/wlan-packages$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
sahoo@sahoo-desktop:~/Documents/wlan-packages$ sudo modprobe prism2_usb prism2_doreset=1
sahoo@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
..........
sahoo@sahoo-desktop:~/Documents/wlan-packages$ sudo wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
message=lnxreq_ifstate
  ifstate=enable
  resultcode=implementation_failure

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The driver is included in the kernel, so you are not supposed to build it yourself. Any particular reason you are doing this?

Changed in linux-wlan-ng (Ubuntu):
status: New → Incomplete
Revision history for this message
sahoo (sahoo) wrote : Re: [Bug 408673] Re: SpeedStream 1022 is not working on Ubuntu 9.04, kernel 2.6.28-14-generic
Download full text (3.2 KiB)

The included driver didn't work.
Thats why I started doing this.

On Mon, Nov 9, 2009 at 12:54 AM, Tormod Volden <email address hidden>wrote:

> The driver is included in the kernel, so you are not supposed to build
> it yourself. Any particular reason you are doing this?
>
> ** Changed in: linux-wlan-ng (Ubuntu)
> Status: New => Incomplete
>
> --
> 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 direct subscriber
> of the bug.
>
> Status in “linux-wlan-ng” package in Ubuntu: Incomplete
>
> Bug description:
> 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);
> }
> ................
> sahoo@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
> #
>
> sahoo@sahoo-desktop:~/Documents/wlan-packages$ lsb_release -rd
> Description: Ubuntu 9.04
> Release: 9.04
> sahoo@sahoo-desktop:~/Documents/wlan-packages$ sudo modprobe prism2_usb
> prism2_doreset=1
> sahoo@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
> ..........
> sahoo@sahoo-desktop:~/Documents/wlan-packages$ sudo wlanctl-ng wlan0
> lnxreq_ifstate ifstate=enable
> mes...

Read more...

Revision history for this message
Tormod Volden (tormodvolden) wrote :

You may update the bug description to explain what the original issue is and the steps you have done to diagnose it. You only said you changed the code and it segfaults. What happens with the original driver? Please attach the full dmesg output.

Which change did you do to the code? Did it help?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in linux-wlan-ng (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.