Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
cb9aecf05f freebsd pieces of wpa supplicant support
Reviewed by:	brooks
2005-06-05 21:18:53 +00:00