1. 15 2月, 2013 32 次提交
  2. 13 2月, 2013 4 次提交
  3. 12 2月, 2013 4 次提交
    • E
      mac80211: allow driver to be stateless wrt. SMSP requests · 66d57570
      Emmanuel Grumbach 提交于
      Bail out if no update is made to the SMPS state. This
      allows the driver to avoid duplicating the state.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      66d57570
    • A
      nl80211: minor correction in sample wowlan mask calculation · b6a7bceb
      Amitkumar Karwar 提交于
      The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where xx indicates
      "don't care") should be represented by a pattern of twelve zero
      bytes, and a mask of "0xed,0x01", not "0xed,0x07".
      
      mask_len = (pat_len + 7) / 8 = (12 + 7) / 8 = 2
      Hence the mask will be of 2 bytes.
      Replace each valid byte in pattern by 1 and don't care byte by 0:
      10110111 1000 (0000)
      
      1st byte of pattern corresponds to lower order bit in first byte
      of mask. And 9th byte of pattern corresponds to lower order bit
      in second byte of mask. With this logic the mask will be
      11101101 00000001 = 0xed 0x01
      Signed-off-by: NAmitkumar Karwar <akarwar@marvell.com>
      Signed-off-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      b6a7bceb
    • S
      mac80211: Add flushes before going off-channel · 9c35d7d2
      Seth Forshee 提交于
      We've got a couple of races when enabling powersave with an AP for
      off-channel operation. The first is fairly simple. If we go off-channel
      before the nullfunc frame to enable PS is transmitted then it may not be
      received by the AP. Add a flush after enabling off-channel PS to prevent
      this from happening.
      
      The second race is a bit more subtle. If the driver supports QoS and has
      frames queued when the nullfunc frame is queued, those frames may get
      transmitted after the nullfunc frame. If PM is not set then the AP is
      being told that we've exited PS before we go off-channel and may try to
      deliver frames. To prevent this, add a flush after stopping the queues
      but before passing the nullfunc frame to the driver.
      Signed-off-by: NSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      9c35d7d2
    • S
      mac80211: Fix tx queue handling during scans · 6c17b77b
      Seth Forshee 提交于
      Scans currently work by stopping the netdev tx queues but leaving the
      mac80211 queues active. This stops the flow of incoming packets while
      still allowing mac80211 to transmit nullfunc and probe request frames to
      facilitate scanning. However, the driver may try to wake the mac80211
      queues while in this state, which will also wake the netdev queues.
      
      To prevent this, add a new queue stop reason,
      IEEE80211_QUEUE_STOP_REASON_OFFCHANNEL, to be used when stopping the tx
      queues for off-channel operation. This prevents the netdev queues from
      waking when a driver wakes the mac80211 queues.
      
      This also stops all frames from being transmitted, even those meant to
      be sent off-channel. Add a new tx control flag,
      IEEE80211_TX_CTL_OFFCHAN_TX_OK, which allows frames to be transmitted
      when the queues are stopped only for the off-channel stop reason. Update
      all locations transmitting off-channel frames to use this flag.
      Signed-off-by: NSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      6c17b77b