Commit Graph

147 Commits

Author SHA1 Message Date
Gabor Kovesdan
9b7995f5f5 - Remove reference for unexisting ndisapi(9)
PR:		docs/113127
Submitted by:	"O. Hartmann"<ohartman@mail.zedat.fu-berlin.de>
Reviewed by:	keramida
Approved by:	re (bmah)
MFC after:	3 days
2007-09-07 21:58:58 +00:00
Simon L. B. Nielsen
ab1438fb95 The wpa_passphrase(8) manual page states that it first appeared in
FreeBSD 6.2, but it didn't make it into RELENG_6_2.

Update the manual page to say "FreeBSD 6.3".

PR:		docs/114429
Submitted by:	Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after:	3 days
Approved by:	re (bmah)
2007-07-17 22:28:51 +00:00
Sam Leffler
f5d5722e6d update for wpa_supplicant 0.5.8 import:
o unix domain socket to wpa_cli is configured w/ CONFIG_CTRL_IFACE_UNIX
o terminate on last interface option is configured w/ CONFIG_TERMINATE_ONLASTIF
o ndis/Packet32.c fixups to force roaming mode to manual
o document new mixed_cell config knob

Submitted by:	thompsa (Packet32.c)
Reviewed by:	thompsa, sephe
Approved by:	re (hrs)
2007-07-11 16:04:08 +00:00
Sam Leffler
80e9f71ab5 update for 0.5.8 import
Approved by:	re (hrs)
2007-07-09 16:26:48 +00:00
Sam Leffler
552e0ccfb2 fixup mcast handling in bpf program; this enables forthcoming support
for 802.1x over wired interfaces

Submitted by:	Jouke Witteveen
Approved by:	re (hrs)
2007-07-09 15:57:10 +00:00
Sam Leffler
c49cc04cee track net80211 changes to get scan results ioctl 2007-06-11 03:57:46 +00:00
Sam Leffler
51b527aa32 must byte swap key rsc for big-endian systems
Obtained from:	netbsd
MFC after:	1 week
2007-04-26 20:19:05 +00:00
Sam Leffler
52f01b3b0e add wpa_passphrase utility to the build
PR:		bin/104457
Submitted by:	Henrik Brix Andersen
MFC after:	1 week
2006-11-17 19:38:51 +00:00
Ruslan Ermilov
bc84aa4ba3 Markup fixes. 2006-09-29 17:57:04 +00:00
Sam Leffler
b3f627ac81 incorporate Rui Paulo's work
Obtained from:	netbsd
2006-09-02 17:56:24 +00:00
Sam Leffler
c824b333f6 avoid null ptr deref
Obtained from:	netbsd
2006-05-27 23:04:30 +00:00
Sam Leffler
2767a3d79c correct static array overrun
Obtained from:	netbsd
2006-05-27 23:03:08 +00:00
Sam Leffler
bd6b0820f8 add debug msg 2006-04-20 05:03:21 +00:00
Sam Leffler
d533f717f0 remove some unnecessary perror calls
Noticed by:	Jouni Malinen
MFC after:	2 weeks
2006-04-17 00:17:29 +00:00
Ruslan Ermilov
e4a9274404 Add missing library dependencies. 2006-04-13 12:49:24 +00:00
Sam Leffler
2220e69353 adapt PacketGetAdapterNames to 0.4.8 calling convention
PR:		bin/94735
Submitted by:	Scot Hetzel <swhetzel@gmail.com>
Requested by:	scottl
2006-04-12 17:12:04 +00:00
Ruslan Ermilov
e1fe3dba5c Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Hiroki Sato
999b97c5e7 Fix version number when the feature was added.
Submitted by:	Yoshihiko Sarumaru (mistral at imasy dot or dot jp)
PR:		docs/93801 and docs/93803
MFC after:	2 days
2006-03-07 18:25:03 +00:00
Sam Leffler
99122c96a3 update for v0.4.8 import of wpa_supplicant and hostapd
MFC after:	2 weeks
2006-03-07 05:54:20 +00:00
Sam Leffler
7097537784 use the specified key index for non-group keys; this fixes static
wep key configure at key indices > 0 and 802.1x/EAPOL operation
with ap's that want the station to install a key at indices > 0.

Hard work by:	Joe Love
Reviewed by:	avatar
MFC after:	1 week
2006-02-21 23:55:38 +00:00
Sam Leffler
b3babfdc25 Change default build of wpa_supplicant to include EAPOL support;
ENABLE_WPA_SUPPLICANT_EAPOL is no more, now use NO_WPA_SUPPLICANT_EAPOL
to build with only WPA-PSK support.

Reviewed by:	ru, bsdimp (basic approach)
MFC after:	1 week
2006-02-14 23:51:21 +00:00
Wilko Bulte
6d072a6e04 Add an example for WEP.
OK-ed by: sam
2005-12-25 22:09:17 +00:00
Bill Paul
b2dec35043 Hide a diagnostic message under if (verbose) to avoid cluttering the
system log when not in verbose logging mode.
2005-10-21 16:57:57 +00:00
Bill Paul
06da5a1a05 Fix small grammar nit. 2005-10-20 18:33:46 +00:00
Bill Paul
d51c226b58 Implement the PacketGetVersion() routine, which is used in
the 0.4.x versions of wpa_supplicant.
2005-10-20 16:49:31 +00:00
Bill Paul
3108872113 Drain all pending events from the driver when we get an
RTM_IFINFO message, in case some were posted before ndis_events
was run. This keeps us in sync with wpa_supplicant.
2005-10-12 00:57:31 +00:00
Bill Paul
16f602c613 Make forwarding of connect/disconnect events optional. wpa_supplicant
seems to already be able to tell when it's associated and the extra
events just confuse it. Only forward media-specific events by default.
2005-10-10 20:40:28 +00:00
Bill Paul
8ad9af2c27 Enable -D ndis support in wpa_supplicant and add the ndis_events utility.
This allows wpa_supplicant to work with WPA and WPA2 compliant NDIS
drivers.
2005-10-10 17:51:12 +00:00
Sam Leffler
601079f992 o correct alignment of 802.11 addresses passed to ether_ntoa to fix
segfaults on amd64
o while here correct printf formats for size_t args

Identified by:	Pascal Hofstee
MFC after:	3 days
2005-08-30 15:59:49 +00:00
Sam Leffler
9c1909fe22 save+restore wpa, privacy, and roaming settings
MFC after:	2 weeks
2005-08-13 04:23:33 +00:00
Giorgos Keramidas
6fb9b618f5 Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after:	1 week
Thanks to:	Music band ``Chingon''
		for keeping me company while searching for these.
2005-07-31 03:30:48 +00:00
Sam Leffler
e45a56744b Correct problems with handling interfaces that go away (e.g. when
a card is ejected).  wpa_supplicant requires that internal events
for interfaces coming+going include a name but after an interface
is removed you cannot use if_indextoname to map the interface index
in the RTM_IFINFO (or RTM_IFANNOUNCE) msg to an interface name.
Instead record the interface index in the driver-private data area
and use that to filter msgs from the routing socket.  This insures
that when we have a message to process we know the interface name.
The end result is that we can now dispatch an "interface removed"
event that is understood when notified than an interface went away
(where previously the event dispatched was ignored because the
interface name was unrecognized).

This change also insures we only process events for our interface.

The only downside is that we can no longer wait for an interface
to arrive as we need to map the interface name to an index at
startup.  This is not important as wpa_supplicant should be launched
by devd and not include a separate mechanism for doing interface
discovery.

MFC after:	3 days
2005-07-29 05:57:28 +00:00
Sam Leffler
9bd22fb964 clear eloop registration when deinit'd the l2 packet support
MFC after:	3 days
2005-07-29 05:48:00 +00:00
Christian Brueffer
7f9f6cad46 Spelling and grammar fixes.
MFC after:	3 days
2005-07-13 05:39:47 +00:00
Sam Leffler
5ca4a14b24 handle RTM_IFINFO events so we terminate when an interface is
marked down

Reviewed by:	brooks, avatar
Approved by:	re (scottl)
2005-07-08 16:33:52 +00:00
Sam Leffler
8fb02d4f92 explicitly set IEEE80211_KEY_GROUP instead of depending on kernel kludge
Reviewed by:	avatar
Approved by:	re (scottl)
2005-07-05 17:42:27 +00:00
Sam Leffler
ddc11f59f2 Update key handling:
o use proper api for setting/deleting keys instead of depending
  on key indices
o check mac address to decide whether a key is unicast or group/global
o check set_tx on key set to decide whether a group/global key should
  also be marked as default
o explicitly set IEEE80211_KEY_GROUP flag for group keys instead of
  depending on kernel auto-add kludge

With the above changes static wep key handling works.

Reviewed by:	avatar
Approved by:	re (scottl)
2005-07-05 17:41:42 +00:00
Ruslan Ermilov
e516c0d97d Tidy up the markup (fixing some nearby content bugs).
Timeout from:	sam
Approved by:	re (blanket manpages)
2005-06-27 06:40:43 +00:00
Sam Leffler
ae0b1b7e07 move hostapd_cli to section 8
Approved by:	re (blanket wpa)
2005-06-17 05:38:43 +00:00
Sam Leffler
b9b8a416e8 o move hostapd to section 8
o add placeholder for hostapd.conf

Approved by:	re (blanket wpa)
2005-06-17 05:37:08 +00:00
Sam Leffler
6d0d11ef25 o move wpa_supplicant to section 8
o fillin wpa_supplicant.conf.5

Approved by:	re (blanket wpa)
2005-06-17 05:32:48 +00:00
Sam Leffler
079a892143 move wpa_cli to section 8 + minor wordsmithing
Approved by:	re (blanket wpa)
2005-06-17 03:08:59 +00:00
Sam Leffler
163baa0542 o improve error msg for ioctl failures
o zero mlme struct before use
2005-06-09 22:19:00 +00:00
Sam Leffler
8f0ba923ab add EAP-TTLS to the EAPOL group; may want a separate knob later 2005-06-07 23:50:37 +00:00
Sam Leffler
5d84f814e9 Catch up with changes in wpa_supplicant:
o reorg driver to consolidate state setup in the associate method
o add set_auth_alg method
o cleanup interface state on deinit
o change associate to use revised MLME ioctl api so we can support
  ap_scan=2 methodology
o cleanup associate to support WEP and no cipher cases
o s/__FUNCTION__/__func__/
2005-06-07 23:41:58 +00:00
Sam Leffler
e5224c3fd9 freebsd pieces of hostapd support 2005-06-06 02:13:42 +00:00
Sam Leffler
cb9aecf05f freebsd pieces of wpa supplicant support
Reviewed by:	brooks
2005-06-05 21:18:53 +00:00