1. 03 10月, 2014 4 次提交
  2. 27 9月, 2014 1 次提交
  3. 16 9月, 2014 3 次提交
  4. 12 9月, 2014 5 次提交
  5. 10 9月, 2014 5 次提交
    • S
      ath9k: Fix MCC scanning · 367b341e
      Sujith Manoharan 提交于
      Scanning is curently broken when two channel contexts
      are active. For example in a P2P-GO/STA setup, the
      offchannel timer allows HZ / 10 to elapse before initiating
      a switch to the next scan channel from the current operating
      channel, which in this case would be the P2P-GO context.
      
      But, the channel context timer might decide to switch
      to the STA context when an SWBA comes early and a beacon
      is sent out. Since pending offchannel requests are processed
      in EVENT_BEACON_PREPARE, this causes inconsistent scanning.
      
      Fix this by making sure that a context switch happens
      before processing the pending offchannel request. This
      also makes sure that active channel contexts will always
      have higher priority than offchannel operations and the
      scan sequence looks like this:
      
      p2p-go, sta, p2p-go, offchannel, p2p-go, sta, p2p-go, offchannel,.....
      
      The oper-channel is p2p-go, so the STA context has to
      switch to p2p-go again before switching offchannel.
      Signed-off-by: NSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      367b341e
    • S
      ath9k: Fix offchannel operation · da0162f3
      Sujith Manoharan 提交于
      When multiple channel contexts are active, an offchannel
      request will not be handled immediately, but will be
      queued to be handled later. But, currently, the channel definition
      is not copied to the local offchannel state. This
      breaks operation like scanning when MCC is active.
      
      Fix this by storing the offchannel parameters properly.
      Signed-off-by: NSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      da0162f3
    • S
      ath9k: Add CTWindow support · fdcf1bd4
      Sujith Manoharan 提交于
      Since CTWindow can be used for improving discoverability,
      fill this field in the NoA Attribute properly.
      Signed-off-by: NSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      fdcf1bd4
    • S
      ath9k: Fix offchannel duration calculation · bb628eb9
      Sujith Manoharan 提交于
      Currently, different units are used for handling
      sc->offchannel.duration. In scan mode, it contains jiffies and in RoC
      mode, milliseconds is used. This causes confusion since in
      ath_chanctx_switch(), TU_TO_USEC is used to determine the offchannel
      duration, resulting in incorrect values. Fix this by using jiffies in
      both modes.
      Signed-off-by: NSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      bb628eb9
    • S
      ath9k: Fix NoA start time calculation · bd81533d
      Sujith Manoharan 提交于
      The start time field in the NoA attribute needs to be
      updated based on the TSF timer when an absence notification
      is sent by the P2P GO. When two channel contexts are active,
      continuous, cyclic NoA is announced by setting the count value to 255,
      but the start time is updated only once, for one beacon and
      the same value is sent in all subsequent beacons, even
      though the timestamp keeps moving.
      
      Fix this by removing the check for 'periodic_noa_duration'
      and assign the interface's start_time/duration values directly
      when there is more than one active context.
      Signed-off-by: NSujith Manoharan <c_manoha@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      bd81533d
  6. 29 8月, 2014 22 次提交