]> git.ipfire.org Git - thirdparty/hostap.git/commit
bsd: Enable auto configuration
authorMasashi Honma <honma@ictec.co.jp>
Mon, 8 Feb 2010 19:14:22 +0000 (21:14 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Feb 2010 19:14:22 +0000 (21:14 +0200)
commit5197244a04d0a4c0d6caa7477a68d21af8108205
tree1e1e0e5884ec33332e92a10d7aef9e2cf9d16889
parent82f36163aca9b10e42ff78593f1c9b09d745eff6
bsd: Enable auto configuration

On NetBSD, we should configure some parameters manually out of hostapd
like below.

  ifconfig ath0 mediaopt hostap
  ifconfig ath0 mode 11g
  ifconfig ath0 chan 6

This patch does these automatically. Maybe there will be some
objections, like "hardware configuration is not hostapd/wpa_supplican's
work". So I will write the reasons why I made this patch.

1. For usability.
2. The first command fails when previous state is adhoc. This patch is
free from previous state.
3. Some driver wrappers configure these automatically (like nl80211).
4. I have wasted time trying to find out these command were needed :(
src/drivers/driver_bsd.c