summaryrefslogtreecommitdiff
path: root/sys/net80211
AgeCommit message (Collapse)Author
2005-12-09/* fall thru... */ -> /* FALLTHROUGH */Jonathan Gray
2005-11-03re-implement the bpf "filter drop" option that it actually works. theReyk Floeter
bpf FILDROP interface exists for about one year but the required interface to the drivers was missing - so it was useless. this new approach based on a design by henning@ uses a new mbuf flag to mark filtered packets and to drop them in the generic network stack input routines (like ether_input). for example; after some additional testing, this could be used by dhclient to filter everything except DHCP packets (track tech@ for a corresponding dhclient diff). the "filter dropped" packets won't reach the network stack. so it's probably some kind of a very basic application layer packet filter ;). ok canacar@, discussed with henning@ and others
2005-10-09if the wireless hostap interface belongs to a bridge, learn the node'sReyk Floeter
address dynamically on this interface after successful association. this could speed wireless roaming to openbsd accesspoints. ok jason@, jsg@ can't see anything obectionable
2005-10-07minor knfReyk Floeter
2005-09-13replace the node hash table with a red-black tree. this fixes someReyk Floeter
bugs in the node table (like duplicate nodes in hostap mode), we get rid of possible hash collisions, and it simplifies the code. tested by many, ok damien@, jsg@
2005-09-08mostly knfReyk Floeter
ok jsg@
2005-09-08Remove the last of the FreeBSD compatiblity goop.Jonathan Gray
ok reyk@
2005-09-08Remove FreeBSD if_printf compat function from net80211.Jonathan Gray
ok reyk@
2005-09-08reset the scan state for each new modeReyk Floeter
ok jsg@
2005-09-07Remove FreeBSD/NetBSD ifdef mess. We are not likely to beJonathan Gray
doing a wholesale merge with them in future. very enthusiastic ok from reyk@
2005-07-30remove a useless timeout after tx (decrease nasty delays whileReyk Floeter
scanning) and fix various other minor things in the ath(4) driver.
2005-05-28enable IFCAP_VLAN_MTU because IEEE 802.11 defines a MTU of about 2290.Reyk Floeter
successfully tested with ural, ath, atw, atu and ath. ok jsg@, brad@
2005-05-25add ifconfig -M option to replace wicontrol -L and -l for ap scanningReyk Floeter
and node listing. wicontrol is not supported by net80211 drivers anymore. further improvements will be done. ok dlg@, jsg@
2005-05-13do { } while (0) wrappers on debug printf macros. ok reyk@Jonathan Gray
2005-05-07Fix compilation with IEEE80211_DEBUG defined. Spotted by djm@.Jonathan Gray
ok djm@, reyk@
2005-04-21scan the next mode if nothing has been found. this is necessary if theReyk Floeter
device supports different incompatible modes in the same channel range, like like 11b and "pure" 11G mode. ok dlg@ pvalchev@
2005-04-20send raw 802.11 frames with bpf(4) using the IEEE802_11 orReyk Floeter
IEEE802_11_RADIO data link types. ok canacar@ damien@
2005-04-03remove redundant suser() checksUwe Stuehler
2005-04-02Protect SIOCSIFMTU, too.Uwe Stuehler
2005-04-01Protect more SIOCS* commands with suser() checks.Uwe Stuehler
2005-04-01Fix some ioctl permission checks on the basis of what if_wi.c does.Uwe Stuehler
2005-03-13fix whitespaceReyk Floeter
2005-03-11Make sure we associate an interface with the m_pkthdr inJonathan Gray
ieee80211_beacon_alloc. ok damien@ reyk@
2005-03-08make this compileMichael Shalayeff
2005-03-03addtion of a generic function for allocating beacons: ieee80211_beacon_alloc().Damien Bergamini
ok jsg@, reyk@, dlg@
2005-02-27remove dead code of unsupported ioctls from FreeBSD. we do it in aReyk Floeter
different way. ok deraadt@, martin@
2005-02-26Fix a problem introduced with the recent lru cache change.Jonathan Gray
Check that we actually have a node before trying to release it. This was causing a panic when playing with IBSS. ok reyk@
2005-02-23add all supported regulation domains. the forced COUNTRYCODE in ar5xxxReyk Floeter
is now disabled by default to use the value found in EEPROM. ok deraadt@
2005-02-17a new year and a new, less restrictive license. because it has to beReyk Floeter
free. go ahead miod@
2005-02-17derived from NetBSD:Reyk Floeter
--- Make the node table into an LRU cache: least-recently used nodes are at the end of the node queue. Change the reference-counting discipline: ni->ni_refcnt indicates how many times net80211 has granted ni to the driver. Every node in the table with ni_refcnt=0 is eligible to be garbage-collected. The mere presence of a node in the table does not any longer indicate its auth/assoc state; nodes have a ni_state variable, now. While I am here, patch ieee80211_find_node_for_beacon to do a "best match" by bssid/ssid/channel, not a "perfect match." This keeps net80211 from caching duplicate nodes in the table. --- ok deraadt@ dlg@, looks good jsg@
2005-02-15add the manual tx power option. this is supported by some prism2/2.5/3Reyk Floeter
cards in hostap mode but it depends on the firmware version. support for other wireless chipsets will be added in the future using the net80211-framework. ok robert@ bob@ danh@, tested by some others
2005-01-07add support for BIOCGDLTLIST and BIOCSDLT, see bpf(4)Reyk Floeter
ok canacar@, fgsch@, tested by some other people
2004-12-30shorter symbolic names for regulation domains and 2GHz channels for FCC1A.Reyk Floeter
2004-12-30replace __attribute__((__packed__)) with __packed.Reyk Floeter
2004-12-28Sync with recent NetBSD ieee80211_compute_duration() changes.Jonathan Gray
2004-12-25in real C, there is not , after the last enum entry; ok reykTheo de Raadt
2004-12-23From dyoung@NetBSD:Jonathan Gray
ieee80211.h r 1.9 #define the difference in microseconds between a fast and a slow preamble and PLCP header. ieee80211_output.c r 1.19 Fix a bug in ieee80211_compute_duration: the 802.11 Duration field in an 802.11 unicast data packet is equal to the duration of the SIFS and Acknowledgement. That is, the amount of time reserved *after* the packet has finished transmitting. Change the arguments to ieee80211_compute_duration: pass the entire packet length, not just the payload length. Add a 'debug' argument to ieee80211_compute_duration and its helper subroutine, ieee80211_compute_duration1. If debug != 0, ieee80211_compute_duration printfs its arguments and several local variables. In rtw(4), load the 802.11 Duration field with the result from ieee80211_compute_duration.
2004-12-23From dyoung@NetBSD:Jonathan Gray
Define for more bits in the Service field of the 802.11 PLCP Header. For use by the subroutine ieee80211_compute_duration, add struct ieee80211_duration, and #define a number of microsecond constants used for the transmit timing of 802.11 packets. Add the subroutine ieee80211_compute_duration, which computes for any packet the appropriate 802.11 Duration field, the PLCP Length field, as well as the Duration and Length fields for an RTS frame. atw(4), rtw(4), future drivers, and possibly ath(4) will share ieee80211_compute_duration. ok millert@
2004-12-06add a flag that lets a wireless card indicate it can receive probe responsesDavid Gwynne
or beacons on any channel during a scan. ok damien@ "come on" deraadt@
2004-11-25compatibility ioctls for things like "wicontrol ath0 -l" toReyk Floeter
list known stations on a net80211-based ap. ok millert@
2004-11-06fixed types in ieee80211_regdomain (thanks to Joerg Sonnenberger). now itReyk Floeter
also works with gcc3 (ok naddy@).
2004-11-03Use IFM_IEEE80211_IBSS for IBSS mode instead of IFM_IEEE80211_ADHOC.Claudio Jeker
With this ipw(4) works in IBSS mode. ok millert@ aaron@ damien@
2004-11-02Don't call memset() if MALLOC returns NULL; also fix the rcs ID.Todd C. Miller
From Patrick Latifi; OK reyk@
2004-11-02some changes merged in from netbsd. ieee80211_regdomain.# will be usedReyk Floeter
by sdr (software defined radios). ok deraadt@ millert@ damien@
2004-10-20CAPINFO_BITS from the current net/if_ieee80211.h header; fixesFederico G. Schwindt
CHNL_AGILITY printing too. deraadt ok.
2004-10-04need sys/param.h to compileMichael Shalayeff
2004-07-04fix a NetBSDism and a pasto left over from the import; ok millert@Christian Weisgerber
2004-06-28Don't restrict WEP keys to exactly 40 or 108 bits.Todd C. Miller
2004-06-28Enable AP scanning via the WI_RID_PRISM2 ioctl. Now atw(4) can doTodd C. Miller
ap scanning via wicontrol.
2004-06-27Hack to avoid panic in arc4maybeinit() due to rnd device not beingTodd C. Miller
attached yet.