Bug 956 - interface won't load with rf_switch OFF
: interface won't load with rf_switch OFF
Status: VERIFIED FIXED
: IPW3945
Driver Load
: 0.0.70
: All All
: P1 major
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2006-03-16 10:22 by
Modified: 2006-04-06 04:48 (History)


Attachments
fix rfkill (4.86 KB, patch)
2006-03-17 15:30, Mohamed Abbas
Details | Diff
this is the right patch for rfkill (5.01 KB, patch)
2006-03-17 15:49, Mohamed Abbas
Details | Diff
Modified load to allow RF kill trigger to be received. (4.00 KB, patch)
2006-03-20 11:11, James Ketrenos
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-03-16 10:22:12
Turned OFF the Radio with the "Hardware" button

abonilla@ubuntu:~$ sudo modprobe ipw3945
abonilla@ubuntu:~$ sudo ipw3945d
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 0.7.16
Intel PRO/Wireless 3945ABG Network Connection found at:
 /sys/bus/pci/drivers/ipw3945/0000:02:00.0
Daemon launched as pid 10645.  Exiting.
abonilla@ubuntu:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

abonilla@ubuntu:~$ sudo modprobe -r ipw3945
FATAL: Module ipw3945 is in use.
abonilla@ubuntu:~$ sudo ipw3945d --kill

Turned ON the Radio with the "Hardware" button

abonilla@ubuntu:~$ sudo modprobe -r ipw3945
abonilla@ubuntu:~$ sudo modprobe ipw3945
abonilla@ubuntu:~$ sudo ipw3945d
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 0.7.16
Intel PRO/Wireless 3945ABG Network Connection found at:
 /sys/bus/pci/drivers/ipw3945/0000:02:00.0
Daemon launched as pid 10697.  Exiting.
abonilla@ubuntu:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

eth1      unassociated  ESSID:off/any
          Mode:Managed  Channel=0  Access Point: Not-Associated
          Bit Rate=0 kb/s   Tx-Power:16 dBm
          Retry limit:15   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

abonilla@ubuntu:~$
------- Comment #1 From 2006-03-16 10:24:45 -------
It does notice the change on the rf_kill but it won't initially load if the
rf_kill is off.

abonilla@ubuntu:~$ sudo cat /sys/bus/pci/drivers/ipw3945/0000\:02\:00.0/rf_kill
Password:
0
abonilla@ubuntu:~$ sudo cat /sys/bus/pci/drivers/ipw3945/0000\:02\:00.0/rf_kill 2
abonilla@ubuntu:~$ sudo cat /sys/bus/pci/drivers/ipw3945/0000\:02\:00.0/rf_kill 0
------- Comment #2 From 2006-03-16 10:28:46 -------
It looks like the problem resides on: Line 1045

        if (priv->status & STATUS_RF_KILL_HW) {
                if ((cmd->meta.flags & CMD_WANT_SKB) && cmd->meta.u.skb) {
                        dev_kfree_skb_any(cmd->meta.u.skb);
                        cmd->meta.u.skb = NULL;
                }

                IPW_DEBUG_INFO("Command %s aborted: RF KILL Switch\n",
                               get_cmd_string(cmd->id));

                return -ECANCELED;
------- Comment #3 From 2006-03-17 15:30:34 -------
Created an attachment (id=719) [details]
fix rfkill

please apply against 0.70. the problem is in ipw_bg_rf_kill it wan not calling
ipw_down
------- Comment #4 From 2006-03-17 15:32:03 -------
ipw_bg_rf_kill has problem that was fixed on the attached patch, it wan not 
calling ipw_down.
------- Comment #5 From 2006-03-17 15:49:18 -------
Created an attachment (id=720) [details]
this is the right patch for rfkill

this is the right fix for 956. please apply against 0.70
------- Comment #6 From 2006-03-18 01:26:16 -------
Thanks for the patch. But, it does not solve the problem. Please let me know if
you find anything else.
------- Comment #7 From 2006-03-20 11:11:02 -------
Created an attachment (id=724) [details]
Modified load to allow RF kill trigger to be received.

Please try the attached patch against 0.0.70.
------- Comment #8 From 2006-03-20 12:39:23 -------
Patch merged for 0.0.71.

Marking as Fixed.
------- Comment #9 From 2006-04-06 04:48:28 -------
verify on 0.0.71