User Tools

Site Tools


b43

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
b43 [2008/04/21 20:25] netrolller3db43 [2018/11/22 00:15] (current) – deprecated mister_x
Line 1: Line 1:
-====== b43 ======+====== DEPRECATED - b43 ======
  
-b43 is the new driver for wireless cards with Broadcom chipsets.  People have had limited success up to this point.  For nowsearch the [[http://forum.tinyshell.be|Forum]] for "b43" to get the most up-to-date information.+b43/b43legacy is the name of the new driver for wireless b/g cards with Broadcom chipsets. It performs quite well in terms of monitoring and injectionalthough it has no support for the 802.11a wireless band.
  
-There is a patch by SuD which dramatically improves the injection speed (Kernel 2.6.24.1 or higher needed):+b43 is a [[mac80211]] driver, so it requires at least Aircrack-ng 1.0-rc1.
  
-  * See http://www.latinsud.com/bcm/ +===== Is My Card Supported? =====
-  * You can find a port of the patches to the wireless-testing kernel (2.6.25-wl) in [[http://tinyshell.be/aircrackng/forum/index.php?topic=281.360|this thread]].+
  
-Also see this [[http://tinyshell.be/aircrackng/forum/index.php?topic=3269.msg18263#msg18263|thread]] for more information.+A fairly up-to-date list is kept [[http://wireless.kernel.org/en/users/Drivers/b43#Known_PCI_devices|here]]. At the time of writing this article, chipsets with the following PCI IDs are **supported**:
  
-To use the b43 driver, make sure you do:+To determine the PCI ID of your wireless device under linux, enter: 
 + 
 +  lspci -vnn | grep 14e4 
 + 
 +//Supported VIDs table// 
 +^ PCI ID ^ Driver ^Note^ 
 +|14e4:4311|  b43/**wl**  | | 
 +|14e4:4313| ::: | 2.6.33+ | 
 +|14e4:4315| ::: | 2.6.33+ | 
 +|14e4:4301| b43legacy | B | 
 +|14e4:4306| ::: | G | 
 +|14e4:4320| ::: | G | 
 +|14e4:4307|  **b43**  | G | 
 +|14e4:4312| ::: | G | 
 +|14e4:4318| ::: | G | 
 +|14e4:4319| ::: | G | 
 +|14e4:4320| ::: | G | 
 +|14e4:5354| ::: | G | 
 + 
 +If your device ID is NOT listed here, it means it is not supported by aircrack-ng at this time. 
 + 
 +**IMPORTANT** 
 + 
 +Some chips are covered by both the "b43" and "wl" driver. If you have such device, you have to make sure you **blacklist** the "wl" driver before you utilize b43, otherwise they will collide and your card will stop functioning altogether, let alone hope for injection. The "wl" driver does not support aircrack-ng. 
 + 
 +=====Installing the drivers===== 
 + 
 +2.6.24 kernels and newer don't need any patches applied to the driver itself for monitor mode and packet injection. The only patch that is needed (for fragmentation attack support) is the standard mac80211 frag+ack patch. 
 + 
 + 
 +**Important note:** If you install or update your b43 driver via [[compat-wireless|compat-wireless]], you have to know that the b43/ssb modules are part of your distribution's initramfs image. To avoid problems with loading your new b43 driver, update your initramfs image to complete the process. To do so, simply run: 
 +  sudo update-initramfs -u 
 + 
 +If you have a card with the 14e4:4315 PCI ID and a kernel lower than 2.6.33, you need to install the compat-wireless package, since today's stable versions of the drivers do not support this card at all. In fact, the b43 driver is constantly being improved and using the development version of it can yield very positive results for all its users.  More on this particular card [[http://wireless.kernel.org/en/users/Drivers/b43#fw-b43-lp|here]]. 
 + 
 +=====Installing the firmware===== 
 + 
 +Because of Broadcom's licensing, the firmware - which is essential for the card to run - cannot be freely distributed and is obtainable only by "extracting" their proprietary driver. In order to do this, a program called b43-fwcutter is needed. The procedure varies depending on the kernel and driver versions used, but is generally pretty simple. Keep in mind that you also need to apply different steps if you have the card with the **14e4:4315** PCI ID. A very good description containing detailed steps is [[http://wireless.kernel.org/en/users/Drivers/b43#device_firmware|provided by the wireless-kernel wiki]] (scroll down to see the actual steps). 
 + 
 +Keep in mind that your distribution might offer its own b43-fwcutter package and scripts intended to obtain and extract the firmware. It is up to you if you're going to do it manually or let your distro do the work. If you have the card with the **14e4:4315** PCI ID, you have no choice and have to do everything by yourself. 
 + 
 +=====Testing the new module===== 
 + 
 +After building and installing the new module, it is best to test that injection is working correctly.  Use the [[injection_test|injection test]] to confirm your card can inject. 
 + 
 +=====Troubleshooting Tips===== 
 +==== Confirm you are running the new module ==== 
 + 
 +First, double check that you are in fact running the new module: 
 + 
 +   modinfo b43 
 +   modinfo b43legacy 
 + 
 +It will give you the fully qualified file name.  Do "ls -l <fully qualified file name>" and confirm it has the date/time of when you compiled and installed the new module.  If it does not match, then you are not running the patched module.  This would, of course, need to be fixed. 
 + 
 +This thread has a number of potential fixes to problems you may encounter: [[http://forum.aircrack-ng.org/index.php?topic=281|Broadcom bcm43xx Injection]] 
 + 
 +==== "SET failed on device wlan0: Device or resource busy" when setting monitor mode ==== 
 + 
 +This is a known issue with all mac80211 drivers. To avoid this error, make sure you do:
  
    ifconfig wlan0 down    ifconfig wlan0 down
Line 16: Line 74:
    ifconfig wlan0 up    ifconfig wlan0 up
  
 +Or:
 +
 +   airmon-ng start wlan0
 +
 +This way, you can monitor on mon0 while still being associated on wlan0.
 +
 +==== Why do I get ioctl(SIOCGIFINDEX) failed ? ====
 +
 +If you get error messages similar to:
 +
 +  * Error message: "SIOCSIFFLAGS : No such file or directory"
 +  * Error message: "ioctl(SIOCGIFINDEX) failed: No such device"
 +
 +Then [[faq#why_do_i_get_ioctl_siocgifindex_failedno_such_device|See this FAQ entry]] and scroll up to see the "Installing the firmware" section of this article.
 +
 +
 +==== Ubuntu 9.10 support  ====
 +
 +See this forum entry: http://forum.aircrack-ng.org/index.php?topic=6434.0
b43.1208802327.txt.gz · Last modified: 2008/04/21 20:25 by netrolller3d