aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn
Commit message (Collapse)AuthorAgeFilesLines
* MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.Alexander Motin2015-04-211-1/+1
| | | | | | | | In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead. Notes: svn path=/stable/9/; revision=281827
* MFC: r227309 (partial)Marius Strobl2013-03-091-1/+2
| | | | | | | | | | | Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static. Notes: svn path=/stable/9/; revision=248085
* MFC: r243857 (partial)Marius Strobl2013-03-091-4/+4
| | | | | | | | Mechanically substitute flags from historic mbuf allocator with malloc(9) flags in sys/dev. Notes: svn path=/stable/9/; revision=248078
* MFC r225941:Dimitry Andric2012-04-281-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix an unaligned access issue; tidy up OFDM/DS rate decoding from the PLCP. This fixes a panic on PPC. Submitted by: novel Obtained from: OpenBSD, sys/dev/ic/bwi.c r1.89 MFC r226181: Update from OpenBSD: Include 0x4402 in the bbp id mapping table used on older devices. http://bcm-specs.sipsolutions.net/BackPlane agrees. Obtained from: OpenBSD, sys/dev/ic/bwi.c r1.88 MFC r226182: Fix an incorrect use of sizeof(). Obtained from: OpenBSD sys/dev/ic/bwi.c r1.87 MFC r228621: Fix some net80211 enum nits: - ic_vap_create() uses an ieee80211_opmode argument - ieee80211_rate2media() takes an ieee80211_phymode argument - ieee80211_plcp2rate() takes an ieee80211_phytype argument - cast to enum ieee80211_protmode and ieee80211_roamingmode to silence compiler warnings Submitted by: arundel@ Notes: svn path=/stable/9/; revision=234753
* MFC r226173, r227843, r227848 and r227908:Hans Petter Selasky2011-12-311-1/+1
| | | | | | | | | Use DEVMETHOD_END to mark end of device methods. Remove superfluous device methods. Add some missing __FBSBID() macros. Notes: svn path=/stable/9/; revision=229093
* MFC: r226146Christian Brueffer2011-10-151-4/+0
| | | | | | | | | | Remove dead code, "error" doesn't change between this check and the previous one. Approved by: re (kib) Notes: svn path=/stable/9/; revision=226387
* Do a sweep of the tree replacing calls to pci_find_extcap() with calls toJohn Baldwin2011-03-231-1/+1
| | | | | | | pci_find_cap() instead. Notes: svn path=/head/; revision=219902
* Pull ieee80211_ratectl_node_init() calls from drivers into net80211.Bernhard Schmidt2011-01-171-6/+0
| | | | | | | | | | | This fixes hostap mode for at least ral(4) and run(4), because there is no sufficient call into drivers which could be used initialize the node related ratectl variables. MFC after: 3 days Notes: svn path=/head/; revision=217511
* sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.Matthew D Fleming2011-01-121-3/+3
| | | | | | | Commit the rest of the devices. Notes: svn path=/head/; revision=217323
* Fix double ;;Kevin Lo2010-12-061-2/+2
| | | | Notes: svn path=/head/; revision=216227
* Instead of using the AMRR ratectl algo as default for drivers which haveBernhard Schmidt2010-11-061-1/+0
| | | | | | | | | | | | | | | | | | the IEEE80211_C_RATECTL flag set, default to NONE for all drivers. Only if a driver calls ieee80211_ratectl_init() check if the NONE algo is still selected and try to use AMRR in that case. Drivers are still free to use any other algo by calling ieee80211_ratectl_set() prior to the ieee80211_ratectl_init() call. After this change it is now safe to assume that a ratectl algo is always available and selected, which renders the IEEE80211_C_RATECTL flag pretty much useless. Therefore revert r211314 and 211546. Reviewed by: rpaulo MFC after: 2 weeks Notes: svn path=/head/; revision=214894
* Small grammar nit in a printf message.Joel Dahl2010-10-121-1/+1
| | | | Notes: svn path=/head/; revision=213719
* Introduce IEEE80211_C_RATECTL, drivers which use the ratectl frameworkBernhard Schmidt2010-08-141-0/+1
| | | | | | | | | should set this capability. MFC after: 2 weeks Notes: svn path=/head/; revision=211314
* Fixes a mistake to calculate CALC_COEFF2() value that tmp[3] isWeongyo Jeong2010-07-221-2/+2
| | | | | | | | | | | used even if it's unreachable. PR: kern/144505 Submitted by: Henning Petersen <henning.petersen at t-online dot de> MFC after: 1 week Notes: svn path=/head/; revision=210393
* Fixes a bug for LP PHY that some frames have 2 padding bytes at theWeongyo Jeong2010-07-101-10/+11
| | | | | | | | | | | | start so we should adjust the mbuf if the driver is running in PIO mode. Now it should work well with WPA authentication and association for LP PHY devices. Tested by: Warren Block <wblock at wonkity.com> MFC after: 1 month Notes: svn path=/head/; revision=209888
* - fixes a bug that it didn't initialize the ratectl after association;Weongyo Jeong2010-05-151-3/+9
| | | | | | | | | | | | | | so ni_txrate returned 0 which is a invalid result. - The fourth argument of ieee80211_ratectl_tx_complete() could be not NULL. Reported by: Gustau P?rez <gperez at entel.upc.edu> Tested by: Gustau P?rez <gperez at entel.upc.edu>, Ian FREISLICH <ianf at clue.co.za> MFC after: 3 days Notes: svn path=/head/; revision=208120
* Add new tunable 'net.link.ifqmaxlen' to set default send interfaceMaxim Sobolev2010-05-031-2/+2
| | | | | | | | | | | | | queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month Notes: svn path=/head/; revision=207554
* ifp->if_ipackets++ when RX packet interrupts are occurred.Weongyo Jeong2010-04-241-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=207176
* net80211 rate control framework (net80211 ratectl).Rui Paulo2010-04-072-69/+17
| | | | | | | | | | | | | | | | | | | | This framework allows drivers to abstract the rate control algorithm and just feed the framework with the usable parameters. The rate control framework will now deal with passing the parameters to the selected algorithm. Right now we have AMRR (the default) and RSSADAPT but there's no way to select one with ifconfig, yet. The objective is to have more rate control algorithms in the net80211 stack so all drivers[0] can use it. Ideally, we'll have the well-known sample rate control algorithm in the net80211 at some point so all drivers can use it (not just ath). [0] all drivers that do rate control in software, that is. Reviewed by: bschmidt, thompsa, weyongo MFC after: 1 months Notes: svn path=/head/; revision=206358
* enables S/W beacon miss handler.Weongyo Jeong2010-03-141-0/+2
| | | | | | | Reported by: imp Notes: svn path=/head/; revision=205141
* Fix build breakage introduced in r204922.Pyun YongHyeon2010-03-101-2/+1
| | | | Notes: svn path=/head/; revision=204983
* uses KOBJMETHOD_END macro to indicate the end of method table.Weongyo Jeong2010-03-091-1/+1
| | | | | | | Submitted by: yongari Notes: svn path=/head/; revision=204923
* o uses bus accessor macros to read values from ivar so no more valuesWeongyo Jeong2010-03-092-395/+346
| | | | | | | | | | | | | | are referenced directly from ivar pointer. It's to do like what other buses do. [1] o changes exported prototypes. It doesn't use struct siba_* structures anymore that instead of it it uses only device_t. o removes duplicate code and debug messages. o style(9) Pointed out by: imp [1] Notes: svn path=/head/; revision=204922
* fixes an attached-at-boot issue that bwn(4) using device_identifyWeongyo Jeong2010-03-031-8/+0
| | | | | | | | | | interface didn't be attached automatically at boot time so changes a approach to attach children based on leveraging some newbus niceties. Submitted by: nwhitehorn Notes: svn path=/head/; revision=204657
* calculates the integer square root if a positive integer X is largerWeongyo Jeong2010-03-011-4/+5
| | | | | | | | | than 256 instead of using sqrt_table. Reported by: Joe Marcus Clarke <marcus at freebsd dot org> Notes: svn path=/head/; revision=204542
* fixes a bug to load firmware images for LP PHY. For LP PHY always,Weongyo Jeong2010-02-271-2/+3
| | | | | | | `lp_' string is contained in its full image names. Notes: svn path=/head/; revision=204437
* supports the adhoc demo mode that it's tested on modified aircrack-ngWeongyo Jeong2010-02-271-1/+3
| | | | | | | | | suite and worked. Submitted by: Paul B Mahol <onemda at gmail dot com> Notes: svn path=/head/; revision=204436
* don't need to check BWN_RX_PHYST0_SHORTPRMBL flag because it's alreadyWeongyo Jeong2010-02-271-2/+0
| | | | | | | | | handled in later. Reported from: imp, nwhitehorn Notes: svn path=/head/; revision=204385
* o adds sysctl variables to show device statistics.Weongyo Jeong2010-02-232-10/+37
| | | | | | | | | o records RTS success/fail statistics. Pointed by: imp Notes: svn path=/head/; revision=204257
* fixes a compile error; invalid type argument of '->'.Weongyo Jeong2010-02-231-1/+1
| | | | Notes: svn path=/head/; revision=204256
* Fix compilation problems with INVARIANTS.Warner Losh2010-02-231-27/+20
| | | | | | | | | # also limit RX decryption attempted messages to 50 Reviewed by: weongyo Notes: svn path=/head/; revision=204242
* o print msgs with length if the frame is too short to pass to net80211.Weongyo Jeong2010-02-191-3/+8
| | | | | | | | o print key index for debugging if the frame is attempted to decrypt for WEP, AES or TKIP though currently HW decryption isn't supported. Notes: svn path=/head/; revision=204081
* adds bwn(4) driver for supporting Broadcom BCM43xx chipsets.Weongyo Jeong2010-02-163-0/+16272
o uses v4 firmware instead of v3. A port will be committed to create the bwn firmware module. o supports B/G and LP(low power) PHYs. o supports 32 / 64 bits DMA operations. o tested on big / little endian machines so should work on all architectures. It'd not connected to the build until the firmware port is committed. Notes: svn path=/head/; revision=203945