{"id":161,"date":"2007-10-02T11:54:55","date_gmt":"2007-10-02T16:54:55","guid":{"rendered":"http:\/\/www.summet.com\/blog\/2007\/10\/02\/d-link-dwl-g122-with-wpa2-under-linux\/"},"modified":"2007-10-02T13:33:22","modified_gmt":"2007-10-02T18:33:22","slug":"d-link-dwl-g122-with-wpa2-under-linux","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2007\/10\/02\/d-link-dwl-g122-with-wpa2-under-linux\/","title":{"rendered":"D-link DWL-G122 with WPA under Linux"},"content":{"rendered":"<p>The D-Link DWL-G122 USB 802.11g (revision B1) wifi adaptor <a href=\"http:\/\/www.summet.com\/blog\/2007\/03\/22\/d-link-dwl-g122-works-with-mandriva-linux\/\">works great for open or WEP encrypted networks<\/a>  and is supported by Ubuntu out of the box. Unfortunately, the open source driver doesn&#39;t support WPA2 (and only supports WPA via non-standard iwpriv settings, and even then, the support is flaky).<\/p>\n<p>I was able to get it to connect to a WPA network once, following <a href=\"http:\/\/jeremydenise.net\/en\/node\/189\">Jermey&#39;s instructions. <\/a>But the network connection was not reliable (as in, I never got it to connect again).<\/p>\n<p>To make it work with the standard wpa_supplicant package, I had to break down and use ndiswrapper to wrap the windows XP drivers. (I also had to blacklist the default rt2570 kernel module). Hopefully the Open Source <code>rt2x00 kernel module will start to support this device (and others based on this chipset) in the future for WPA\/WPA2 security.<\/code><\/p>\n<p>Even after I used the ndiswrapper, it would only connect to a WPA Personal \/ TKIP access point. (I could not get it to work with the AES or AES+TKIP settings on WPA or to work with WPA2 at all.) <\/p>\n<p>To make the ubuntu system auto-load wpa_supplicant on boot,<!--more--> I had to make changes to my \/etc\/network\/interfaces file as follows:<\/p>\n<p>&nbsp;iface rausb0 inet dhcp<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pre-up&nbsp; modprobe ndiswrapper<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/p>\n<p>(Note that the network interfaces are apparently started before the modules listed in \/etc\/modules modules are modprobed hence the use of a pre-up script to load the nidswrapper module.) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The D-Link DWL-G122 USB 802.11g (revision B1) wifi adaptor works great for open or WEP encrypted networks and is supported by Ubuntu out of the box. Unfortunately, the open source driver doesn&#39;t support WPA2 (and only supports WPA via non-standard &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2007\/10\/02\/d-link-dwl-g122-with-wpa2-under-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-linux","category-goodlinks"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":0,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}