Ayao "Alqualos" Kuroyuki (ayao) wrote,
Ayao "Alqualos" Kuroyuki


So I finally got WiFi set up. I have to say I really like it! It is much better than Bluetooth between two PCs. First thing I had to do was WiFi setup in my laptop.

I found out that there is no FreeBSD driver for my integrated Broadcom 4318 and it is likely that there will never be one. Very sad. But after a little search I found a way to create a driver from Windows one! Here is how I did it:

# fetch R94827.EXE - Windows driver distribution for my Dell TrueMobile 1300 WLAN Mini-PCI Card
$ unzip R94827.EXE
$ iconv -f UTF-16 -t UTF-8 bcmwl5.inf > bcmwl5.inf.utf8 # ndisgen understandeth not UTF-16
$ cp bcmwl5.inf.utf8 bcmwl5.inf
# edit bcmwl5.inf and change Ndi\params\IBSSGMode\enum from "1" to "2" - needed to support 802.11g
$ ndisgen bcmwl5.inf bcmwl5.sys
# answer ndisgen's questions by pressing return - defaults are okay
$ cp bcmwl5_sys.ko /boot/modules/

Okay, now we have a driver. Add the following into /boot/loader.conf:


Honestly, I know not which modules besides driver are really needed so I decided to load them all. They are small and should never do any harm. Now I reboot and get:

[alqualos@void tmp]$ dmesg | grep ndis0
ndis0: mem 0xdfbfe000-0xdfbfffff irq 17 at device 3.0 on pci2
ndis0: NDIS API version: 5.1
ndis0: Ethernet address: my:mac:address:here

Wow, it is cool! Windows driver worketh just fine! Then I went and bought myself a DWL-G700AP WiFi access point. I really like D-Link products, and this one was no worse than ADSL modem I already have. I connected with Firefox and set up the following:

* LAN address from default to Then I had to reconnect to the new address.
* Admin password safer than the default one.
* DNS and router for my LAN:
* Tried DHCP but then finally decided to leave it disabled. For small networks static allocation works much better.
* Wireless security: WPA-PSK wich long and hard to guess password.
* Enabled MAC filtering and added my ndis0's MAC to the list - to be safe!

Then I played around a lot with ndis0 setup and finally got this working:
ifconfig_ndis0="WPA inet netmask ssid brededor channel 6"

Of course, I had to configure WPA in /etc/wpa_supplicant.conf:
And of course, since there is a password in this file, chmod 600 it!

Now I have access to my LAN and to Internet through it! Without any cables except AC adapter one if I am not running on battery. And it is much easier to set up than PPP over Bluetooth.

И втыкать ничего не надо, и до кухни оно достаёт, в отличие от Bluetooth. Приду домой - ещё попробую с мощностью антенны поиграться, чтобы понять, насколько хорошо достаёт.
Tags: it, unix
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded