{"id":123,"date":"2014-11-17T21:36:53","date_gmt":"2014-11-17T21:36:53","guid":{"rendered":"https:\/\/www.pendragonsfolly.com\/?p=123"},"modified":"2014-11-17T21:36:53","modified_gmt":"2014-11-17T21:36:53","slug":"hostapd-with-tp-link-tn822n","status":"publish","type":"post","link":"https:\/\/www.pendragonsfolly.com\/?p=123","title":{"rendered":"Hostapd with TP-Link TN822N"},"content":{"rendered":"<p>Hostapd with TN822N (RTL8192cu chipset)<\/p>\n<p>http:\/\/forum.odroid.com\/viewtopic.php?f=17&#038;t=3028&#038;start=20#p41229<br \/>\nhttps:\/\/github.com\/pvaret\/rtl8192cu-fixes\/blob\/master\/README.md<br \/>\nhttp:\/\/askubuntu.com\/questions\/401045\/wifi-problems-with-tp-link-wn822n-ubuntu-13-10<\/p>\n<p>Do the following (from the github\/pvaret link):<\/p>\n<p>sudo apt-get install linux-headers-generic build-essential dkms<br \/>\ngit clone https:\/\/github.com\/pvaret\/rtl8192cu-fixes.git<br \/>\nsudo dkms add .\/rtl8192cu-fixes<br \/>\nsudo depmod -a<br \/>\nsudo cp .\/rtl8192cu-fixes\/blacklist-native-rtl8192.conf \/etc\/modprobe.d\/<\/p>\n<p>then fix \/ replace the hostapd binary:<br \/>\n1. Download this -&gt; http:\/\/www.realtek.com.tw\/downloads\/downloadsView.aspx?Langid=1&amp;PNid=48&amp;PFid=48&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false&amp;Downloads=true#RTL8192CU (the file is called RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip)<br \/>\n2. Make sure you are running the latest kernel.<br \/>\n3. Unzip that new zip file you download<br \/>\nGo to: RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911\/wpa_supplicant_hostapd<br \/>\n4. unpack the hostapd tarball:<br \/>\ntar -zxvf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz<br \/>\nGo to this folder: wpa_supplicant_hostapd-0.8_rtw_r7475.20130812\/hostapd<br \/>\n5. Run: make -j5<br \/>\nInstall it: cp hostapd \/usr\/sbin\/hostapd_realtek<br \/>\nmodify \/etc\/init.d\/hostapd:<br \/>\nDAEMON_SBIN=\/usr\/sbin\/hostapd_realtek<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\/etc\/hostapd.conf<\/strong><\/span><br \/>\n# Define interface<br \/>\n# Select driver<br \/>\n#wlan1 realtek<br \/>\n#driver=r8169<br \/>\n#wlan0 asus\/atheros<br \/>\n#driver=ath9k<br \/>\n#wlan0 asus\/atheros<br \/>\n# Set access point name<br \/>\n# Set access point harware mode to 802.11g<br \/>\n# Set WIFI channel (can be easily changed)<br \/>\n# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)<br \/>\ninterface=wlan1<br \/>\nauth_algs=3<br \/>\nlogger_stdout=-1<br \/>\nlogger_stdout_level=2<br \/>\nmax_num_sta=5<br \/>\nbridge=br0<br \/>\nchannel=5<br \/>\ncountry_code=US<br \/>\n#driver=nl80211<br \/>\ndriver=rtl871xdrv<br \/>\n#dtim_period=1<br \/>\nfragm_threshold=2346<br \/>\nhw_mode=g<br \/>\nieee80211n=1<br \/>\nrsn_pairwise=CCMP<br \/>\nrts_threshold=2347<br \/>\n#ssid=hp48sx<br \/>\nssid=test-ssid<br \/>\nwmm_enabled=1<br \/>\nwpa=2<br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\n#wpa_pairwise=TKIP<br \/>\nwpa_pairwise=TKIP CCMP<br \/>\nwpa_passphrase=my-passwd<br \/>\n#ignore_broadcast_ssid=1<br \/>\nmacaddr_acl=0<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hostapd with TN822N (RTL8192cu chipset) http:\/\/forum.odroid.com\/viewtopic.php?f=17&#038;t=3028&#038;start=20#p41229 https:\/\/github.com\/pvaret\/rtl8192cu-fixes\/blob\/master\/README.md http:\/\/askubuntu.com\/questions\/401045\/wifi-problems-with-tp-link-wn822n-ubuntu-13-10 Do the following (from the github\/pvaret link): sudo apt-get install linux-headers-generic build-essential dkms git clone https:\/\/github.com\/pvaret\/rtl8192cu-fixes.git sudo dkms add .\/rtl8192cu-fixes sudo depmod -a sudo cp .\/rtl8192cu-fixes\/blacklist-native-rtl8192.conf \/etc\/modprobe.d\/ then fix \/ replace the &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.pendragonsfolly.com\/?p=123\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-linux","category-work"],"_links":{"self":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":2,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}