Allow hostapd driver configuration

Introduce BOARD_HOSTAPD_DRIVER_NAME that allows overriding hostapd driver
written in hostapd.conf.

Change-Id: I3ca7062603446ee3bd0e8c45a19dab7da1694768
Clamp MSS when tethering to fix broken fragmentation.

Adds a netfilter rule to allow tethering with ISPs that don't support
fragmented packets, but do advertise an appropraite path MTU.

Background: some ISPs don't support IP fragmentation, either because
they're afraid of IP fragmentation attacks, or their routers are braindead.
Usually this isn't an issue for connecting clients because their DHCP
responses include an interface MTU equal to the path MTU.  In response, the
client ensures during TCP handshakes that connections use an MSS that
results in TCP/IP packets never being fragmented.

However, problems occur when the connecting "client" is a NAT router (such
as a tethering phone).  Often the phone-tethered host interface (e.g., USB
RNDIS, 802.11, etc.) uses a preset MTU (usually 1500) that exceeds the path
MTU advertised by the ISP.  The host will open TCP connections with
too-large of an MSS, and inevitably large packets will become fragmented
and lost.  The fix is to have the router (phone) mangle TCP handshakes to
clamp the MSS such that generated TCP/IP packets never exceed the path MTU.
This implements such a fix as described in the iptables(8) man page.
Merge "Clamp MSS when tethering to fix broken fragmentation." into ics
Support LGE's version of the bcm4329 SoftAP

LGE has a number of SDIO and power-management patches on top of
bcm4329, which include separate pairs of functions to start/stop
the driver in STA or AP mode. Use LGE's SOFTAP priv functions if
WIFI_DRIVER_HAS_LGE_SOFTAP is true

Change-Id: Id90a679794f12bfd3a35f9e0608288ae72cefd5f
Do not delete all iptables rules

Insert bandwidth controller rules on top and do not delete possible
rules added at boot (e.g. init.d script)

Change-Id: I098840f1273ad5ee9d68957c5ccc2ea000d6fd23
Do not send extra data the client is not consuming.

Bug:6138617

This is to temporarily fix a problem in netd. In case of an error do
not send extra data that the client is not expecting. This causes a
netd crash.

Change-Id: Iadb375e326577857034c2a7d2e962e4242d4735f
Allow removing hostapd entropy parameter (-e)

Do not pass "-e WIFI_ENTROPY_FILE" to hostapd when
BOARD_HOSTAPD_NO_ENTROPY is set.

Change-Id: I219637d11b56650ff41e4b6f64b032b679eb673d
merge in jb-release history after reset to master
NatController: Raise the max length of an interface name

"rmnet_sdioX" has more than 10 characters, so devices using qcom's
SDIO_AL stuff were unable to use rmnet as an upstream tethering
iface

Change-Id: If4ae0060a135294583f38fc2d88c94675abccd79
merge in jb-release history after reset to master
Merge branch 'ics-mr1-release' of https://android.googlesource.com/platform/system/netd into aosp

Conflicts:
	SecondaryTableController.h

Change-Id: I38f047260af7edc17e1e8739264093459f7e40fb
Allow different lease time in tether start command

Make "tether start" recognize an optional argument for the lease time in
seconds. Defaults to 1 hour.

Change-Id: Ic65818fdb472a49c72fb56b1ad3ac33e4136a9a4
merge in jb-release history after reset to master
merge in jb-release history after reset to master
merge in jb-release history after reset to jb-dev
merge in jb-release history after reset to jb-dev
merge in jb-release history after reset to jb-dev
netd: TI softap for wl12xx devices
Merge remote-tracking branch 'aosp/jb-release' into cm10

Conflicts:
	BandwidthController.cpp
	SoftapController.cpp
	TetherController.cpp
	TetherController.h

Change-Id: I9fcb755d95f897f92f6e983b9b91a6368884463c