create_ap

create a nat-ed wifi ap
git clone git@git.2f30.org/create_ap.git
Log | Files | Refs | README | LICENSE

realtek.md (2304B)


      1 ## Try this first
      2 
      3 If you are facing any problems with Realtek adapters (e.g. Edimax EW-7811Un)
      4 first try to run create_ap with `-w 2` (i.e. use WPA2 only) or use it
      5 without passphrase. If you are still facing any problems or you want to
      6 also use WPA1, then follow the instructions below.
      7 
      8 NOTE: The instructions below are only valid for Realtek adapters with 8192 chipset.
      9 
     10 ## Before installation
     11 
     12 If you're using ArchLinux, run:
     13 
     14 ```
     15 pacman -S base-devel linux-headers dkms git
     16 pacman -R hostapd
     17 ```
     18 
     19 If you're using Debian, Ubuntu, or any Debian-based distribution, run:
     20 
     21 ```
     22 apt-get install build-essential linux-headers-generic dkms git
     23 apt-get remove hostapd
     24 apt-get build-dep hostapd
     25 ```
     26 
     27 ## Install driver
     28 
     29 The driver in the mainline of Linux kernel doesn't work well with the 8192 adapters.
     30 For this reason you need to install the driver that is provided from Realtek. Their
     31 driver can not be compiled with newer kernels, but since it was an open-source
     32 release under GPL license some people were able to fixed it and make it compile.
     33 
     34 With the following commands you can install a fixed version of Realtek's driver:
     35 
     36 ```
     37 git clone https://github.com/pvaret/rtl8192cu-fixes.git
     38 dkms add rtl8192cu-fixes
     39 dkms install 8192cu/1.9
     40 cp rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d
     41 cp rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d
     42 ```
     43 
     44 After installation, unload the previous driver and load the new one, or just reboot.
     45 
     46 ## Install hostapd
     47 
     48 Realtek's driver is using an old subsystem which is called `wireless-extensions`
     49 (or `wext`). Hostapd works only with the new subsystem (which is called `nl80211`).
     50 For this reason Realtek wrote a patch for hostapd. You can install it with the
     51 following commands:
     52 
     53 If you have ArchLinux install [hostapd-rtl871xdrv](https://aur.archlinux.org/packages/hostapd-rtl871xdrv)
     54 from AUR or just run:
     55 
     56 ```
     57 yaourt -S hostapd-rtl871xdrv
     58 ```
     59 
     60 If you're using any other distribution, run:
     61 
     62 ```
     63 git clone https://github.com/pritambaral/hostapd-rtl871xdrv.git
     64 wget http://w1.fi/releases/hostapd-2.2.tar.gz
     65 tar zxvf hostapd-2.2.tar.gz
     66 cd hostapd-2.2
     67 patch -p1 -i ../hostapd-rtl871xdrv/rtlxdrv.patch
     68 cp ../hostapd-rtl871xdrv/driver_* src/drivers
     69 cd hostapd
     70 cp defconfig .config
     71 echo CONFIG_DRIVER_RTW=y >> .config
     72 make
     73 make install
     74 ```