1. 26 Nov, 2008 6 commits
    • Vasanthakumar Thiagarajan's avatar
      ath9k: Fix panic while unregistering rfkill · 3fcdfb4b
      Vasanthakumar Thiagarajan authored
       [ 6133.670329] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
       [ 6133.672802] IP: [<ffffffffa030fcf6>] ieee80211_stop_queues+0x26/0x40 [mac80211]
       [ 6133.672802] PGD 759dc067 PUD 74f1d067 PMD 0
       [ 6133.672802] Oops: 0002 [#1] PREEMPT SMP
       [ 6133.672802] last sysfs file: /sys/class/backlight/acpi_video0/brightness
       [ 6133.672802] CPU 0
       [ 6133.672802] Modules linked in: ath9k(-) mac80211 pciehp pci_hotplug arc4 ecb joydev pcmcia ppdev lp ppp_generic psmouse sg pcspkr s]
       [ 6133.735830] Pid: 4445, comm: rmmod Tainted: G        W  2.6.28-rc5-wl #1
       [ 6133.735830] RIP: 0010:[<ffffffffa030fcf6>]  [<ffffffffa030fcf6>] ieee80211_stop_queues+0x26/0x40 [mac80211]
       [ 6133.735830] RSP: 0018:ffff88007d1efd10  EFLAGS: 00010246
       [ 6133.735830] RAX: 0000000000000000 RBX: ffff880074f41aa0 RCX: 0000000000000000
       [ 6133.735830] RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffff880074f40340
       [ 6133.735830] RBP: ffff880074990000 R08: 0000000000000000 R09: 000000000000224d
       [ 6133.735830] R10: 0000000000000000 R11: ffffffff8031dc70 R12: 0000000000000000
       [ 6133.735830] R13: 0000000000000001 R14: ffff880074f46c9c R15: 0000000000000000
       [ 6133.735830] FS:  00007f1e2e0bc6f0(0000) GS:ffffffff805e0b80(0000) knlGS:0000000000000000
       [ 6133.735830] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
       [ 6133.735830] CR2: 0000000000000010 CR3: 0000000075593000 CR4: 00000000000006e0
       [ 6133.735830] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
       [ 6133.735830] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
       [ 6133.735830] Process rmmod (pid: 4445, threadinfo ffff88007d1ee000, task ffff88007c0c8000)
       [ 6133.735830] Stack:
       [ 6133.735830]  ffffffffa034d583 ffff88007c7d9410 ffff88007c7d9410 ffff88007c7d9410
       [ 6133.735830]  ffffffff80481dab ffff880074f41aa0 00000000fffffff0 0000000000000000
       [ 6133.735830]  0000000000000001 0000000000000001 ffffffffa034d8a5 ffff88007c7d9400
       [ 6133.735830] Call Trace:
       [ 6133.735830]  [<ffffffffa034d583>] ? ath_radio_disable+0x33/0x150 [ath9k]
       [ 6133.735830]  [<ffffffff80481dab>] ? __mutex_lock_slowpath+0x20b/0x2a0
       [ 6133.735830]  [<ffffffffa034d8a5>] ? ath_sw_toggle_radio+0x65/0xa0 [ath9k]
       [ 6133.735830]  [<ffffffffa019d1f4>] ? rfkill_toggle_radio+0x74/0x140 [rfkill]
       [ 6133.735830]  [<ffffffffa019d597>] ? rfkill_remove_switch+0x67/0x80 [rfkill]
       [ 6133.735830]  [<ffffffffa019d955>] ? rfkill_unregister+0x25/0x50 [rfkill]
       [ 6133.735830]  [<ffffffffa034bf75>] ? ath_detach+0xf5/0x140 [ath9k]
       [ 6133.735830]  [<ffffffffa034bfe9>] ? ath_pci_remove+0x29/0x80 [ath9k]
       [ 6133.735830]  [<ffffffff8035263c>] ? pci_device_remove+0x2c/0x60
       [ 6133.735830]  [<ffffffff803c3829>] ? __device_release_driver+0x99/0x100
       [ 6133.735830]  [<ffffffff803c3950>] ? driver_detach+0xc0/0xd0
       [ 6133.735830]  [<ffffffff803c296e>] ? bus_remove_driver+0x8e/0xd0
       [ 6133.735830]  [<ffffffff80352916>] ? pci_unregister_driver+0x36/0xa0
       [ 6133.735830]  [<ffffffffa0356ad4>] ? exit_ath_pci+0x10/0x29 [ath9k]
       [ 6133.735830]  [<ffffffff8026bb1b>] ? sys_delete_module+0x1cb/0x2d0
       [ 6133.735830]  [<ffffffff802960d9>] ? do_munmap+0x349/0x390
       [ 6133.735830]  [<ffffffff80342d01>] ? __up_write+0x21/0x150
       [ 6133.735830]  [<ffffffff8020c45b>] ? system_call_fastpath+0x16/0x1b
       [ 6133.735830] Code: c3 0f 1f 40 00 0f b7 57 5e 0f b7 47 5c 01 c2 74 30 31 c9 66 90 48 8b 57 78 0f b7 c1 48 c1 e0 07 48 03 82 00 03 00
       [ 6133.735830] RIP  [<ffffffffa030fcf6>] ieee80211_stop_queues+0x26/0x40 [mac80211]
      Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      3fcdfb4b
    • Larry Finger's avatar
      rtl8187: Fix transmission count sent to mac80211 · 1548c86a
      Larry Finger authored
      In the commit entitled "mac80211/drivers: rewrite the rate control
      API", the meaning of the packet transmit count was changed from the
      number of retries to the total number.  In driver rtl8187, this change
      was missed.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Acked-by: default avatarHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Tested-by: default avatarHin-Tak Leung <htl10@users.sourceforge.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      1548c86a
    • Larry Finger's avatar
      mac80211: Fix pid rate-setting algorithm to allow rate changes · 1dc5a841
      Larry Finger authored
      In commit 9ea2c74 named "mac80211/drivers: rewrite the rate control API",
      the meaning of status.rates[i].count was changed from number of retries
      to total number of tries. As a result, the pid rate-setting algorithm fails
      because every packet appears to have needed a retransmit.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      1dc5a841
    • Ivo van Doorn's avatar
      rt2x00: Don't switch off LED on initialization · d507748a
      Ivo van Doorn authored
      When we switch off the LEDS during initialization
      we kill rt73usb from proper functioning. The immediate
      result after the first LED command are MCU failures
      and a complete breakdown of TX/RX.
      Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      d507748a
    • Andrey Borzenkov's avatar
      orinoco: indicate it is using dBm in wireless_stats and spy · f941f859
      Andrey Borzenkov authored
      Since WE7 /proc/net/wireless checks whether level and noise  are in dBm
      and shows them accordingly. Indicate that we return signal and noice
      levels in dBm.
      
      Before:
      Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
       face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
        eth1: 0000   65.  219.  165.       0      0    148     41      0        0
      
      After:
      Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
       face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
        eth1: 0000   65.  -37.  -91.       0      0      0      0      0        0
      
      While at it, replace raw numbers with appropriate macro.
      Signed-off-by: default avatarAndrey Borzenkov <arvidjaar@mail.ru>
      Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      f941f859
    • Luis R. Rodriguez's avatar
      mac80211: make Minstrel the default rate control algorithm · 8eb41c93
      Luis R. Rodriguez authored
      This makes minstrel the default rate control algorithm
      for mac80211. For more information see:
      
      http://wireless.kernel.org/en/developers/Documentation/mac80211/RateControl/minstrel
      
      If someone can come up with a better algorithm they get a prize
      (undisclosed).
      Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      8eb41c93
  2. 25 Nov, 2008 34 commits