Skip to content
Snippets Groups Projects
  1. May 16, 2017
  2. May 15, 2017
  3. May 14, 2017
    • Jo-Philipp Wich's avatar
      mac80211: gracefully handle preexisting VIF · 4a033475
      Jo-Philipp Wich authored
      
      Gracefully handle cases where the to-be-created wireless interface already
      exists on the system which might commonly happen with non-multi-SSID capable
      wireless drivers.
      
      This fixes commit 8301e613 which caused
      previously ignored "Too many open files in system (-23)" errors to fail the
      wireless setup procedure.
      
      With the updated approach we'll still try recreating the vif after one
      second if the first attempt to do so failed with ENFILE but we will now
      consider the operation successfull if a second attempt still yields ENFILE
      with the requested ifname already existing on the system.
      
      Fixes FS#664, FS#704.
      
      Suggested-by: default avatarVittorio Gambaletta <openwrt@vittgam.net>
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      4a033475
  4. May 13, 2017
    • Matthias Schiffer's avatar
      mac80211, hostapd: always explicitly set beacon interval · 1a16cb9c
      Matthias Schiffer authored
      
      One of the latest mac80211 updates added sanity checks, requiring the
      beacon intervals of all VIFs of the same radio to match. This often broke
      AP+11s setups, as these modes use different default intervals, at least in
      some configurations (observed on ath9k).
      
      Instead of relying on driver or hostapd defaults, change the scripts to
      always explicitly set the beacon interval, defaulting to 100. This also
      applies the beacon interval to 11s interfaces, which had been forgotten
      before. VIF-specific beacon_int setting is removed from hostapd.sh.
      
      Fixes FS#619.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
  5. May 02, 2017
  6. Apr 26, 2017
  7. Apr 24, 2017
  8. Apr 18, 2017
  9. Apr 17, 2017
  10. Apr 12, 2017
  11. Apr 10, 2017
  12. Apr 08, 2017
  13. Apr 07, 2017
  14. Apr 05, 2017
  15. Apr 03, 2017
  16. Mar 30, 2017
  17. Mar 29, 2017
  18. Mar 28, 2017
    • Hannu Nyman's avatar
      mac80211: ath10k: allow failure getting board id via otp · c69a89fe
      Hannu Nyman authored
      
      ath10k tries to fetch board id via otp, but that fails for many chips
      like QCA988x, QCA9984 etc. Recent commit cc189c0b removed the earlier
      hack that had allowed QCA radios to work, as that hack was incompatible
      with the new wifi chips being introduced to the source tree.
      
      Restore functionality for the existing wifi chips by modifying the
      return value of the 'board id via otp' function to a value that is recognised
      as a harmless error, so that name evaluation continues by using the board file.
      
      Patch originally suggested by Christian Lamparter in forum discussion.
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      c69a89fe
  19. Mar 27, 2017
  20. Mar 24, 2017
  21. Mar 22, 2017
    • Felix Fietkau's avatar
      ath9k: fix power limits on init · 09ae540c
      Felix Fietkau authored
      
      The tx power applied by set_txpower is limited by the CTL (conformance
      test limit) entries in the EEPROM. These can change based on the user
      configured regulatory domain.
      Depending on the EEPROM data this can cause the tx power to become too
      limited, if the original regdomain CTLs impose lowr limits than the CTLs
      of the user configured regdomain.
      
      To fix this issue, set the initial channel limits without any CTL
      restrictions and only apply the CTL at run time when setting the channel
      and the real tx power.
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      09ae540c
    • Felix Fietkau's avatar
      ath: do not apply broken power limits with ATH_USER_REGD · 79a768a9
      Felix Fietkau authored
      
      If a device uses the default EEPROM code, typically only the main CTLs
      are valid, and they do not apply properly when switching to a different
      regulatory domain. If the regdomain deviates from the EEPROM one, force
      the world roaming regdomain to ensure that power limits are sane
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      79a768a9
    • Vittorio Gambaletta's avatar
      mac80211: Fix race condition leading to wifi interfaces not coming up at boot sometimes. · 8301e613
      Vittorio Gambaletta authored
      
      In the drv_mac80211_setup function, mac80211_interface_cleanup
      is called to ask the kernel to delete all existing interfaces
      for the phy that is being configured via netlink.
      
      Later in the first function, mac80211_prepare_vif is called to
      set up the new interfaces as required.
      
      But sometimes, when mac80211_prepare_vif (and so the relevant
      `iw phy x interface add y` command) runs, the kernel might still
      be cleaning up the old interface with the same ifname. It usually
      takes very few time to do that; possibly a few milliseconds of
      sleep in the script after detecting this error condition could be
      enough, but the busybox sh does not support sub-second sleep
      intervals.
      
      When this happens, iw obviously fails to create the new interface;
      and the following message is printed in the system log, followed by
      subsequent failure messages from hostapd in case this would have been
      an AP interface.
      
      Tue Mar 14 04:21:57 2017 daemon.notice netifd: radio1 (2767): command failed: Too many open files in system (-23)
      
      This was a long-standing issue existing since at least OpenWrt Backfire,
      and today I finally managed to debug and (hopefully) solve it.
      It was happening very few times on most devices; but it was happening
      a lot more frequently on fast platforms with multiple radios, such as
      the powerpc-based dual-ath9k-radio tl-wdr4900-v1.
      
      Signed-off-by: default avatarVittorio Gambaletta <openwrt@vittgam.net>
      8301e613
    • Christian Lamparter's avatar
      mac80211: enable ath10k AHB support for QCA4019 · cc189c0b
      Christian Lamparter authored
      This patch enables the ATH10K_AHB support for the QCA4019
      devices on the AHB bus.
      
      This patch also removes 936-ath10k_skip_otp_check.patch
      because it breaks the AHB device identification.
      "Patch is wrong. I find it frustrating OpenWRT/LEDE doesn't
      try to work with upstream on ixing these things right."
      
      [1] <https://www.mail-archive.com/ath10k@lists.infradead.org/msg05896.html
      
      >
      
      It also limits ath10k memory hunger (This is a problem with 128MiB RAM)
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      cc189c0b
Loading