diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-06 18:24:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-06 18:24:03 +0000 |
commit | f48b4a3744c5b084a7009c1635f7b4315de22f6c (patch) | |
tree | bcbc512a5638457adf9b8eb8248836f2092b2f14 /contrib | |
parent | 09f9c54357f61586cbded4feaf90be8ac9df8726 (diff) |
contrib/package/freifunk-watchdog: fixup build and package dependencies, fix hysteresis counter if both bssid and channel are wrong
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/package/freifunk-watchdog/Makefile | 2 | ||||
-rw-r--r-- | contrib/package/freifunk-watchdog/src/watchdog.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/package/freifunk-watchdog/Makefile b/contrib/package/freifunk-watchdog/Makefile index 6d36d0958..403fb9c97 100644 --- a/contrib/package/freifunk-watchdog/Makefile +++ b/contrib/package/freifunk-watchdog/Makefile @@ -11,6 +11,7 @@ PKG_NAME:=freifunk-watchdog PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) +PKG_BUILD_DEPENDS := uci include $(INCLUDE_DIR)/package.mk @@ -18,6 +19,7 @@ define Package/freifunk-watchdog SECTION:=utils CATEGORY:=Utilities TITLE:=Freifunk Ad-Hoc watchdog daemon + DEPENDS:=libuci endef define Package/freifunk-watchdog/description diff --git a/contrib/package/freifunk-watchdog/src/watchdog.c b/contrib/package/freifunk-watchdog/src/watchdog.c index b431b6dae..d4ccff822 100644 --- a/contrib/package/freifunk-watchdog/src/watchdog.c +++ b/contrib/package/freifunk-watchdog/src/watchdog.c @@ -69,7 +69,7 @@ static int iw_get_channel(int iwfd, const char *ifname, int *channel) } for(i = 0; i < range->num_frequency; i++) - { + { cmp_freq = ((double)range->freq[i].m) * pow(10, range->freq[i].e); if( cmp_freq == cur_freq ) { @@ -302,7 +302,7 @@ static int do_daemon(void) } /* Check channel */ - if( channel != curif->channel ) + else if( channel != curif->channel ) { syslog(LOG_WARNING, "Channel mismatch on %s: current=%d wanted=%d", curif->ifname, channel, curif->channel); |