Morphex's blogologue (Life, technology, music, politics, business, mental health and more)

This is the blog of Morten W. Petersen, aka. morphex in various places. I blog about my life, and what I find interesting and/or important. This is a personal blog without any editor or a lot of oversight so treat it as such. :)

My email is morphex@gmail.com.

I am leavingnorway.info.

An OGG/Vorbis player, implemented in Javascript.

My Kiva bragging page
My shared (open source) code on GitHub

Morphex's Blogodex

News
Me on Instagram
Slashdot

Zope hosting by Nidelven IT

Morten Petersen on Linkedin

Morten Petersen on Facebook

Morten Petersen on SoundCloud

Morten Petersen on MixCloud

Blogologue on Twitter



Older entries



Atom - Subscribe - Categories

Facebook icon Share on Facebook Google+ icon Share on Google+ Twitter icon Share on Twitter LinkedIn icon Share on LinkedIn

Custom Raspberry Pi Wi-Fi router

So, I've moved to a new place, and as a result of that move, I need to get a decent setup for networking. One that gives low latency for gaming as well as high bandwidth for big Linux image downloads for example.

I have a Netgear router lying around which I could use, but I've also got some bits I've accumulated the last couple of years, like a Raspberry Pi mini-computer, a 10 metre Ethernet cable, USB Wi-Fi adapters and more.

So I opted to create my own access point, and thought that would be easy enough. Well it wasn't as easy as it should be, because the Realtek chipset has some old drivers, so I had to fiddle with patching the standard hostapd (access point app).

I ended up compiling the wpa Debian package to include the rtl871xdrv patch ( https://github.com/pritambaral/hostapd-rtl871xdrv ) and then set on to create an accesspoint using create_ap ( https://github.com/oblique/create_ap ).

The AP started up and was visible, but it wasn't possible to authenticate. So I tested things back and forth, and also considered making it an unencrypted access point with MAC address based access control, but luckily I got a response from Guan Xin on the hostap@lists.infradead.org mailing list hinting that I should turn off some capabilities to make it all work.

So I now have an access point running, and it seems to be running just fine, I get about 25 Mb/s downloading from the internet now. [Edit: That was 25 Mbit/s, not MB].

Here's how it looks:

Picture of Raspberry Pi lying on the floor, with Wi-Fi adapter

It's maybe a bit overkill building my own router, but now I have full flexibility and control in how it should be setup, from QoS to firewalling to logging.

[Permalink] [By morphex] [Technology (Atom feed)] [22 Dec 13:25 Europe/Oslo]