openwrt.git
9 years agoatheros: ar2315-spiflash: update initialization
blogic [Fri, 12 Sep 2014 06:51:51 +0000 (06:51 +0000)]
atheros: ar2315-spiflash: update initialization

- fill module metadata
  - remove odd module_{init,exit}

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42490 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: ar2315-spiflash: use devm_* API to simplify the code
blogic [Fri, 12 Sep 2014 06:51:46 +0000 (06:51 +0000)]
atheros: ar2315-spiflash: use devm_* API to simplify the code

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42489 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove useless return
blogic [Fri, 12 Sep 2014 06:51:39 +0000 (06:51 +0000)]
atheros: remove useless return

Remove useless void function return.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42488 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove FSF mailing address
blogic [Fri, 12 Sep 2014 06:51:33 +0000 (06:51 +0000)]
atheros: remove FSF mailing address

Remove FSF mailing address as suggested by checkpach and place license
URL.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42487 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: add blank line after declarations
blogic [Fri, 12 Sep 2014 06:51:26 +0000 (06:51 +0000)]
atheros: add blank line after declarations

as suggested by checkpach.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42486 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: use static keywork for local code
blogic [Fri, 12 Sep 2014 06:51:10 +0000 (06:51 +0000)]
atheros: use static keywork for local code

Make PCI IRQ handler and several structures static as suggested by
sparse.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42485 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: use NULL instead of plain integer
blogic [Fri, 12 Sep 2014 06:51:05 +0000 (06:51 +0000)]
atheros: use NULL instead of plain integer

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42484 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: add missing include
blogic [Fri, 12 Sep 2014 06:50:58 +0000 (06:50 +0000)]
atheros: add missing include

Missing this headers cause several sparse "symbol 'foo' was not
declared. Should it be static?" warnings.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42483 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: avoid extern prototypes
blogic [Fri, 12 Sep 2014 06:50:53 +0000 (06:50 +0000)]
atheros: avoid extern prototypes

Avoid using of extern prototypes as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42482 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: drop 3.10 support
blogic [Fri, 12 Sep 2014 06:50:46 +0000 (06:50 +0000)]
ralink: drop 3.10 support

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42481 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools: install a fake empty ldconfig script to prevent the system ldconfig from messi...
nbd [Thu, 11 Sep 2014 23:13:29 +0000 (23:13 +0000)]
tools: install a fake empty ldconfig script to prevent the system ldconfig from messing around with the toolchain (fixes disappearing musl symlink issue)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42480 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoqos-scripts: disable fq_codel ecn by default to improve compatibility
nbd [Thu, 11 Sep 2014 23:13:24 +0000 (23:13 +0000)]
qos-scripts: disable fq_codel ecn by default to improve compatibility

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42479 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: update to a newer versions of the vr9 drivers
blogic [Thu, 11 Sep 2014 18:22:31 +0000 (18:22 +0000)]
lantiq: update to a newer versions of the vr9 drivers

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42478 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoltq-deu: fix compile for 3.14
blogic [Thu, 11 Sep 2014 17:50:03 +0000 (17:50 +0000)]
ltq-deu: fix compile for 3.14

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42477 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: update 3.14 patches
blogic [Thu, 11 Sep 2014 17:49:57 +0000 (17:49 +0000)]
lantiq: update 3.14 patches

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42476 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolldp: remove calls to user/group_add/exists
blogic [Thu, 11 Sep 2014 12:28:22 +0000 (12:28 +0000)]
lldp: remove calls to user/group_add/exists

use the new ipkg based mechanism

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42472 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: update to latest git
blogic [Thu, 11 Sep 2014 12:28:00 +0000 (12:28 +0000)]
procd: update to latest git

add support for starting services as !root

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42471 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipkg: add a default postinst/prerm script
blogic [Thu, 11 Sep 2014 12:27:49 +0000 (12:27 +0000)]
ipkg: add a default postinst/prerm script

the postinst script enables/starts the init.d scripts upon package installation
and installs the users required by the package.

the prerm script stops and disables the init.d scripts.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42470 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoinclude: add a meta data field for required system user:group
blogic [Thu, 11 Sep 2014 12:27:26 +0000 (12:27 +0000)]
include: add a meta data field for required system user:group

this is in preparation of having services run as !root with
ACL'ed access to ubus.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42469 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoopkg: indicate upgrade vs install
blogic [Thu, 11 Sep 2014 12:27:09 +0000 (12:27 +0000)]
opkg: indicate upgrade vs install

when running the postinst trigger we set PKG_UPGRADE=1 if this is an upgrade
and not an install.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42468 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoumbim: remove superflous jshn call
blogic [Thu, 11 Sep 2014 12:26:52 +0000 (12:26 +0000)]
umbim: remove superflous jshn call

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42467 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoumbim: update to latest git
blogic [Thu, 11 Sep 2014 12:26:41 +0000 (12:26 +0000)]
umbim: update to latest git

adds handling for username/password

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42466 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agocomgt: add directip proto
blogic [Thu, 11 Sep 2014 12:26:31 +0000 (12:26 +0000)]
comgt: add directip proto

add a proto handler for sierra wireless directip modems

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42465 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoconfig: enable cgroup freezer
luka [Wed, 10 Sep 2014 23:15:22 +0000 (23:15 +0000)]
config: enable cgroup freezer

This option will be enabled by default only when cgroups support is enabled.

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42464 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: update 3.14 to 3.14.18
luka [Wed, 10 Sep 2014 21:40:19 +0000 (21:40 +0000)]
kernel: update 3.14 to 3.14.18

Targets were build tested and patches are refreshed.

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42463 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: remove unused versions
luka [Wed, 10 Sep 2014 13:57:48 +0000 (13:57 +0000)]
kernel: remove unused versions

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42462 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: enable the low_mem flag to better deal with 16M RAM devices
nbd [Wed, 10 Sep 2014 13:50:10 +0000 (13:50 +0000)]
atheros: enable the low_mem flag to better deal with 16M RAM devices

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42460 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agohostapd: add ubus bindings for wps
nbd [Wed, 10 Sep 2014 13:01:53 +0000 (13:01 +0000)]
hostapd: add ubus bindings for wps

With this patch WPS discovery can be started or canceled over ubus if
WPS is enabled in wireless configuration. This is equivalent of
'hostapd_cli wps_pbc' and 'hostapd_cli wps_cancel' commands.

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42459 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: ack completed tx descriptors only after the full frame has been completed
nbd [Wed, 10 Sep 2014 12:56:24 +0000 (12:56 +0000)]
ar71xx: ack completed tx descriptors only after the full frame has been completed

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42457 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: allow adding empty strings to arrays
nbd [Wed, 10 Sep 2014 12:56:19 +0000 (12:56 +0000)]
procd: allow adding empty strings to arrays

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42456 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoimx6: fix image build for Generic profile.
luka [Tue, 9 Sep 2014 21:15:49 +0000 (21:15 +0000)]
imx6: fix image build for Generic profile.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42455 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: fix pll clock initialization on newer soc devices (fixes #14916)
nbd [Tue, 9 Sep 2014 08:03:00 +0000 (08:03 +0000)]
ath9k: fix pll clock initialization on newer soc devices (fixes #14916)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42453 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: drop 3.9 support
hauke [Mon, 8 Sep 2014 19:55:36 +0000 (19:55 +0000)]
kernel: drop 3.9 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42452 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogemini: drop kernel 3.9 support
hauke [Mon, 8 Sep 2014 19:55:00 +0000 (19:55 +0000)]
gemini: drop kernel 3.9 support

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42451 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agogemini: switch to kernel 3.10
hauke [Mon, 8 Sep 2014 19:54:22 +0000 (19:54 +0000)]
gemini: switch to kernel 3.10

This switches to kernel 3.10 that was prepared by Hauke in r41531 :
    gemini: add support for kernel 3.10

    This is compile tested only, please run test and report back.

I've simply checked if it still compiles, unfortunately we didn't get
any feedback for this target.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42450 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoomap: add kernel 3.14 support
hauke [Mon, 8 Sep 2014 19:53:01 +0000 (19:53 +0000)]
omap: add kernel 3.14 support

It has been compile-tested only so far. Please give it a try.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42449 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: add bcma patches sent upstream but not pushed yet
hauke [Mon, 8 Sep 2014 19:50:53 +0000 (19:50 +0000)]
kernel: add bcma patches sent upstream but not pushed yet

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42448 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokernel: update bcma to the version from wireless-testing master-2014-09-04 tag
hauke [Mon, 8 Sep 2014 19:50:11 +0000 (19:50 +0000)]
kernel: update bcma to the version from wireless-testing master-2014-09-04 tag

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42447 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: dwc_otg->dwc2
blogic [Mon, 8 Sep 2014 17:33:16 +0000 (17:33 +0000)]
ralink: dwc_otg->dwc2

the old dwc_otg driver is starting to fall apart and fails on newer 3g
modems and some storage devices. switch to the upstream dwc2 driver which
is no longer in staging/.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42446 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: add dwc2 device_reset() call
blogic [Mon, 8 Sep 2014 17:32:52 +0000 (17:32 +0000)]
ralink: add dwc2 device_reset() call

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42445 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath9k: add some ani related stability / performance fixes
nbd [Mon, 8 Sep 2014 16:45:30 +0000 (16:45 +0000)]
ath9k: add some ani related stability / performance fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42443 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools: fix mtools/dosfstools related build system warnings
nbd [Mon, 8 Sep 2014 16:09:57 +0000 (16:09 +0000)]
tools: fix mtools/dosfstools related build system warnings

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42442 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonetifd: work-around kernel IPv6 on-link route issue
cyrus [Mon, 8 Sep 2014 14:45:56 +0000 (14:45 +0000)]
netifd: work-around kernel IPv6 on-link route issue

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42439 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agolantiq: add ath9k led pin support
blogic [Mon, 8 Sep 2014 14:29:18 +0000 (14:29 +0000)]
lantiq: add ath9k led pin support

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42437 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: re-add lradc driver in 3.14
wigyori [Mon, 8 Sep 2014 07:50:03 +0000 (07:50 +0000)]
sunxi: re-add lradc driver in 3.14

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42436 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools: build dosfstools and mtools for sunxi
wigyori [Sun, 7 Sep 2014 23:38:03 +0000 (23:38 +0000)]
tools: build dosfstools and mtools for sunxi

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42435 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoath79: dev-eth: Don't advertise 1gbit in link code word on ar9331
nbd [Sun, 7 Sep 2014 09:45:32 +0000 (09:45 +0000)]
ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331

While the AR9331 has a gigabit MAC towards the internal switch, the
integrated PHYs however are only 100-base-tx capable.  The existing code
however advertieses gigabit capability in the link status word.  If you
attach such a PHY to a gigabit capable switch on the remote end, with
some probability it attempts to negotiate gigabit and fails, falling
baco to the AR9331 assuming a 10mbit half-duplex link.  This has been
observed quite frequently with the Carambola2 and gigabit capable
switches.

In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally
for both AR9331 ethernet ports. This is most likely wrong. Despite the
two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a
100base-T PHY via MII. The has_gbit attribute is used in the ethernet
driver to determine the supported link modes.

So either pdata->has_gbit is not set to 1 anymore, or the ethernet
driver needs to be modified to determine the advertised link code word
on another criteria than pdata->has_gbit.  This patch implements the
former solution.

Signed-off-by: Harald Welte <laforge@gnumonks.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42432 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: enable DFS support for ath9k/10k by default
jogo [Sun, 7 Sep 2014 09:38:13 +0000 (09:38 +0000)]
mac80211: enable DFS support for ath9k/10k by default

The DFS pattern detector now supports all three regions; ETSI, FCC and
JP, so there is no reason to not have it enabled anymore.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42431 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotoolchain/binutils: do not install host libiberty.a into target lib dir
jogo [Sun, 7 Sep 2014 09:38:10 +0000 (09:38 +0000)]
toolchain/binutils: do not install host libiberty.a into target lib dir

Binutils target build will pick it up and break build on e.g. arm:

libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -shared  .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/compress.o .libs/verilog.o .libs/elf32-arm.o .libs/elf32.o .libs/elf-nacl.o .libs/elf-vxworks.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/elf32-gen.o .libs/cpu-arm.o   -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/build_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/binutils-2.24/bfd/../libiberty/pic -liberty -lz  -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed   -Wl,-soname -Wl,libbfd-2.24.so -o .libs/libbfd-2.24.so
/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/libiberty.a: could not read symbols: File format not recognized

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42430 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: re-enable descriptor splitting on ar716x after the previous bugfixes (#13072)
nbd [Sat, 6 Sep 2014 17:51:48 +0000 (17:51 +0000)]
ar71xx: re-enable descriptor splitting on ar716x after the previous bugfixes (#13072)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42429 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: fix off-by-one error in packet descriptor splitting (patch from #13072)
nbd [Sat, 6 Sep 2014 17:51:44 +0000 (17:51 +0000)]
ar71xx: fix off-by-one error in packet descriptor splitting (patch from #13072)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42428 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: on ar716x, split ethernet packets in 512 byte chunks instead of 256 (improves...
nbd [Sat, 6 Sep 2014 17:51:39 +0000 (17:51 +0000)]
ar71xx: on ar716x, split ethernet packets in 512 byte chunks instead of 256 (improves performance) (patch from #13072)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42427 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoatheros: remove linux 3.10
nbd [Sat, 6 Sep 2014 17:51:35 +0000 (17:51 +0000)]
atheros: remove linux 3.10

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42426 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: bump kernel to 3.14.16
wigyori [Sat, 6 Sep 2014 15:59:06 +0000 (15:59 +0000)]
sunxi: bump kernel to 3.14.16

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42425 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: update pcDuino3 profile to the new u-boot
wigyori [Sat, 6 Sep 2014 15:57:08 +0000 (15:57 +0000)]
sunxi: update pcDuino3 profile to the new u-boot

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42424 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosunxi: update Bananapi profile to the new u-boot
wigyori [Sat, 6 Sep 2014 15:23:30 +0000 (15:23 +0000)]
sunxi: update Bananapi profile to the new u-boot

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42423 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouboot-sunxi: bump to 2014.04
wigyori [Sat, 6 Sep 2014 15:18:40 +0000 (15:18 +0000)]
uboot-sunxi: bump to 2014.04

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42422 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouml: bump to 3.14.16
nico [Fri, 5 Sep 2014 22:02:09 +0000 (22:02 +0000)]
uml: bump to 3.14.16

Signed-off-by: Nicolas Thill <nico@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42421 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agouclient: update to the latest version, fixes some crash issues
nbd [Thu, 4 Sep 2014 11:25:04 +0000 (11:25 +0000)]
uclient: update to the latest version, fixes some crash issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42419 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: build images for AT91SAMA5D3XPLAINED
florian [Wed, 3 Sep 2014 03:11:25 +0000 (03:11 +0000)]
at91: build images for AT91SAMA5D3XPLAINED

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42418 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: add SAMA5D3 subtarget
florian [Wed, 3 Sep 2014 03:11:11 +0000 (03:11 +0000)]
at91: add SAMA5D3 subtarget

Add a subtarget for Atmel's SAMA5D3 Cortex-A5 based SoCs.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42417 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: move legacy Kconfig options to subtarget
florian [Wed, 3 Sep 2014 03:10:59 +0000 (03:10 +0000)]
at91: move legacy Kconfig options to subtarget

Some Kconfig options are only relevant for the legacy platforms, move
them where they belong

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42416 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: switch to 3.14
florian [Wed, 3 Sep 2014 03:10:47 +0000 (03:10 +0000)]
at91: switch to 3.14

We need a new kernel version to support Cortex-A5 based platforms such
as SAMA5GD3.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42415 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: add 3.14 support
florian [Wed, 3 Sep 2014 03:10:18 +0000 (03:10 +0000)]
at91: add 3.14 support

Add support for Linux 3.14 for the Atmel's AT91 platform.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42414 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: move 3.10 specific files and patches
florian [Wed, 3 Sep 2014 03:09:51 +0000 (03:09 +0000)]
at91: move 3.10 specific files and patches

In preparation for adding 3.14 kernel support, move files and patches to
a separate per-version directory since some of them will have
incompatible changes (e.g: dts)

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42413 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: add Kconfig symbol for CONFIG_USB_ATMEL_USBA
florian [Wed, 3 Sep 2014 03:09:36 +0000 (03:09 +0000)]
at91: add Kconfig symbol for CONFIG_USB_ATMEL_USBA

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42412 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: add CONFIG_USB_OHCI_HCD_AT91 to usb-ohci
florian [Wed, 3 Sep 2014 03:09:24 +0000 (03:09 +0000)]
at91: add CONFIG_USB_OHCI_HCD_AT91 to usb-ohci

The at91 OHCI driver has a separate Kconfig symbol with newer kernels,
include it.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42411 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: fix typo on Calao
florian [Wed, 3 Sep 2014 03:09:14 +0000 (03:09 +0000)]
at91: fix typo on Calao

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42410 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoinclude: add Cortex-A5 CPU_TYPE
florian [Wed, 3 Sep 2014 03:09:03 +0000 (03:09 +0000)]
include: add Cortex-A5 CPU_TYPE

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42409 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoat91: create a legacy subtarget
florian [Wed, 3 Sep 2014 03:08:51 +0000 (03:08 +0000)]
at91: create a legacy subtarget

In preparation for adding SAMA5D3 support, move the legacy ARMv5 based
platforms to a separate subtarget.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42408 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomdns: update to latest git head
blogic [Tue, 2 Sep 2014 21:39:40 +0000 (21:39 +0000)]
mdns: update to latest git head

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42407 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403
nbd [Tue, 2 Sep 2014 21:06:35 +0000 (21:06 +0000)]
mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42405 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomtd: Fix trx check after partition rename ("linux" to "firmware")
nbd [Tue, 2 Sep 2014 17:13:42 +0000 (17:13 +0000)]
mtd: Fix trx check after partition rename ("linux" to "firmware")

On brcm47xx (Huawei E970), I noticed that sysupgrade now tries to flash trx images which don't fit into the flash, resulting in non-booting system.

I found that mtd does trx size checking only when flashing to a partition called "linux". This patch changes this to be "firmware".

This matches the following patch which changed partition name in bcm47xxpart.c driver to "firmware":

commit 86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc
Author: hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date:   Sun Dec 1 16:32:32 2013 +0000

    brcm47xx: use "firmware" partition name
    ...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38973 3c298f89-4303-0410-b956-a3cf2f4a3e73

Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42403 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoomap: remove 3.12 kernel patches
nbd [Tue, 2 Sep 2014 17:00:46 +0000 (17:00 +0000)]
omap: remove 3.12 kernel patches

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42401 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agocns3xxx: support isolated PCI interrupts on newer Laguna PCBs
nbd [Tue, 2 Sep 2014 16:44:40 +0000 (16:44 +0000)]
cns3xxx: support isolated PCI interrupts on newer Laguna PCBs

The cns3xxx uses irq61 for pcie0_intr which in the case of a PCIe-to-PCI
bridge ends up combining INTA/B/C/D on a single ARM CPU interrupt. This is
not optimal when you have multiple cores. To overcome this limitation an
enhancement was made on newer Laguna PCB's that support miniPCI cards
to route the INTA/B/C/D signals to unique external ARM CPU interrupts which
can help balance CPU core utilization and in some cases increase overall
system performance or responsiveness.

For more details see:
 http://trac.gateworks.com/wiki/multicoreprocessing#PCIInterruptsteering

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42400 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agosdk: keep $(STAGING_DIR)/usr/bin, at least curl needs it
nbd [Mon, 1 Sep 2014 22:34:37 +0000 (22:34 +0000)]
sdk: keep $(STAGING_DIR)/usr/bin, at least curl needs it

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42397 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: rt2x00: fix of ht20/ht40 switching fix
blogic [Mon, 1 Sep 2014 13:19:32 +0000 (13:19 +0000)]
mac80211: rt2x00: fix of ht20/ht40 switching fix

r42348 uses a wrong register

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42349 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: rt2x00 correctly set ht20/ht40 filter
blogic [Mon, 1 Sep 2014 11:40:38 +0000 (11:40 +0000)]
mac80211: rt2x00 correctly set ht20/ht40 filter

Simple patch to correct ht20/ht40 switching. Tested with rt3290/rt3352/rt5350

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42348 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonetifd: update to the latest version, adds interface cleanup fixes
nbd [Sun, 31 Aug 2014 13:09:01 +0000 (13:09 +0000)]
netifd: update to the latest version, adds interface cleanup fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42345 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonetifd: update to the latest version, fixes proto-shell teardown after renew
nbd [Sun, 31 Aug 2014 12:26:26 +0000 (12:26 +0000)]
netifd: update to the latest version, fixes proto-shell teardown after renew

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42344 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoAdd 'subversion' build dependency to README
nbd [Sun, 31 Aug 2014 12:06:32 +0000 (12:06 +0000)]
Add 'subversion' build dependency to README

Fixes #17725.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42343 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agonettle: disable mips16 support to improve performance
nbd [Sun, 31 Aug 2014 12:03:43 +0000 (12:03 +0000)]
nettle: disable mips16 support to improve performance

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42341 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoimagebuilder: remove postinst files before generating image
nbd [Sun, 31 Aug 2014 11:06:31 +0000 (11:06 +0000)]
imagebuilder: remove postinst files before generating image

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42339 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agobinutils: link libbfd and libopcodes dynamically again
jogo [Sat, 30 Aug 2014 11:02:22 +0000 (11:02 +0000)]
binutils: link libbfd and libopcodes dynamically again

Build libbfd and libopcodes as shared libraries, else they get linked
statically into every binary, increasing each binary size by ~650kB.

Reduces binutils package size to old expected values.

Fixes #17060.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42337 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipx806x: bump to 3.14.16
blogic [Sat, 30 Aug 2014 09:59:30 +0000 (09:59 +0000)]
ipx806x: bump to 3.14.16

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42336 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotarget: set myself as maintainer
blogic [Sat, 30 Aug 2014 09:59:18 +0000 (09:59 +0000)]
target: set myself as maintainer

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42335 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoipq806x: Add support for IPQ806x chip family
blogic [Sat, 30 Aug 2014 09:32:58 +0000 (09:32 +0000)]
ipq806x: Add support for IPQ806x chip family

Patches are generated using the "format-patch" command from the
following location:
*https://www.codeaurora.org/cgit/quic/kernel/galak-msm/log/?h=apq_ipq_base
*rev=0771849495b4128cac2faf7d49c85c729fc48b20
Patches numbered 76/77/102/103 have already been integrated in 3.14.12,
so they're not in this list.

All these patches are either integrated are pending integration into
kernel.org, therefore these patches should go away once the kernel
gets upgraded to 3.16.

Support is currently limited to AP148 board but can be extended to other
platforms in the future.

These changes do not cover ethernet connectivity.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42334 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: disable ethernet descriptor splitting for now, as it seems to cause tx hangs...
nbd [Sat, 30 Aug 2014 09:11:41 +0000 (09:11 +0000)]
ar71xx: disable ethernet descriptor splitting for now, as it seems to cause tx hangs in some setups

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42333 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agokirkwood: fix typos on DEBUG_LL_UART_*
florian [Sat, 30 Aug 2014 00:32:05 +0000 (00:32 +0000)]
kirkwood: fix typos on DEBUG_LL_UART_*

We were prompted for which DEBUG_LL_UART implementation we want, fix the
typos such that the build continues.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42332 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: select m25p80 support instead of spi support where used by mach files (#17699)
nbd [Fri, 29 Aug 2014 21:10:39 +0000 (21:10 +0000)]
ar71xx: select m25p80 support instead of spi support where used by mach files (#17699)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42331 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomac80211: fix crash when unloading drivers (#17706)
nbd [Fri, 29 Aug 2014 20:41:01 +0000 (20:41 +0000)]
mac80211: fix crash when unloading drivers (#17706)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42329 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoar71xx: split packets into multiple descriptors on ar716x
nbd [Fri, 29 Aug 2014 19:42:08 +0000 (19:42 +0000)]
ar71xx: split packets into multiple descriptors on ar716x

This improves performance when doing concurrent rx/tx on a single
ethernet MAC, e.g. when routing between VLANs.

Fixes #13072

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42328 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: run the mdns register outside the sub shell container
blogic [Fri, 29 Aug 2014 18:36:29 +0000 (18:36 +0000)]
procd: run the mdns register outside the sub shell container

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42327 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agodropbear: add mdns support to the init.d script
blogic [Fri, 29 Aug 2014 18:16:41 +0000 (18:16 +0000)]
dropbear: add mdns support to the init.d script

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42326 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agomdns: update to latest git
blogic [Fri, 29 Aug 2014 18:16:32 +0000 (18:16 +0000)]
mdns: update to latest git

* ipv6
* 4 bugs in the dns parser
* service announcement
* tx goodbye support
* proper handling of rx goodbye

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42325 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoprocd: update to latest git HEAD
blogic [Fri, 29 Aug 2014 18:16:24 +0000 (18:16 +0000)]
procd: update to latest git HEAD

this adds a interafce.update trigger and mdns service registration helpers

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42324 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agotools/libtool: add missing dependency on m4
nbd [Fri, 29 Aug 2014 11:37:28 +0000 (11:37 +0000)]
tools/libtool: add missing dependency on m4

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42322 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agoralink: DIR-645 picks up incorrect MAC address in DTS file
blogic [Thu, 28 Aug 2014 09:19:56 +0000 (09:19 +0000)]
ralink: DIR-645 picks up incorrect MAC address in DTS file

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42321 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agodnsmasq: Make the --dhcp-host logic easier to understand
blogic [Thu, 28 Aug 2014 06:27:57 +0000 (06:27 +0000)]
dnsmasq: Make the --dhcp-host logic easier to understand

Use an if/else statement to cover the two different syntaxes.  Add
comments explaining what the end results should look like.

This patch should not change the script's output.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42320 3c298f89-4303-0410-b956-a3cf2f4a3e73

9 years agodnsmasq: Fix hosts file format when MAC address is not specified
blogic [Thu, 28 Aug 2014 06:27:53 +0000 (06:27 +0000)]
dnsmasq: Fix hosts file format when MAC address is not specified

An entry like this in /etc/config/dhcp:

    config 'host'
        option 'name' 'pc2'
        option 'ip' '192.168.100.56'
        option 'dns' '1'

results in a /tmp/hosts/dhcp entry that looks like this:

    192.168.100.56 .lan

Obviously it should say "pc2.lan".

This happens because $name is set to "" in order to support the MAC-less
syntax: "--dhcp-host=lap,192.168.0.199".  Fix this by reordering the
operations.  Also, refuse to add a DNS entry if the hostname or IP is
missing.

Fixes #17683

Reported-by: Kostas Papadopoulos <kpapad75@travelguide.gr>
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42319 3c298f89-4303-0410-b956-a3cf2f4a3e73