1. 26 4月, 2011 2 次提交
    • P
      mwl8k: Add timestamp information for tx packets · 566875db
      Pradeep Nemavat 提交于
      Timestamp tx packets using a HW micro-second timer.
      This timestamp will be compared to the current timestamp
      in the hardware and if the difference is greater than 500ms,
      the packet will be dropped.
      Signed-off-by: NPradeep Nemavat <pnemavat@marvell.com>
      Signed-off-by: NNishant Sarmukadam <nishants@marvell.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      566875db
    • P
      mwl8k: Do not stop tx queues · 3a7dbc3b
      Pradeep Nemavat 提交于
      This is in preparation to support life time expiry of packets in the
      hardware to avoid head-of-line blocking where a slow client can
      hog a tx queue and affect the traffic to a faster client from the same
      queue. Time stamp the packets in driver to allow dropping them in the
      hardware if they are queued for more than 500ms.
      
      If queues are stopped, packets will be queued up outside the driver.
      Since we will be able to timestamp the packets only after they hit the
      driver, the timestamp will be less accurate since we cannot consider
      the time the packets spent in queues outside the driver. With this commit,
      to achieve accurate timestamping, the tx queues will not be stopped in
      normal conditions. The only scenarios where the queues will be stopped are
      when firmware commands are executing or if the interface is brought down.
      Now, we need to be prepared for a situation where packets hit the driver
      even after the tx queues are full. Drop all such packets in the driver itself.
      Signed-off-by: NPradeep Nemavat <pnemavat@marvell.com>
      Signed-off-by: NNishant Sarmukadam <nishants@marvell.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3a7dbc3b
  2. 14 4月, 2011 2 次提交
  3. 13 4月, 2011 1 次提交
  4. 08 4月, 2011 2 次提交
  5. 31 3月, 2011 9 次提交
  6. 10 3月, 2011 1 次提交
  7. 26 2月, 2011 1 次提交
    • J
      mac80211: make tx() operation return void · 7bb45683
      Johannes Berg 提交于
      The return value of the tx operation is commonly
      misused by drivers, leading to errors. All drivers
      will drop frames if they fail to TX the frame, and
      they must also properly manage the queues (if they
      didn't, mac80211 would already warn).
      
      Removing the ability for drivers to return a BUSY
      value also allows significant cleanups of the TX
      TX handling code in mac80211.
      
      Note that this also fixes a bug in ath9k_htc, the
      old "return -1" there was wrong.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: Sedat Dilek <sedat.dilek@googlemail.com> [ath5k]
      Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> [rt2x00]
      Acked-by: Larry Finger <Larry.Finger@lwfinger.net> [b43, rtl8187, rtlwifi]
      Acked-by: Luciano Coelho <coelho@ti.com> [wl12xx]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7bb45683
  8. 24 2月, 2011 3 次提交
  9. 22 1月, 2011 1 次提交
    • B
      cfg80211: Extend channel to frequency mapping for 802.11j · 59eb21a6
      Bruno Randolf 提交于
      Extend channel to frequency mapping for 802.11j Japan 4.9GHz band, according to
      IEEE802.11 section 17.3.8.3.2 and Annex J. Because there are now overlapping
      channel numbers in the 2GHz and 5GHz band we can't map from channel to
      frequency without knowing the band. This is no problem as in most contexts we
      know the band. In places where we don't know the band (and WEXT compatibility)
      we assume the 2GHz band for channels below 14.
      
      This patch does not implement all channel to frequency mappings defined in
      802.11, it's just an extension for 802.11j 20MHz channels. 5MHz and 10MHz
      channels as well as 802.11y channels have been omitted.
      
      The following drivers have been updated to reflect the API changes:
      iwl-3945, iwl-agn, iwmc3200wifi, libertas, mwl8k, rt2x00, wl1251, wl12xx.
      The drivers have been compile-tested only.
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NBrian Prodoehl <bprodoehl@gmail.com>
      Acked-by: NLuciano Coelho <coelho@ti.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      59eb21a6
  10. 20 1月, 2011 5 次提交
  11. 17 11月, 2010 7 次提交
  12. 16 11月, 2010 1 次提交
  13. 19 8月, 2010 1 次提交
  14. 30 7月, 2010 1 次提交
  15. 28 7月, 2010 1 次提交
  16. 21 7月, 2010 1 次提交
    • J
      mwl8k: correct/silence sparse warnings · b603742f
      John W. Linville 提交于
      drivers/net/wireless/mwl8k.c:1541:21: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/mwl8k.c:1541:21:    expected restricted __le16 [usertype] result
      drivers/net/wireless/mwl8k.c:1541:21:    got int
      drivers/net/wireless/mwl8k.c:1575:42:    expected unsigned short [unsigned] [usertype] cmd
      drivers/net/wireless/mwl8k.c:1575:42:    got restricted __le16 [usertype] code
      drivers/net/wireless/mwl8k.c:1587:50: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1587:50:    expected unsigned short [unsigned] [usertype] cmd
      drivers/net/wireless/mwl8k.c:1587:50:    got restricted __le16 [usertype] code
      drivers/net/wireless/mwl8k.c:1592:50: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1592:50:    expected unsigned short [unsigned] [usertype] cmd
      drivers/net/wireless/mwl8k.c:1592:50:    got restricted __le16 [usertype] code
      drivers/net/wireless/mwl8k.c:1845:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1845:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1845:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1848:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1848:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1848:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1851:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1851:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1851:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1854:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1854:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1854:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1857:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1857:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1857:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1860:27: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/mwl8k.c:1860:27:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/net/wireless/mwl8k.c:1860:27:    got restricted __le32 [usertype] <noident>
      drivers/net/wireless/mwl8k.c:3055:20: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/mwl8k.c:3055:20:    expected restricted __le16 [usertype] ht_caps
      drivers/net/wireless/mwl8k.c:3055:20:    got unsigned short [unsigned] [usertype] cap
      
      At least the last one looks like a real bug...
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Acked-by: NLennert Buytenhek <buytenh@wantstofly.org>
      b603742f
  17. 03 6月, 2010 1 次提交