summaryrefslogtreecommitdiffstats
path: root/sys/dev/bwn
Commit message (Collapse)AuthorAgeFilesLines
* MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.mav2015-04-211-1/+1
| | | | | In some cases limits are just not needed, in others -- DFLTPHYS is the right constant to use instead.
* MFC r260444:kevlo2014-02-171-3/+3
| | | | | | | | | | | | | Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED. The origin of WEP comes from IEEE Std 802.11-1997 where it defines whether the frame body of MAC frame has been encrypted using WEP algorithm or not. IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates whether the frame is protected by a cryptographic encapsulation algorithm. Reviewed by: adrian, rpaulo
* Fixing a clang warning about using uninitialized variable.hiren2013-05-061-1/+1
| | | | | | PR: 176712 Suggested by: jhb Approved by: sbruno (mentor)
* Revert r249800 aseadler2013-04-231-1/+0
| | | | | | | | - it is incorrect: In the 'back' case you want to reuse the previous mbuf. - it was not reviewed by wireless@ Requested by: jhb, adrian
* Avoid warning about uninitalized variableeadler2013-04-231-0/+1
| | | | | | PR: kern/176712 Submitted by: Hiren Panchasara <hiren.panchasara@gmail.com> (earlier vesion) Approved by: cperciva (mentor)
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-041-4/+4
| | | | malloc(9) flags in sys/dev.
* Fix some net80211 enum nits:bschmidt2011-12-171-6/+6
| | | | | | | | | | - 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@
* - fix typoeadler2011-12-101-1/+1
| | | | Approved by: kib@
* s,KOBJMETHOD_END,DEVMETHOD_END,g in order to fully hide the explicit mentionmarius2011-11-221-1/+1
| | | | of kobj(9) from device drivers.
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+2
| | | | | | 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.
* Remove dead code, "error" doesn't change between this check and thebrueffer2011-10-081-4/+0
| | | | | | | | previous one. CID: 3254 Found with: Coverity Prevent(tm) MFC after: 1 week
* Do a sweep of the tree replacing calls to pci_find_extcap() with calls tojhb2011-03-231-1/+1
| | | | pci_find_cap() instead.
* Pull ieee80211_ratectl_node_init() calls from drivers into net80211.bschmidt2011-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
* sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.mdf2011-01-121-3/+3
| | | | Commit the rest of the devices.
* Fix double ;;kevlo2010-12-061-2/+2
|
* Instead of using the AMRR ratectl algo as default for drivers which havebschmidt2010-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
* Small grammar nit in a printf message.joel2010-10-121-1/+1
|
* Introduce IEEE80211_C_RATECTL, drivers which use the ratectl frameworkbschmidt2010-08-141-0/+1
| | | | | | should set this capability. MFC after: 2 weeks
* Fixes a mistake to calculate CALC_COEFF2() value that tmp[3] isweongyo2010-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
* Fixes a bug for LP PHY that some frames have 2 padding bytes at theweongyo2010-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
* - fixes a bug that it didn't initialize the ratectl after association;weongyo2010-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
* Add new tunable 'net.link.ifqmaxlen' to set default send interfacesobomax2010-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
* ifp->if_ipackets++ when RX packet interrupts are occurred.weongyo2010-04-241-0/+2
| | | | MFC after: 3 days
* net80211 rate control framework (net80211 ratectl).rpaulo2010-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
* enables S/W beacon miss handler.weongyo2010-03-141-0/+2
| | | | Reported by: imp
* Fix build breakage introduced in r204922.yongari2010-03-101-2/+1
|
* uses KOBJMETHOD_END macro to indicate the end of method table.weongyo2010-03-091-1/+1
| | | | Submitted by: yongari
* o uses bus accessor macros to read values from ivar so no more valuesweongyo2010-03-092-399/+350
| | | | | | | | | | | 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]
* fixes an attached-at-boot issue that bwn(4) using device_identifyweongyo2010-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
* calculates the integer square root if a positive integer X is largerweongyo2010-03-011-4/+5
| | | | | | than 256 instead of using sqrt_table. Reported by: Joe Marcus Clarke <marcus at freebsd dot org>
* fixes a bug to load firmware images for LP PHY. For LP PHY always,weongyo2010-02-271-2/+3
| | | | `lp_' string is contained in its full image names.
* supports the adhoc demo mode that it's tested on modified aircrack-ngweongyo2010-02-271-1/+3
| | | | | | suite and worked. Submitted by: Paul B Mahol <onemda at gmail dot com>
* don't need to check BWN_RX_PHYST0_SHORTPRMBL flag because it's alreadyweongyo2010-02-271-2/+0
| | | | | | handled in later. Reported from: imp, nwhitehorn
* o adds sysctl variables to show device statistics.weongyo2010-02-232-10/+37
| | | | | | o records RTS success/fail statistics. Pointed by: imp
* fixes a compile error; invalid type argument of '->'.weongyo2010-02-231-1/+1
|
* Fix compilation problems with INVARIANTS.imp2010-02-231-27/+20
| | | | | | # also limit RX decryption attempted messages to 50 Reviewed by: weongyo
* o print msgs with length if the frame is too short to pass to net80211.weongyo2010-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.
* adds bwn(4) driver for supporting Broadcom BCM43xx chipsets.weongyo2010-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.
OpenPOWER on IntegriCloud