User Tools

Site Tools


mac80211

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mac80211 [2008/11/27 17:19]
netrolller3d Use the official iw release.
mac80211 [2017/01/09 21:44] (current)
mister_x Updated link to zd1211rw
Line 1: Line 1:
 +====== DEPRECATED ======
 +See [[install_drivers|Installing Drivers]] for updated information.
 +
 =====General===== =====General=====
  
Line 5: Line 8:
 The following drivers use mac80211 (not all have been tested to work with aircrack-ng): The following drivers use mac80211 (not all have been tested to work with aircrack-ng):
  
-  * [[acx1xx]] (Acx)+  * [[acx1xx]] (Texas Instruments ACX1XX series)
   * [[adm8211]] (ADMtek)   * [[adm8211]] (ADMtek)
-  * [[at76_usb]] (Atmel)+  * [[agnx]] (Airgo MIMO) 
 +  * [[ar5523]] (Atheros A/B/G/Super-G USB) 
 +  * [[ar9170]] (replaced by carl9170) 
 +  * [[carl9170]] (Atheros xspaN USB - AR9001 and AR9002) 
 +  * [[at76c50x_usb]] (Atmel)
   * [[ath5k]] (Atheros A/B/G/Super-G)   * [[ath5k]] (Atheros A/B/G/Super-G)
   * [[ath9k]] (Atheros xspaN)   * [[ath9k]] (Atheros xspaN)
-  * [[b43]] and b43legacy (Broadcom) +  * [[ath9k_htc]] (Atheros AR9001 and AR9002 family) 
-  * [[iwl3945]] (not to be confused with ipw3945/ipwraw) +  * [[b43]] and b43legacy (Broadcom legacy) 
-  * [[iwl4965]]+  * [[brcm80211]] (Broadcom 802.11n - **does not currently allow capturing data packets!**
 +  * [[iwl3945]] (not to be confused with [[ipw3945]]/[[ipw3945|ipwraw]]
 +  * [[iwlagn]] (formerly [[iwl4965]])
   * [[libertas_tf]] (Marvell Libertas)   * [[libertas_tf]] (Marvell Libertas)
-  * [[p54]] (PrismGT in SoftMAC mode, but also supports FullMAC cards) +  * [[mac80211_hwsim]] (HW simulator for mac80211 testing) 
-  * [[rt2x00]] (includes rt2400pci, rt2500pci, rt2500usb, rt61pci and rt73usb) +  * [[mwl8k]] (Marvell TopDog) 
-  * [[rtl8180]] (not to be confused with r8180 AKA r8180-sa2400, also supports RTL8185 cards)+  * [[orinoco]] (Including USB PCI devices) 
 +  * [[p54]] (PrismGT in SoftMAC mode, but also supports FullMAC cards as well as PrismGT dongles. Not to be confused with [[prism54]]
 +  * [[rt2x00]] (includes rt2400pci, rt2500pci, rt2500usb, rt2800usb, rt61pci and rt73usb) 
 +  * [[rtl8180]] (not to be confused with r8180 AKA [[r8180-sa2400]], also supports RTL8185 cards)
   * [[rtl8187]] (not to be confused with r8187 - RTL8187B supported in 2.6.27+)   * [[rtl8187]] (not to be confused with r8187 - RTL8187B supported in 2.6.27+)
-  * [[zd1211rw-mac80211|zd1211rw]] (starting with 2.6.25)+  * [[stlc45xx]] (modified PrismGT SoftMAC) 
 +  * [[w35und]] (Winbond USB) 
 +  * [[wl12xx]] (TI WL125x/WL127x) 
 +  * [[zd1211rw|zd1211rw]] (starting with 2.6.25)
  
 In general, these drivers will mostly work with aircrack-ng, but there may be exceptions.  Here is a list of drivers (with appropriate patches) that people have reported as working successfully with the aircrack-ng suite: In general, these drivers will mostly work with aircrack-ng, but there may be exceptions.  Here is a list of drivers (with appropriate patches) that people have reported as working successfully with the aircrack-ng suite:
  
-  * [[acx1xx]] (Acx)+  * [[acx1xx]] (Texas Instruments ACX1XX) 
 +  * [[ar9170]] (channel hopping is broken)
   * [[ath5k]]   * [[ath5k]]
 +  * [[ath9k]]
   * [[b43]] and b43legacy (Broadcom)   * [[b43]] and b43legacy (Broadcom)
   * [[iwl3945]]   * [[iwl3945]]
-  * [[iwl4965]] +  * [[iwlagn]] 
-  * rt73usb+  * [[p54]] 
 +  * rt2500usb and rt73usb (probably the entire [[rt2x00]] suite)
   * [[rtl8180]]   * [[rtl8180]]
   * [[rtl8187]]   * [[rtl8187]]
-  * [[zd1211rw-mac80211|zd1211rw]] (no fragmentation attack support)+  * [[zd1211rw|zd1211rw]] (no fragmentation attack support)
  
 =====Aircrack support===== =====Aircrack support=====
  
 Mac80211 introduced changes to monitor mode to support the Radiotap standard. Radiotap is a new packet header format, similar to the Prism header. As mac80211 requires all injected packets to have a Radiotap header, which is not supported in aircrack-ng 0.9, injection requires at least aircrack-ng 1.0-rc1. Mac80211 introduced changes to monitor mode to support the Radiotap standard. Radiotap is a new packet header format, similar to the Prism header. As mac80211 requires all injected packets to have a Radiotap header, which is not supported in aircrack-ng 0.9, injection requires at least aircrack-ng 1.0-rc1.
 +
  
  
Line 44: Line 63:
  
   * For kernels 2.6.24 and 2.6.25, use [[http://www.latinsud.com/bcm/mac80211_2.6.24.4_frag.patch|LatinSuD's fragmentation patch]].   * For kernels 2.6.24 and 2.6.25, use [[http://www.latinsud.com/bcm/mac80211_2.6.24.4_frag.patch|LatinSuD's fragmentation patch]].
-  * For 2.6.26, use [[http://patches.aircrack-ng.org/mac80211_2.6.25-wl_frag.patch|this patch]]. +  * For 2.6.26, use [[http://patches.aircrack-ng.org/mac80211_2.6.26-wl_frag.patch|this patch]]. 
-  * For 2.6.28-rcX and the latest wireless-testing kernel (currently 2.6.28-rc6-wl), use [[http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v2.patch|this updated patch]]. +  * For 2.6.28and the latest wireless-testing kernel (currently 2.6.30-rc6-wl), use [[http://patches.aircrack-ng.org/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch|this updated patch]]. 
-  * 2.6.27 needs no patch. FIXME Really? +  * For 2.6.27, use this [[http://patches.aircrack-ng.org/mac80211_2.6.27_frag+ack_v2.patch|backport of the 2.6.28 patch]]
-  * For compat-wireless-2.6, apply the wireless-testing patch to the compat-wireless package itself. Compat-wireless-old is not supportedupgrade your kernel if you are still running pre-2.6.27 and need newer drivers.+  * For compat-wireless packages, apply the wireless-testing patch to the compat-wireless package itself. Compat-wireless-2.6 currently needs the 2.6.28 patchwhile compat-wireless-old can be used with the 2.6.27 one. 
 +  * For 2.6.29 & 2.6.30, some drivers need [[http://patches.aircrack-ng.org/mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch|an additional patch]] on top of the 2.6.28 patch. This fix is already included in 2.6.31 and newer kernels, so this patch should only be used up to 2.6.30.
  
 +**IMPORTANT: The fix-tx-ctl-no-ack patch is NOT a replacement for the fragmentation patch, it is an additional patch that some drivers require in addition to the fragmentation patch.**
  
 =====Airmon-ng support===== =====Airmon-ng support=====
Line 54: Line 75:
 Airmon-ng supports mac80211's interface management features (nl80211) using a tool called **iw** (not to be confused with iwconfig). iw is called automatically by the airmon-ng script, or you might also call it directly to set up monitor interfaces. Airmon-ng supports mac80211's interface management features (nl80211) using a tool called **iw** (not to be confused with iwconfig). iw is called automatically by the airmon-ng script, or you might also call it directly to set up monitor interfaces.
  
-Iw is not part of the aircrack-ng suite.  You can download it from [[http://wireless.kernel.org/download/iw/|here]]. Choose the latest version, or at least 0.9.5. Iw requires a recent version of libnl (1.0-pre8 minimum, 1.1 recommended).+Iw is not part of the aircrack-ng suite.  You can download it from [[http://www.kernel.org/pub/software/network/iw/|here]]. Choose the latest version, or at least 0.9.5. Iw requires a recent version of libnl (1.0-pre8 minimum, 1.1 recommended). 
  
 ====Installing iw==== ====Installing iw====
-  - Download [[http://dl.aircrack-ng.org/iw.tar.bz2|iw]].+  - Download [[http://www.kernel.org/pub/software/network/iw/|iw]] (look for the latest version).
   - Extract the iw tarball.   - Extract the iw tarball.
   - Run "make" in the iw directory. If you get lots of "undefined" errors or "netlink/genl/genl.h: No such file of directory", then you need to install libnl-devel, or update libnl. **This can be risky, you might also need to update networkmanager, wpa_supplicant, hostapd and wlassistant, as older versions of them only work with 1.0-pre6 and earlier!**   - Run "make" in the iw directory. If you get lots of "undefined" errors or "netlink/genl/genl.h: No such file of directory", then you need to install libnl-devel, or update libnl. **This can be risky, you might also need to update networkmanager, wpa_supplicant, hostapd and wlassistant, as older versions of them only work with 1.0-pre6 and earlier!**
Line 63: Line 85:
   - Test iw by executing "iw dev <name of your interface> info". It is normal if it gives no output, however it shouldn't give any errors.   - Test iw by executing "iw dev <name of your interface> info". It is normal if it gives no output, however it shouldn't give any errors.
    
 +
 +=====Known issues=====
 +
 +====Power readings are way off====
 +When running airodump-ng or aireplay-ng's test attack, you can notice PWR readings in the range 150~250. This is due to mac80211 returning the signal strength values in dBm, which is almost always a negative number, and aircrack-ng treats the negative reading incorrectly. This is fixed in the latest SVN trunk, where airodump-ng shows signal strength correctly in dBm.
 +
 +Fix: Upgrade to aircrack-ng v1.0-rc2 or better.
mac80211.1227802783.txt.gz · Last modified: 2008/11/27 17:19 by netrolller3d