1. 07 11月, 2008 6 次提交
    • B
      ath5k: correct handling of rx status fields · c7930339
      Bob Copeland 提交于
      ath5k_rx_status fields rs_antenna and rs_more are u8s, but we
      were setting them with bitwise ANDs of 32-bit values.
      
      As a consequence, jumbo frames would not be discarded as intended.
      Then, because the hw rate value of such frames is zero, and, since
      "ath5k: rates cleanup", we do not fall back to the basic rate, such
      packets would trigger the following WARN_ON:
      
      ------------[ cut here ]------------
      WARNING: at net/mac80211/rx.c:2192 __ieee80211_rx+0x4d/0x57e [mac80211]()
      Modules linked in: ath5k af_packet sha256_generic aes_i586 aes_generic cbc loop i915 drm binfmt_misc acpi_cpufreq fan container nls_utf8 hfsplus dm_crypt dm_mod kvm_intel kvm fuse sbp2 snd_hda_intel snd_pcm_oss snd_pcm snd_mixer_oss snd_seq_dummy snd_seq_oss arc4 joydev hid_apple ecb snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device usbhid appletouch mac80211 sky2 snd ehci_hcd ohci1394 bitrev crc32 sr_mod cdrom rtc sg uhci_hcd snd_page_alloc cfg80211 ieee1394 thermal ac battery processor button evdev unix [last unloaded: ath5k]
      Pid: 0, comm: swapper Tainted: G        W  2.6.28-rc2-wl #14
      Call Trace:
       [<c0123d1e>] warn_on_slowpath+0x41/0x5b
       [<c012005d>] ? sched_debug_show+0x31e/0x9c6
       [<c012489f>] ? vprintk+0x369/0x389
       [<c0309539>] ? _spin_unlock_irqrestore+0x54/0x58
       [<c011cd8f>] ? try_to_wake_up+0x14f/0x15a
       [<f81918cb>] __ieee80211_rx+0x4d/0x57e [mac80211]
       [<f828872a>] ath5k_tasklet_rx+0x5a1/0x5e4 [ath5k]
       [<c013b9cd>] ? clockevents_program_event+0xd4/0xe3
       [<c01283a9>] tasklet_action+0x94/0xfd
       [<c0127d19>] __do_softirq+0x8c/0x13e
       [<c0127e04>] do_softirq+0x39/0x55
       [<c0128082>] irq_exit+0x46/0x85
       [<c010576c>] do_IRQ+0x9a/0xb2
       [<c010461c>] common_interrupt+0x28/0x30
       [<f80e934a>] ? acpi_idle_enter_bm+0x2ad/0x31b [processor]
       [<c02976bf>] cpuidle_idle_call+0x65/0x9a
       [<c010262c>] cpu_idle+0x76/0xa6
       [<c02fb402>] rest_init+0x62/0x64
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c7930339
    • D
      zd1211rw: Add 2 device IDs · 0feec9df
      Daniel Drake 提交于
      07fa/1196
      Bewan BWIFI-USB54AR: Tested by night1308, this device is a ZD1211B with
      an AL2230S radio.
      
      0ace/b215
      HP 802.11abg: Tested by Robert Philippe
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0feec9df
    • J
      Fix logic error in rfkill_check_duplicity · 4a9d9167
      Jonathan McDowell 提交于
      > I'll have a prod at why the [hso] rfkill stuff isn't working next
      
      Ok, I believe this is due to the addition of rfkill_check_duplicity in
      rfkill and the fact that test_bit actually returns a negative value
      rather than the postive one expected (which is of course equally true).
      So when the second WLAN device (the hso device, with the EEE PC WLAN
      being the first) comes along rfkill_check_duplicity returns a negative
      value and so rfkill_register returns an error. Patch below fixes this
      for me.
      Signed-Off-By: NJonathan McDowell <noodles@earth.li>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4a9d9167
    • J
      iwlagn: avoid sleep in softirq context · 964d2777
      John W. Linville 提交于
      __ieee80211_tasklet_handler -> __ieee80211_rx ->
      	__ieee80211_rx_handle_packet -> ieee80211_invoke_rx_handlers ->
      	ieee80211_rx_h_decrypt -> ieee80211_crypto_tkip_decrypt ->
      	ieee80211_tkip_decrypt_data -> iwl4965_mac_update_tkip_key ->
      	iwl_scan_cancel_timeout -> msleep
      
      Ooops!
      
      Avoid the sleep by changing iwl_scan_cancel_timeout with
      iwl_scan_cancel and simply returning on failure if the scan persists.
      This will cause hardware decryption to fail and we'll handle a few more
      frames with software decryption.
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      964d2777
    • M
      iwlwifi: clear scanning bits upon failure · 502c12e1
      Mohamed Abbas 提交于
      In iwl_bg_request_scan function, if we could not send a
      scan command it will go to done.
      In done it does the right thing to call mac80211 with
      scan complete, but the problem is STATUS_SCAN_HW is still
      set causing any future scan to fail. Fix by clearing the scanning status
      bits if scan fails.
      Signed-off-by: NMohamed Abbas <mohamed.abbas@intel.com>
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      502c12e1
    • J
      Revert "ath5k: honor FIF_BCN_PRBRESP_PROMISC in STA mode" · 934f6c3f
      John W. Linville 提交于
      Unfortunately, the result was that mac80211 didn't see all the beacons
      it actually wanted to see.  This caused lost associations.
      
      Hopefully we can revisit this when mac80211 is less greedy about seeing
      beacons directly...
      
      This reverts commit 06327906.
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      934f6c3f
  2. 04 11月, 2008 9 次提交
  3. 03 11月, 2008 4 次提交
  4. 02 11月, 2008 5 次提交
  5. 01 11月, 2008 1 次提交
    • A
      key: fix setkey(8) policy set breakage · 920da692
      Alexey Dobriyan 提交于
      Steps to reproduce:
      
      	#/usr/sbin/setkey -f
      	flush;
      	spdflush;
      
      	add 192.168.0.42 192.168.0.1 ah 24500 -A hmac-md5 "1234567890123456";
      	add 192.168.0.42 192.168.0.1 esp 24501 -E 3des-cbc "123456789012123456789012";
      
      	spdadd 192.168.0.42 192.168.0.1 any -P out ipsec
      		esp/transport//require
      		ah/transport//require;
      
      setkey: invalid keymsg length
      
      Policy dump will bail out with the same message after that.
      
      -recv(4, "\2\16\0\0\32\0\3\0\0\0\0\0\37\r\0\0\3\0\5\0\377 \0\0\2\0\0\0\300\250\0*\0"..., 32768, 0) = 208
      +recv(4, "\2\16\0\0\36\0\3\0\0\0\0\0H\t\0\0\3\0\5\0\377 \0\0\2\0\0\0\300\250\0*\0"..., 32768, 0) = 208
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      920da692
  6. 31 10月, 2008 15 次提交