aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn
Commit message (Collapse)AuthorAgeFilesLines
* Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.Kevin Lo2014-01-081-3/+3
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=260444
* The r48589 promised to remove implicit inclusion of if_var.h soon. PrepareGleb Smirnoff2013-10-261-0/+1
| | | | | | | | | | | to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=257176
* Fixing a clang warning about using uninitialized variable.Hiren Panchasara2013-05-061-1/+1
| | | | | | | | | PR: 176712 Suggested by: jhb Approved by: sbruno (mentor) Notes: svn path=/head/; revision=250314
* Revert r249800 asEitan Adler2013-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 Notes: svn path=/head/; revision=249812
* Avoid warning about uninitalized variableEitan Adler2013-04-231-0/+1
| | | | | | | | | PR: kern/176712 Submitted by: Hiren Panchasara <hiren.panchasara@gmail.com> (earlier vesion) Approved by: cperciva (mentor) Notes: svn path=/head/; revision=249800
* Mechanically substitute flags from historic mbuf allocator withGleb Smirnoff2012-12-041-4/+4
| | | | | | | malloc(9) flags in sys/dev. Notes: svn path=/head/; revision=243857
* Fix some net80211 enum nits:Bernhard Schmidt2011-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@ Notes: svn path=/head/; revision=228621
* - fix typoEitan Adler2011-12-101-1/+1
| | | | | | | Approved by: kib@ Notes: svn path=/head/; revision=228399
* s,KOBJMETHOD_END,DEVMETHOD_END,g in order to fully hide the explicit mentionMarius Strobl2011-11-221-1/+1
| | | | | | | of kobj(9) from device drivers. Notes: svn path=/head/; revision=227848
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.Ed Schouten2011-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. Notes: svn path=/head/; revision=227309
* Remove dead code, "error" doesn't change between this check and theChristian Brueffer2011-10-081-4/+0
| | | | | | | | | | | previous one. CID: 3254 Found with: Coverity Prevent(tm) MFC after: 1 week Notes: svn path=/head/; revision=226146
* 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-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] 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