Skip to content
Snippets Groups Projects
  1. Apr 18, 2015
    • nbd's avatar
      iptables: remove obsolete files · 2f764231
      nbd authored
      
      Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45494 3c298f89-4303-0410-b956-a3cf2f4a3e73
      2f764231
    • cyrus's avatar
      dropbear: update to 2015.67 · 5c17d0e3
      cyrus authored
      
      fixes dbclient login into OpenSSH 6.8p1
      error: "Bad hostkey signature"
      
      reported on irc, replicated with Arch Linux
      
      Signed-off-by: default avatarDirk Neukirchen <dirkneukirchen@web.de>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45493 3c298f89-4303-0410-b956-a3cf2f4a3e73
      5c17d0e3
    • blogic's avatar
      hostapd: Fix wps button hotplug script to handle multiple radios · a604defc
      blogic authored
      Hostapd's control file location was changed in 2013, and that has apparently
      broken the wps button hotplug script in cases where there are multiple radios
      and wps is possibly configured also for the second radio. The current wps
      button hotplug script always handles only the first radio.
      
      https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/files/wps-hotplug.sh
      
      The reason is that the button hotplug script seeks directories like
      /var/run/hostapd*, as the hostapd-phy0.conf files were earlier in
      per-interface subdirectories.
      
      Currently the *.conf files are directly in /var/run and the control sockets
      are in /var/run/hostapd, but there is no subdirectory for each radio.
      
      root@OpenWrt:/# ls /var/run/hostapd*
      /var/run/hostapd-phy0.conf  /var/run/hostapd-phy1.conf
      
      /var/run/hostapd:
      wlan0  wlan1
      
      The hotplug script was attempted to be fixed after the hostapd change by
      r38986 in Dec2013, but that change only unbroke the script for the first
      radio, but left it broken for multiple radios.
      https://dev.openwrt.org/changeset/38986/
      
      
      
      The script fails to find subdirectories with [ -d "$dir" ], and passes just
      the only found directory /var/run/hostapd, leading into activating only the
      first radio, as hostapd_cli defaults to first socket found inthe passed
      directory:
      root@OpenWrt:/# hostapd_cli -?
      ...
      usage: hostapd_cli [-p<path>] [-i<ifname>] [-hvB] [-a<path>] \
                          [-G<ping interval>] [command..]
      ...
          -p<path>     path to find control sockets (default: /var/run/hostapd)
      ...
          -i<ifname>   Interface to listen on (default: first interface found in the
                       socket path)
      
      Below is a run with the default script and with my proposed solution.
      
      Default script (with logging added):
      ==================================
      root@OpenWrt:/# cat /etc/rc.button/wps
      #!/bin/sh
      
      if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
               for dir in /var/run/hostapd*; do
                       [ -d "$dir" ] || continue
                       logger "WPS activated for: $dir"
                       hostapd_cli -p "$dir" wps_pbc
               done
      fi
      
       >>>> WPS BUTTON PRESSED <<<<<
      
      root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan0 wps_get_status
      PBC Status: Active
      Last WPS result: None
      root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan1 wps_get_status
      PBC Status: Timed-out
      Last WPS result: None
      root@OpenWrt:/# logread | grep WPS
      Tue Apr 14 18:38:50 2015 user.notice root: WPS activated for: /var/run/hostapd
      
      wlan0 got WPS activated, while wlan1 remained inactive.
      
      I have modified the script to search for sockets instead of directories and
      to use the "-i" option with hostapd_cli, and now the script properly
      activates wps for both radios. As "-i" needs the interface name instead of
      the full path, the script first changes dir to /var/run/hostapd to get simply
      the interface names.
      
      Modified script (with logging):
      ===============================
      root@OpenWrt:/# cat /etc/rc.button/wps
      #!/bin/sh
      
      if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
               cd /var/run/hostapd
               for dir in *; do
                       [ -S "$socket" ] || continue
                       logger "WPS activated for: $socket"
                       hostapd_cli -i "$socket" wps_pbc
               done
      fi
      
       >>>> WPS BUTTON PRESSED <<<<<
      
      root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan0 wps_get_status
      PBC Status: Active
      Last WPS result: None
      root@OpenWrt:/# hostapd_cli -p /var/run/hostapd -i wlan1 wps_get_status
      PBC Status: Active
      Last WPS result: None
      root@OpenWrt:/# logread | grep WPS
      Tue Apr 14 18:53:06 2015 user.notice root: WPS activated for: wlan0
      Tue Apr 14 18:53:06 2015 user.notice root: WPS activated for: wlan1
      
      Both radios got their WPS activated properly.
      
      I am not sure if my solution is optimal, but it seems to work. WPS button is
      maybe not that often used functionality, but it might be fixed in any case.
      Routers with multiple radios are common now, so the bug is maybe more
      prominent than earlier.
      
      The modified script has been in a slightly different format in my community
      build since r42420 in September 2014.
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45492 3c298f89-4303-0410-b956-a3cf2f4a3e73
      a604defc
    • blogic's avatar
      ar71xx/image: remove duplicated rootfs in new tplink initramfs images · c14afbd9
      blogic authored
      
      The new building code included the rootfs twice when building tplink initramfs images.
      To make it more readable move initramfs into an own build step
      Build/mktplinkfw-initramfs.
      
      Signed-off-by: default avatarAlexander Couzens <lynxis@fe80.eu>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45491 3c298f89-4303-0410-b956-a3cf2f4a3e73
      c14afbd9
    • blogic's avatar
      ar71xx/image: move TPLINK-LZMA image to new build code · 059d6227
      blogic authored
      
      There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties
      
      Signed-off-by: default avatarAlexander Couzens <lynxis@fe80.eu>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45490 3c298f89-4303-0410-b956-a3cf2f4a3e73
      059d6227
    • blogic's avatar
      ar71xx/image: add template tplink-16mlzma · 25696ebd
      blogic authored
      
      Signed-off-by: default avatarAlexander Couzens <lynxis@fe80.eu>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45489 3c298f89-4303-0410-b956-a3cf2f4a3e73
      25696ebd
    • blogic's avatar
      ar71xx/image: fix imagesize of template tplink-8mlzma · 80c01c75
      blogic authored
      
      The new image size is verified by a running tplink device and checked
      against mktplinkfw source code.
      
      Signed-off-by: default avatarAlexander Couzens <lynxis@fe80.eu>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45488 3c298f89-4303-0410-b956-a3cf2f4a3e73
      80c01c75
    • blogic's avatar
      Removed reference to imaginary procd_add_interface_reload in procd.sh · bd7a0dd9
      blogic authored
      
      The last line of procd.sh has a reference to procd_add_interface_reload. procd_add_interface_reload
      doesn't seem to exist. I've removed the reference of it to minimize confusion.
      
      Signed-off-by: default avatarEric Schultz <eschultz@prplfoundation.org>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45487 3c298f89-4303-0410-b956-a3cf2f4a3e73
      bd7a0dd9
    • jogo's avatar
      brcm63xx: fix bcm96318ref_p300 profile name · 7bca6f17
      jogo authored
      
      Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45486 3c298f89-4303-0410-b956-a3cf2f4a3e73
      7bca6f17
  2. Apr 17, 2015
  3. Apr 16, 2015
  4. Apr 15, 2015
Loading