1. 25 7月, 2009 2 次提交
  2. 11 7月, 2009 3 次提交
  3. 08 7月, 2009 1 次提交
    • V
      ath9k: Fix leak in tx descriptor · cbfe89c6
      Vasanthakumar Thiagarajan 提交于
      When we reclaim the tx desc, we always assume that the
      last desc is a holding desc, which is not true, and skip it.
      If the tx queue is drained during channel change, internal
      reset and etc, the last descriptor may not be the holding
      descriptor and we fail to reclaim them. This results in the
      following two issues.
      
      1. Tx stuck - We drop all the frames coming from upper layer
      due to shortage in tx desc.
      
      2. Crash - If we fail to reclaim a tx descriptor, we miss to
      update the tx BA window with the seq number of the frame
      associated to that desc, which, at some point, result in
      the following crash due to an assert failure in ath_tx_addto_baw().
      
      This patch fixes these two issues.
      
       kernel BUG at ../drivers/net/wireless/ath/ath9k/xmit.c:180!
      [155064.304164] invalid opcode: 0000 [#1] SMP
       Call Trace:
        [<fbc6d83b>] ? ath9k_tx+0xeb/0x160 [ath9k]
        [<fbbc9591>]  ipv6? __ieee80211_tx+0x41/0x120 [mac80211]
        [<fbbcb5ae>] ?  aes_i586ieee80211_master_start_xmit+0x28e/0x560 [mac80211]
        [<c037e501>]  aes_generic? _spin_lock_irqsave+0x31/0x40
        [<c02f347b>] ? dev_hard_start_xmit+0x16b/0x1c0
        [<c03058b5>] ? __qdisc_run+0x1b5/0x200
        [<fbbcda5a>] ?  af_packetieee80211_select_queue+0xa/0x100 [mac80211]
        [<c02f53b7>] ?  i915dev_queue_xmit+0x2e7/0x3f0
        [<fbbc9b49>] ? ieee80211_subif_start_xmit+0x369/0x7a0 [mac80211]
        [<c031bc35>] ? ip_output+0x55/0xb0
        [<c02e0188>] ? show_memcpy_count+0x18/0x60
        [<c02eb186>] ? __kfree_skb+0x36/0x90
        [<c02f2202>] ?  binfmt_miscdev_queue_xmit_nit+0xd2/0x110
        [<c02f347b>] ? dev_hard_start_xmit+0x16b/0x1c0
        [<c03058b5>] ? __qdisc_run+0x1b5/0x200
        [<c033bca7>] ?  scoarp_create+0x57/0x2a0
        [<c02f53b7>] ?  bridgedev_queue_xmit+0x2e7/0x3f0
        [<c03034a0>] ? eth_header+0x0/0xc0
        [<c033b95f>]  stp? arp_xmit+0x5f/0x70
        [<c033bf4f>] ? arp_send+0x5f/0x70
        [<c033c8f5>]  bnep? arp_solicit+0x105/0x210
        [<c02fa5aa>] ? neigh_timer_handler+0x19a/0x390
        [<c013bf88>] ? run_timer_softirq+0x138/0x210
        [<c02fa410>] ?  ppdevneigh_timer_handler+0x0/0x390
        [<c02fa410>] ? neigh_timer_handler+0x0/0x390
      Signed-off-by: NVasanthakumar Thiagarajan <vasanth@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      cbfe89c6
  4. 11 6月, 2009 1 次提交
  5. 21 5月, 2009 2 次提交
  6. 07 5月, 2009 2 次提交
    • L
      ath9k: make private driver rate tables const · 4f0fc7c3
      Luis R. Rodriguez 提交于
      On x86 this allows us to do the following small savings:
      shave off 23 % off of the module's data, and
      shave off 6  % off of the module's text.
      
      We save 456 bytes, for those counting.
      
      $ size ath9k.ko
         text    data     bss     dec     hex filename
       250794    3628    1600  256022   3e816 ath9k.ko
      $ size ath9k-old.ko
         text    data     bss     dec     hex filename
       239114   15308    1600  256022   3e816 ath9k-old.ko
      
      $ du -b ath9k.ko
      4034244 ath9k.ko
      $ du -b ath9k-old.ko
      4033788 ath9k-old.ko
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4f0fc7c3
    • J
      mac80211: clean up beacon interval settings · 57c4d7b4
      Johannes Berg 提交于
      We currently have two beacon interval configuration knobs:
      hw.conf.beacon_int and vif.bss_info.beacon_int. This is
      rather confusing, even though the former is used when we
      beacon ourselves and the latter when we are associated to
      an AP.
      
      This just deprecates the hw.conf.beacon_int setting in favour
      of always using vif.bss_info.beacon_int. Since it touches all
      the beaconing IBSS code anyway, we can also add support for
      the cfg80211 IBSS beacon interval configuration easily.
      
      NOTE: The hw.conf.beacon_int setting is retained for now due
            to drivers still using it -- I couldn't untangle all
            drivers, some are updated in this patch.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      57c4d7b4
  7. 23 4月, 2009 5 次提交
  8. 28 3月, 2009 5 次提交
  9. 17 3月, 2009 2 次提交
  10. 06 3月, 2009 2 次提交
  11. 28 2月, 2009 2 次提交
  12. 14 2月, 2009 4 次提交
  13. 12 2月, 2009 1 次提交
  14. 10 2月, 2009 2 次提交
    • S
      ath9k: Handle mac80211's RC flags for MCS rates · c89424df
      Sujith 提交于
      mac80211 notifies the RC algorithm if RTS/CTS and short preamble
      are needed. The RC flags for MCS rates are currently not handled
      by mac80211, and ath9k's RC doesn't set the flags either. Fix this.
      
      Also, set the rts_cts_rate_idx inside the RC algorithm.
      Signed-off-by: NSujith <Sujith.Manoharan@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c89424df
    • S
      ath9k: Fix lockdep warning · d22b0022
      Sujith 提交于
      This patch fixes the lockdep warning shown below, and also
      initializes the starting sequence number when starting a TX
      aggregation session.
      
       =============================================
       [ INFO: possible recursive locking detected ]
       2.6.29-rc2-wl #21
       ---------------------------------------------
       swapper/0 is trying to acquire lock:
        (_xmit_IEEE80211#2){-+..}, at: [<ffffffff80456d71>] __qdisc_run+0x221/0x290
      
       but task is already holding lock:
        (_xmit_IEEE80211#2){-+..}, at: [<ffffffff80456d71>] __qdisc_run+0x221/0x290
      
       other info that might help us debug this:
       7 locks held by swapper/0:
        #0:  (rcu_read_lock){..--}, at: [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
        #1:  (_xmit_ETHER#2){-+..}, at: [<ffffffff80456d71>] __qdisc_run+0x221/0x290
        #2:  (rcu_read_lock){..--}, at: [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
        #3:  (_xmit_IEEE80211#2){-+..}, at: [<ffffffff80456d71>] __qdisc_run+0x221/0x290
        #4:  (rcu_read_lock){..--}, at: [<ffffffffa0154919>] ieee80211_master_start_xmit+0x219/0x6c0 [mac80211]
        #5:  (rcu_read_lock){..--}, at: [<ffffffffa01427c6>] ieee80211_start_tx_ba_session+0x66/0x4e0 [mac80211]
        #6:  (rcu_read_lock){..--}, at: [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
      
       stack backtrace:
       Pid: 0, comm: swapper Not tainted 2.6.29-rc2-wl #21
       Call Trace:
        <IRQ>  [<ffffffff8026c329>] __lock_acquire+0x1be9/0x1c40
        [<ffffffff80442af1>] dev_queue_xmit+0xe1/0x620
        [<ffffffff8026a8cc>] __lock_acquire+0x18c/0x1c40
        [<ffffffff8026c3d5>] lock_acquire+0x55/0x70
        [<ffffffff80456d71>] __qdisc_run+0x221/0x290
        [<ffffffff804dbeb9>] _spin_lock+0x39/0x50
        [<ffffffff80456d71>] __qdisc_run+0x221/0x290
        [<ffffffff804dbd2f>] _spin_unlock+0x1f/0x50
        [<ffffffff80456d71>] __qdisc_run+0x221/0x290
        [<ffffffff80442d18>] dev_queue_xmit+0x308/0x620
        [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
        [<ffffffffa0142a63>] ieee80211_start_tx_ba_session+0x303/0x4e0 [mac80211]
        [<ffffffffa01427c6>] ieee80211_start_tx_ba_session+0x66/0x4e0 [mac80211]
        [<ffffffffa0149dae>] rate_control_get_rate+0xae/0xc0 [mac80211]
        [<ffffffffa01526b5>] invoke_tx_handlers+0x655/0x1000 [mac80211]
        [<ffffffff802699fd>] mark_held_locks+0x4d/0x90
        [<ffffffff804dbcf5>] _spin_unlock_irqrestore+0x65/0x80
        [<ffffffffa0151aaa>] __ieee80211_tx_prepare+0x16a/0x310 [mac80211]
        [<ffffffffa0151adc>] __ieee80211_tx_prepare+0x19c/0x310 [mac80211]
        [<ffffffff80439cc2>] pskb_expand_head+0x112/0x190
        [<ffffffffa0154986>] ieee80211_master_start_xmit+0x286/0x6c0 [mac80211]
        [<ffffffffa0154919>] ieee80211_master_start_xmit+0x219/0x6c0 [mac80211]
        [<ffffffff8026a8cc>] __lock_acquire+0x18c/0x1c40
        [<ffffffff80456d8e>] __qdisc_run+0x23e/0x290
        [<ffffffff80442d18>] dev_queue_xmit+0x308/0x620
        [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
        [<ffffffffa0154221>] ieee80211_subif_start_xmit+0x4a1/0x980 [mac80211]
        [<ffffffffa0153f18>] ieee80211_subif_start_xmit+0x198/0x980 [mac80211]
        [<ffffffff80456d8e>] __qdisc_run+0x23e/0x290
        [<ffffffff80442d18>] dev_queue_xmit+0x308/0x620
        [<ffffffff80442a63>] dev_queue_xmit+0x53/0x620
        [<ffffffffa028ecfd>] ip6_output+0x62d/0x1230 [ipv6]
        [<ffffffff8024ca00>] __mod_timer+0xb0/0xd0
        [<ffffffffa02ad25a>] mld_sendpack+0x3fa/0x4a0 [ipv6]
        [<ffffffffa02ace60>] mld_sendpack+0x0/0x4a0 [ipv6]
        [<ffffffffa02adf90>] mld_ifc_timer_expire+0x0/0x340 [ipv6]
        [<ffffffffa02ae219>] mld_ifc_timer_expire+0x289/0x340 [ipv6]
        [<ffffffffa02adf90>] mld_ifc_timer_expire+0x0/0x340 [ipv6]
        [<ffffffff8024c097>] run_timer_softirq+0x147/0x220
        [<ffffffff802473fb>] __do_softirq+0x9b/0x180
        [<ffffffff80265516>] tick_dev_program_event+0x36/0xb0
        [<ffffffff8020d77c>] call_softirq+0x1c/0x30
        [<ffffffff8020f2c5>] do_softirq+0x65/0xb0
        [<ffffffff80246ebd>] irq_exit+0x9d/0xc0
        [<ffffffff80221db6>] smp_apic_timer_interrupt+0x86/0xd0
        [<ffffffff8020d1b3>] apic_timer_interrupt+0x13/0x20
      Signed-off-by: NSujith <Sujith.Manoharan@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d22b0022
  15. 31 1月, 2009 1 次提交
  16. 30 1月, 2009 5 次提交