Commit Graph

120 Commits

Author SHA1 Message Date
rpaulo
083dd1de65 Merge hostapd / wpa_supplicant 2.0.
Reviewed by:	adrian (driver_bsd + usr.sbin/wpa)
2013-07-04 21:12:58 +00:00
eadler
2a5622a76f Teach wpa_supplicant to properly compute wireless signal strength.
PR:		bin/170631
Submitted by:	Daan Vreeken <Daan@vitsch.nl>
Reviewed by:	adrian
2013-05-11 20:55:14 +00:00
issyl0
44ccaabd5d Document all of the options that wpa_supplicant accepts.
PR:		docs/171755
Reviewed by:	gavin
Approved by:	gabor (mentor)
MFC after:	5 days
2012-11-07 15:47:36 +00:00
gjb
ab47242507 Xref mwl(4) and rum(4) in hostapd(8).
MFC after:	3 days
2012-07-18 23:32:12 +00:00
wblock
9fa9a2acad Fixes to man8 groff mandoc style, usage mistakes, or typos.
PR:		168016
Submitted by:	Nobuyuki Koganemaru
Approved by:	gjb
MFC after:	3 days
2012-05-24 02:24:03 +00:00
gjb
2ad549ab3d Reword hostapd.conf(5) sentence.
Suggested by:	hrs
MFC after:	3 days
X-MFC-With:	r235337 (a bit delayed...)
2012-05-16 01:59:09 +00:00
joel
3a772ce0a6 Remove end of line whitespace. 2012-05-12 19:59:37 +00:00
gjb
67d88d49d4 General mdoc(7) and typo fixes.
PR:		167804
Submitted by:	Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after:	3 days
2012-05-12 15:08:22 +00:00
bschmidt
fe557e13aa Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

Tested by:	lev
MFC after:	2 weeks
2012-04-29 12:48:52 +00:00
bschmidt
b94d273514 Move crypto stuff into a common Makefile. While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

MFC after:	2 weeks
2012-04-28 11:11:53 +00:00
bschmidt
ec5210f39c not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
the defines too

MFC after:	2 weeks
2012-04-28 11:02:32 +00:00
bschmidt
b8cfac7d01 enable EAP_GTC and EAP_OTP to match upstream's default configuration
MFC after:	2 weeks
2012-04-28 11:01:12 +00:00
bschmidt
0a3070da3b Follow up r234711 and do same for the supplicant, one file/option per
line. While here merge the options which are always enabled.

MFC after:	2 weeks
2012-04-28 10:59:29 +00:00
theraven
83be402c4a Add a note to hostapd.conf about an unhelpful error message in the hope that
it won't confuse anyone else in the future.

MFC after:	1 week
2012-04-27 15:35:09 +00:00
bschmidt
c4d8dce696 fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running.

Tested by:	Johann Hugo <jhugo at meraka.csir.co.za>
MFC after:	2 weeks
2012-04-26 17:35:11 +00:00
kevlo
0fd71d974e Mention run(4) 2012-02-09 08:33:04 +00:00
emaste
206e1ce96f Add missing line continuation \. It did not cause any issue because
the same path is already being included in ../Makefile.inc.

PR:		164192
Submitted by:	Devin Teske <dteske vicor com>
MFC after:	2 weeks
2012-01-18 02:44:22 +00:00
uqs
415a3a9b96 Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
kevlo
80dd636e8f Remove duplicated header files 2011-06-24 07:05:20 +00:00
obrien
cddd210098 * Add the readline(3) API to libedit. The libedit versions of
{readline,history}.h are in /usr/include/edit so as to not conflict with
  the GNU libreadline versions.  To use the libedit readline(3) one should
  add "-I/usr/include/edit" to their Makefile
  (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).

* Enable its use in the BSD licensed utilities that support readline(3).

* To make it easier to sync libedit development with NetBSD, histedit.h
  is moved into libedit's directory as history shows shown we keep merging
  it into that location.

Obtained from:	NetBSD
Sponsored by:	Juniper Networks
2011-04-05 18:41:01 +00:00
imp
138848dd32 Add notes about ASCII/Hex WEP keys 2011-02-20 17:54:49 +00:00
bschmidt
3a8f983977 Fix build on bigendian archs. 2010-12-19 09:18:14 +00:00
bschmidt
2bbf443a5b Unbreak hostapd. This code has been explicitly removed in upstream versions. 2010-12-18 20:29:41 +00:00
bschmidt
d28d2b63f1 Fix some whitespace nits. 2010-12-18 20:27:09 +00:00
bschmidt
c979129599 Change order in wpa_driver_bsd_ops to match upstream code. Add description
while here.
2010-12-18 20:25:25 +00:00
bschmidt
7f5fd9f20e Add a comment explaining the undefs, while here remove one which is not
required.
2010-12-18 20:23:28 +00:00
bschmidt
ae056a2459 Rename bsd_set_iface_flags to bsd_ctrl_iface and change arguments to match
upstream. For the same reason rewrite bsd_get_seqnum.
2010-12-18 20:22:15 +00:00
bschmidt
428cbdd872 Import bsd_configure_wpa() to sync with upstream code. 2010-12-18 20:17:10 +00:00
bschmidt
d18aa716c5 Prefer os_memset, os_strlcpy and os_free. While here adjust the return
value checks for 2 ioctl calls and rewrite error handling in bsd_init
to better integrate with upstream code.
2010-12-18 20:15:47 +00:00
bschmidt
aeb5d16357 Remove some unused variables and unnecessary casts. 2010-12-18 20:13:42 +00:00
bschmidt
b081c6596f Remove debug messages which are no longer present in upstream code. While
here remove some explicit line breaks.
2010-12-18 20:11:09 +00:00
bschmidt
2f541c23c7 Rename iface to ifname to match the upstream code. 2010-12-18 20:08:21 +00:00
bschmidt
13a09021da Rename ioctl_sock to just sock to match the upstream code. While here
remove the no longer used wext_sock and bsd_driver_ops variables.
2010-12-18 20:04:47 +00:00
bschmidt
8c7d2b2129 Move some functions around to match the upstream order. 2010-12-18 20:00:28 +00:00
bschmidt
de693bb747 Add bsd_send_mlme_param to aggregate IEEE80211_IOC_MLME ioctls:
- merge bsd_set_sta_authorized and bsd_sta_set_flags
- change bsd_set_sta_authorized, bsd_sta_deauth and bsd_sta_disassoc
  to use bsd_send_mlme_param
2010-12-18 19:58:23 +00:00
bschmidt
7828332436 Change bsd_del_key() to match upstream code:
- change order of if/else
- move wpa_printf() into the condition
- change unsigned char* to u8*
- prefer os_memset/os_memcpy
2010-12-18 19:56:45 +00:00
bschmidt
bb1eb85dcb Aggregate SIOCS80211 and SIOCG80211 ioctl request code. While here, bring
the wpa_printf()/perror() messages in sync with upstream code.
2010-12-18 19:55:19 +00:00
rpaulo
375d9676a4 Adapt for wpa_supplicant / hostapd 0.7.3. 2010-11-03 10:44:25 +00:00
uqs
cc627cc10e mdoc: remove unused/empty macros 2010-08-02 13:11:27 +00:00
bschmidt
3b1f97758a - Introduce IEEE80211_KEY_NOREPLAY, a per-key flag to ignore replay
violations.
- Use SIOCGIFMEDIA to determine VAP's opmode, cache it and set
  IEEE80211_KEY_NOREPLAY for AHDEMO and IBSS.

Approved by:	rpaulo (mentor)
2010-07-01 20:50:12 +00:00
rpaulo
d466ac1cf2 Update for hostapd & wpa_supplicant 0.6.10. 2010-06-14 15:38:30 +00:00
uqs
64c451d29e mdoc: move remaining sections into consistent order
This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.

Found by:	mdocml lint run
Reviewed by:	ru
2010-05-13 12:08:11 +00:00
bschmidt
a98b1eb99d Add WPA-None support:
* WPA-None requires ap_scan=2:
  The major difference between ap_scan=1 (default) and 2 is, that no
  IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a
  dependency on those. For example the call to wpa_driver_bsd_scan()
  sets the interface UP, this never happens, therefore the interface
  must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID
  also is not called, which means that the SSID has not been set prior
  to the IEEE80211_MLME_ASSOC call.
* WPA-None has no support for sequence number updates, it doesn't make
  sense to check for replay violations..
* I had some crashes right after the switch to RUN state, issue is
  that sc->sc_lastrs was not yet defined.

Approved by:	rpaulo (mentor)
MFC after:	3 weeks
2010-04-10 13:54:00 +00:00
sam
1ad78eee35 Enable _DIRENT_HAVE_D_TYPE so wpa_cli scans directories properly
for it's unix domain socket.  Before this change wpa_cli would take
the first file in the directory that was not "." or "..".

Submitted by:	Brandon Gooch <jamesbrandongooch@gmail.com>
MFC after:	3 days
2009-08-23 16:04:10 +00:00
sam
6605d521a8 fix Jouni's email address
Approved by:	re (blanket)
2009-07-12 19:58:52 +00:00
maxim
8c6aabce2b o Fix usage() prototype [1] and correct its call.
Submitted by:	ed [1]
2009-06-23 08:51:11 +00:00
maxim
0761ade8ac o style(9) usage() definition: it doesn't need an argument. 2009-06-23 05:55:56 +00:00
maxim
f03ffbff9f o Remove unneeded argument in fprintf(3) call in usage().
Submitted by:	Pawel Worach
2009-06-23 05:51:48 +00:00
sam
ae91f641c2 Do not force the mtu to 2290; this was done to insure large EAPOL frames
could be handled w/o fragmentation but clobbers user-specified values
such as those required when the interface is bridged.

Submitted by:	jim@netgate.com
Reviewed by:	Jouni Malinen
MFC after:	3 days
2009-06-05 17:19:55 +00:00
sam
68e7f74c45 no need to for gnu89 any more 2009-03-15 01:39:16 +00:00