summaryrefslogtreecommitdiff
path: root/sys/net80211
AgeCommit message (Collapse)Author
2006-12-29fix the key buffer size used for software wep, this could causeReyk Floeter
problems with non-standard wep keys >= 104 bits. thanks to Alexander Bluhm ok mglocker@ jsg@
2006-12-25print the phy mode in IFF_DEBUG status output which helps to debugReyk Floeter
dual/multi mode chipset operation. ok jsg@
2006-12-20Put all net80211 interfaces into the ``wlan'' interface group. Idea from me,Alexander Yurchenko
name ``wlan'' from henning@. ok mbalmer@, reyk@, henning@, msf@
2006-11-26avoid extra inclusions; ok jsgTheo de Raadt
2006-11-26do not have each net80211 driver define its own rates structures. if they useTheo de Raadt
the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker
2006-11-15s/roundup/howmany/ where it makes sense.Damien Bergamini
2006-11-13fix a possible NULL deref.Damien Bergamini
2006-11-03Add two new functions:Damien Bergamini
- ieee80211_get_rts - ieee80211_get_cts_to_self that can be use by drivers for chipsets that don't offer hardware assisted RTS/CTS protection (like ral/ural/rum). "no objections here" jsg@
2006-10-19s/Mhz/MHz/ in comments and printf() stringsTom Cosgrove
ok jsg@
2006-08-29Fix handling of beacon frames by stations while they're associated.Damien Bergamini
Changes in the ERP information element and in the capinfo field were not detected properly, so the drivers were not able to adjust their settings (like short slot time, short preamble, protection mode etc...) dynamically. Should fix BSS mode with both 802.11b and 802.11g stations. ok reyk@
2006-08-29make ic_stats.is_rx_tooshort statistic more accurate.Damien Bergamini
cosmetic tweaks. ok reyk@
2006-08-29Change the way ieee80211_fix_rate() handles the IEEE80211_F_DOFRATE flag.Damien Bergamini
Instead of removing the rates from the node's rate set, just check that the fixed rate is present in the rate set. Otherwise, the node will be marked non-ERP which will force the use of protection mode (either CTS-to-self or RTS/CTS) in an 802.11g network and degrade performance. This fixes HostAP mode for 11g with a fixed rate. Problem originally reported by Sam Fourman Jr. Code from FreeBSD. ok reyk@, "no objections here" jsg@
2006-08-19move computation of mbps after checking the value of ni->ni_txrateDamien Bergamini
2006-07-29ALIGNED_POINTER is always defined.Miod Vallat
2006-06-27add the net80211 hostap options "nwflag hidenwid" for hidden SSID modeReyk Floeter
and "nwflag nobridge" to prevent inter-station communications. "hidenwid" will also work with wi(4) to replace the old -E 3 option of wicontrol. ok damien@ jmc@
2006-06-24ieee80211_cfgget() and ieee80211_cfgset() are dead; ok jsgTheo de Raadt
2006-06-23add an optional max_rssi attribute to the ieee80211com structure andReyk Floeter
allow to export the RSSI Max value with ioctls and by radiotap headers. ok damien@ jsg@ description: we currently use "dB" as an indication for the signal strength in ifconfig and in the radiotap headers. it means "decibel difference from an arbitrary, fixed reference". this is quite confusing, because different chipsets have different references for the dB/rssi values. we can use the plain RSSI which is described in IEEE 802.11: "The receive signal strength indicator (RSSI) is an optional parameter that has a value of 0 through RSSI Max.". all wireless chipsets have something like a RSSI (normally as a Rx descriptor field), but the value for RSSI Max is chipset-specific. if we know the RSSI Max, we can calculate a percentage which is much easier to understand for the user. we even don't have to use the absolute RSSI Max, we can use an average RSSI Max, figured out by monitoring and tuning the RSSI Max of the drivers. if the user gets a signal of 110%, it would mean "better than the average Max signal". there's no need to do any RSSI calculations in the kernel, it just passes the the relative rssi and max_rssi values to userspace. this is done in the ieee80211_nodereq ioctl structure and possible with a new radiotap header. the radiotap RSSI header allows to get a flexible but common signal indicator instead of the complex and unrelated dB/dBm signal fields. it must include two 8bit values current rssi and RSSI max.
2006-06-19unbreak the code if compiled with IEEE80211_DEBUG by using the rightReyk Floeter
node attribute. ok damien@, figured out by claudio@
2006-06-18s/memcmp/IEEE80211_ADDR_EQ/Damien Bergamini
2006-06-18Improve 802.11b/g interoperability and move toward better complianceDamien Bergamini
with IEEE Std 802.11g-2003 standard: - add ERP Information Element in probe responses and beacons - keep track of the number of associated non-ERP STAs and non-short slot time capable STAs in the BSS - enable use of RTS/CTS or CTS-to-self protection when required by the BSS - add a ic_updateslot() callback to notify drivers of slot time changes - cleanup computation of mgmt frames sizes in ieee80211_output.c - nuke unnecessary <sys/cdefs.h> includes - remove an unused macro (LOGICALLY_EQUAL) while i'm here From {free,net}bsd, with additional fixes. ok brad@, reyk@
2006-06-17s/int/u_int/gDamien Bergamini
2006-06-17protect those files against multiple inclusions too.Damien Bergamini
2006-06-17Move AMRR rate control algorithm out of wpi(4) and ural(4), into net80211.Damien Bergamini
ok brad@
2006-05-21account for the size of a 802.11 header in ieee80211_getmbuf().Damien Bergamini
fix some typos while i'm here. ok reyk@ brad@
2006-05-19use ieee80211_add_ssid() in ieee80211_beacon_alloc() and wpi(4) insteadDamien Bergamini
of duplicating the code. last commit was ok reyk@
2006-05-19- export ieee80211_add_ssid() just like ieee80211_add_(x)rates() so I don'tDamien Bergamini
need to duplicate the code in wpi(4) - fix ieee80211_alloc_beacon() - clean two comments while i'm here
2006-04-22typo.Federico G. Schwindt
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-02-20Fix kernel builds without bpfilter. Linking is still broken.Damien Bergamini
"Please commit this diff ASAP" brad@
2006-02-19Fix a comment in ieee80211_next_scan().Damien Bergamini
2006-01-11Disable shared key mode until we have a way for the user to specifyTodd C. Miller
that they explicitly want it. What we have currently doesn't seem to work anyway. Add support for specifying a status type when sending managemnent frames; adapted from FreeBSD. OK jsg@
2006-01-04Remove redundant calls to bpfdetach.Can Erkin Acar
ok brad@
2006-01-02use the correct format string directive %llu instead of "%ull".Reyk Floeter
pointed out by Thorsten Glaser.
2005-12-18Update my e-mail address in the copyright statement, no binary changes.Reyk Floeter
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@