1. 29 1月, 2008 4 次提交
    • M
      mac80211: clean up rate selection · 1abbe498
      Mattias Nissler 提交于
      Move some code out of rc80211_simple since it's probably needed for all rate
      selection algorithms, and fix iwlwifi accordingly. While at it, clean up the
      rate_control_get_rate() interface.
      Signed-off-by: NStefano Brivio <stefano.brivio@polimi.it>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1abbe498
    • R
      mac80211: restructuring data Rx handlers · 76ee65bf
      Ron Rindjunsky 提交于
      This patch restructures the Rx handlers chain by incorporating previously
      handlers ieee80211_rx_h_802_1x_pae and ieee80211_rx_h_drop_unencrypted
      into ieee80211_rx_h_data, already in 802.3 form. this scheme follows more
      precisely after the IEEE802.11 data plane archituecture, and will prevent
      code duplication to IEEE8021.11n A-MSDU handler.
      
      added function:
       - ieee80211_data_to_8023: transfering 802.11 data frames to 802.3 frame
       - ieee80211_deliver_skb: delivering the 802.3 frames to upper stack
      eliminated handlers:
       - ieee80211_rx_h_drop_unencrypted: now function ieee80211_drop_unencrypted
       - ieee80211_rx_h_802_1x_pae: now function ieee80211_802_1x_pae
      changed handlers:
       - ieee80211_rx_h_data: now contains calls to four above function
      Signed-off-by: NRon Rindjunsky <ron.rindjunsky@intel.com>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      76ee65bf
    • Z
      mac80211: hardware scan rework · ece8eddd
      Zhu Yi 提交于
      The scan code in mac80211 makes the software scan assumption in various
      places. For example, we stop the Tx queue during a software scan so that
      all the Tx packets will be queued by the stack. We also drop frames not
      related to scan in the software scan process. But these are not true for
      hardware scan.
      
      Some wireless hardwares (for example iwl3945/4965) has the ability to
      perform the whole scan process by hardware and/or firmware. The hardware
      scan is relative powerful in that it tries to maintain normal network
      traffic while doing a scan in the background. Some drivers (i.e iwlwifi)
      do provide a way to tune the hardware scan parameters (for example if the
      STA is associated, what's the max time could the STA leave from the
      associated channel, how long the scans get suspended after returning to
      the service channel, etc). But basically this is transparent to the
      stack. mac80211 should not stop Tx queues or drop Rx packets during a
      hardware scan.
      
      This patch resolves the above problem by spliting the current scan
      indicator local->sta_scanning into local->sta_sw_scanning and
      local->sta_hw_scanning. It then changes the scan related code to be aware
      of hardware scan or software scan in various places. With this patch,
      iwlwifi performs much better in the scan-while-associated condition and
      disable_hw_scan=1 should never be required.
      
      Cc: Mohamed Abbas <mohamed.abbas@intel.com>
      Cc: Ben Cahill <ben.m.cahill@intel.com>
      Signed-off-by: NZhu Yi <yi.zhu@intel.com>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ece8eddd
    • J
      mac80211: remove more forgotten code · 0c884439
      Johannes Berg 提交于
      Hopefully that's the rest. Seems I didn't do a very thorough job
      removing the management interface.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0c884439
  2. 11 10月, 2007 31 次提交