summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
Commit message (Collapse)AuthorAgeFilesLines
* - Introduce IEEE80211_KEY_NOREPLAY, a per-key flag to ignore replaybschmidt2010-07-011-0/+34
| | | | | | | | violations. - Use SIOCGIFMEDIA to determine VAP's opmode, cache it and set IEEE80211_KEY_NOREPLAY for AHDEMO and IBSS. Approved by: rpaulo (mentor)
* Add WPA-None support:bschmidt2010-04-101-1/+12
| | | | | | | | | | | | | | | | | | * 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
* update to 0.6.8sam2009-03-021-3/+2
| | | | Reviewed by: thompsa
* o update for vapssam2008-04-201-19/+127
| | | | | | o add private wired driver that fixes various bugs in the vendor version Submitted by: thompsa (ndis fixups)
* Change wpa_supplicant to down the interface at the start of the init routine.thompsa2007-11-051-3/+12
| | | | | | | | | | | | | | | | | | wpa_supplicant expects that it has exclusive access to the net80211 state so when its starts poking in the WEP/WPA settings and the card is already scanning it can cause net80211 to try and associate incorrectly with a protected AP. This is an inconvenience for firmware based cards such as iwi where it can be sent an auth instruction with incomplete security info and cause a firmware error. Remove the 'ifconfig up' from network.subr since wpa_supplicant will immediately down the interface again. Reported by: Guy Helmer (and others) Reviewed by: sam, brooks, avatar MFC after: 3 days
* track net80211 changes to get scan results ioctlsam2007-06-111-5/+5
|
* must byte swap key rsc for big-endian systemssam2007-04-261-0/+1
| | | | | Obtained from: netbsd MFC after: 1 week
* add debug msgsam2006-04-201-0/+3
|
* remove some unnecessary perror callssam2006-04-171-2/+0
| | | | | Noticed by: Jouni Malinen MFC after: 2 weeks
* update for v0.4.8 import of wpa_supplicant and hostapdsam2006-03-071-1/+2
| | | | MFC after: 2 weeks
* use the specified key index for non-group keys; this fixes staticsam2006-02-211-4/+5
| | | | | | | | | 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
* o correct alignment of 802.11 addresses passed to ether_ntoa to fixsam2005-08-301-5/+11
| | | | | | | | segfaults on amd64 o while here correct printf formats for size_t args Identified by: Pascal Hofstee MFC after: 3 days
* save+restore wpa, privacy, and roaming settingssam2005-08-131-9/+57
| | | | MFC after: 2 weeks
* Correct problems with handling interfaces that go away (e.g. whensam2005-07-291-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | 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
* handle RTM_IFINFO events so we terminate when an interface issam2005-07-081-1/+14
| | | | | | | marked down Reviewed by: brooks, avatar Approved by: re (scottl)
* Update key handling:sam2005-07-051-12/+27
| | | | | | | | | | | | | | | 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)
* o improve error msg for ioctl failuressam2005-06-091-1/+6
| | | | o zero mlme struct before use
* Catch up with changes in wpa_supplicant:sam2005-06-071-37/+87
| | | | | | | | | | 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__/
* freebsd pieces of wpa supplicant supportsam2005-06-051-0/+636
Reviewed by: brooks
OpenPOWER on IntegriCloud