1. 16 5月, 2012 9 次提交
  2. 09 5月, 2012 29 次提交
  3. 03 5月, 2012 2 次提交
    • E
      iwlwifi: fix skb truesize underestimation · ed90542b
      Eric Dumazet 提交于
      By default, iwlwifi uses order-1 pages (8 KB) to store incoming frames,
      but doesnt say so in skb->truesize.
      
      This makes very possible to exhaust kernel memory since these skb evade
      normal socket memory accounting.
      
      As struct ieee80211_hdr is going to be pulled before calling IP stack,
      there is no need to use dev_alloc_skb() to reserve NET_SKB_PAD bytes.
      alloc_skb() is ok in this driver, allowing more tailroom.
      
      Pull beginning of frame in skb header, in the hope we can reuse order-1
      pages in the driver immediately for small frames and reduce their
      truesize to the minimum (linear skbs)
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ed90542b
    • R
      Revert "ath9k_hw: Fix incorrect spur_freq_sd for AR9003" · 9d1ceac5
      Rajkumar Manoharan 提交于
      This reverts commit a844adfd.
      The commit a844adfd is degrading rx sensitivity of lower rate in
      HT40 mode and it is confirmed that reverting the change is
      improving rx sensitivity.
      
      spur_freq_sd (for self-corr in AGC) is defined with respect to the
      center of each 20MHz channel while spur_phase_delta (for self-corr
      in Rx and spur data filter) is defined with respect to the center
      of current RF channel.
      
      So in short, we need to subtract spur_freq_sd (for self-corr in AGC)
      by the offset between the center of primary20 and the center of RF
      channel in SW. This offset could be +/10 MHz for dynamic 40.
      
      Cc: Madhan Jaganathan <madhanj@qca.qualcomm.com>
      Signed-off-by: NKai Shi <kaishi@qca.qualcomm.com>
      Signed-off-by: NRajkumar Manoharan <rmanohar@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9d1ceac5