1. 21 5月, 2009 1 次提交
  2. 07 5月, 2009 7 次提交
    • N
      ath5k: Implement antenna control · 2bed03eb
      Nick Kossifidis 提交于
      * Add code to support the various antenna scenarios supported by hw
      
       * For now hardcode the default scenario (single or dual omnis with
       tx/rx diversity working and tx antenna handled by session -hw keeps
       track on which antenna it got ack from each ap/station and maps each
       ap/station to one of the antennas-).
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2bed03eb
    • J
      ath5k: Enable AP mode · 6f5f39c9
      Jiri Slaby 提交于
      After some debuging we were hitting the following bugs so far...
      
       * Due to huge channel list hostapd couldn't get infos from the driver
       and couldn't set the channel. If we manualy set the channel after
       hostapd starts (by setting channel to 0 -auto), beacons are sent
       but they wont show up on scan because they are malformed (they have
       channel = 0 because hostapd doesn't update the channel info -this is
       probably a hostapd bug so i'm CCing Jouni) and they get dropped. Bob
       fixed this by only allowing standard channels to be registered so
       now hostapd works as expected.
      
       * Docs (and HAL source) say that we must write 0 on timer0 when
       operating on AP mode to start TSF increment but this seems to
       mess with DBA in many cases and beacon queue never gets started.
       We fixed that on the previous patch.
      
       We have some more things to deal with...
      
       * For some reason (hw bug or something else) after restarting hostapd
       a few times, beacon inteval seems to change from 100ms to a sec
       (we get one beacon per sec).
      
       * We need to set sleep timers on STA mode and enable power saving +
       support PCF.
      
       ...but i think it's time we enable AP support "officialy" so that
       we can get more feedback from users. I ran ath5k with the mentioned
       patches + hostapd 0.6.8 and AP mode worked fine (it had some less
       throughput on my tests than IBSS but it worked).
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6f5f39c9
    • N
      ath5k: Beaconing fixes · 428cbd4f
      Nick Kossifidis 提交于
      * Write next beacon timer even on AP mode since without this we get
       no beacons + ath9k does it too.  Docs say that we must write 0 on
       this register on AP mode to start TSF increment, we do both to be
       on the safe side.
      
       * Fix num_tx_pending function, we never read the register :P that's
       why we got all those "beacon queue 7 didn't stop messages".
      
       * Put full prioriy on beacon queue, lock all queues with lower
       priority using the arblock and also bypass any arblock by seting
       the arblock ignore flag.
      
       * For the CAB queue (do we need this thing ?, it seems crap) since
       it's supposed to fire up after each beacon (we don't use it on driver
       part, ath9k/MadWiFi does), don't make it DBA gated but instead make
       it fire after each beacon by using the beacon sent gated flag.
      
       * Increase bmiss threshold to 10, that's what we used on MadWiFi for
       a long time. Also when we have pending frames on the beacon queue (we
       got a beacon that didn't make it on the air) it's more likely that
       the beacon queue never started, probably due to faulty DBA setting,
       so change that "beacon queue didn't stop" message.
      
       Tested this with AP mode and IBSS mode and seems to work fine ;-)
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      428cbd4f
    • N
      ath5k: Allow user/driver to set txpower · a0823810
      Nick Kossifidis 提交于
      * Now that we have regulatory control enable the driver to set
       txpower on hw
      
       * Also use txpower table offset so that we can match
       power range set by user/driver with indices on power table.
      
       Tested 2 different cards (a CM9 and an RF5112-based ubnt) and got
       the same output using a remote machine to measure per-packet rssi
       (conected the cards using attenuators). I also switched between
       various tx power levels and i saw an equal power change on the remote
       machine (so txpower changes as expected) and verified that we have
       the same output on each rate.
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a0823810
    • B
      ath5k: correct interrupt storm warning · 2516baa6
      Bob Copeland 提交于
      Ben Greear points out that the "too many interrupts" message will
      never print in the intended case since the interrupt counter
      will be -1 after the loop.  Change it to pre-decrement so it will
      be 0 on the thousandth iteration.
      
      Cc: Ben Greear <greearb@candelatech.com>
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2516baa6
    • J
      mac80211: unify config_interface and bss_info_changed · 2d0ddec5
      Johannes Berg 提交于
      The config_interface method is a little strange, it contains the
      BSSID and beacon updates, while bss_info_changed contains most
      other BSS information for each interface. This patch removes
      config_interface and rolls all the information it previously
      passed to drivers into bss_info_changed.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2d0ddec5
    • J
      mac80211: clean up beacon interval settings · 57c4d7b4
      Johannes Berg 提交于
      We currently have two beacon interval configuration knobs:
      hw.conf.beacon_int and vif.bss_info.beacon_int. This is
      rather confusing, even though the former is used when we
      beacon ourselves and the latter when we are associated to
      an AP.
      
      This just deprecates the hw.conf.beacon_int setting in favour
      of always using vif.bss_info.beacon_int. Since it touches all
      the beaconing IBSS code anyway, we can also add support for
      the cfg80211 IBSS beacon interval configuration easily.
      
      NOTE: The hw.conf.beacon_int setting is retained for now due
            to drivers still using it -- I couldn't untangle all
            drivers, some are updated in this patch.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      57c4d7b4
  3. 23 4月, 2009 7 次提交
  4. 07 4月, 2009 1 次提交
  5. 28 3月, 2009 5 次提交
  6. 17 3月, 2009 2 次提交
  7. 06 3月, 2009 1 次提交
  8. 28 2月, 2009 4 次提交
  9. 14 2月, 2009 3 次提交
  10. 12 2月, 2009 1 次提交
  11. 10 2月, 2009 1 次提交
  12. 30 1月, 2009 7 次提交