A Quick Fix of My Wi-Fi Connection Issue – Bad Wireless Channel Condition
I was in a hotel where there was no wired internet access, I had Emobile Internet access which was only internet access at that time but I wanted more than one devices to be connected at the same time. I setup Internet Connection Sharing with my MacBook Pro in order to share emobile connection to the other devices via Wi-Fi. The setup procedure was perfect however it didn’t work somehow – my Wi-Fi connection dropped out repeatedly. After my more-than-an-hour investigation, I finally found the root cause of the issue. It was wireless signal interference – Wi-Fi channel number overlap between me and my neighbors in the hotel.
This below is how I setup Internet connection sharing with my MacBook and How I resolved the issue.
Sharing Emobile Connection to Computers Using Wi-Fi
Assuming that your Macbook is connected to the Internet using a Emobile modem.
1. Open System Preferences > Click Sharing
2. Select Internet Sharing (However don’t turn on Internet Sharing Yet, otherwise you won’t be able to edit Wi-Fi Option)
3. Choose “Share your connection from” and “To computers using” like this:
- Share your connection from: Emobile Modem (ex. HUAWEIMobile-Modem)
- To computers using: Wi-Fi
4. Click Wi-Fi Options and configure an internet-sharing network. Here is my configurations:
- Network Name: mbp-shared-wifi
- Channel: 11 (default)
- Security: 128-bit WEP

5. Turn on Internet Sharing

That is all need to be done for internet sharing. You should be able to join the shared network “mbp-shared-wifi” if the channel( more specifically one of 11 802.11 channels) that you chose is not interfered by any sources of signals near the network.
Finding Out The Right Wi-Fi Channel
The purpose here is to find out the right channel for the internet sharing, the one which is least occupied.
Airport Command included in Mac OS X
airport is a built-in command line tool that enables you to manage 802.11 interfaces and to get all sort of information for 802.11 interface.
First, the tool is not located at one of paths which are included in $PATH, so let’s create a symlink to the tool like this:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:....
$ sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/bin/airport
A command line “airport -s” performs a wireless broadcast scan and gives you a list of Wi-Fi networks nearby. It reports information about SSID, BSSID, RSSI, channel, authentication, and so on.
SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
FON c0:f8:da:d5:b1:e1 -83 8 Y JP NONE
Wi2premium_club 50:a7:33:ae:b2:f9 -80 1 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
FON c0:f8:da:d4:df:55 -86 4 Y JP NONE
au_Wi-Fi 50:a7:33:21:75:49 -73 1 Y -- WPA2(PSK/AES/AES)
Wi2premium 50:a7:33:61:75:49 -75 1 Y -- NONE
Wi2premium_club 50:a7:33:a1:75:49 -74 1 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
0001softbank c2:f8:da:d4:df:55 -86 4 Y JP NONE
Wi2premium_club 50:a7:33:a1:cd:59 -87 11 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
FON c0:f8:da:d0:95:89 -87 3 Y JP NONE
0001softbank c2:f8:da:d0:fb:59 -72 5 Y JP NONE
FON c0:f8:da:ce:36:75 -77 2 Y JP NONE
FON c0:f8:da:d0:fb:59 -74 5 Y JP NONE
ap-game-65b0ff 00:22:cf:65:b0:ff -82 7,+1 Y -- NONE
FON c0:f8:da:d2:cb:41 -89 10 Y JP NONE
CG3200D 00:24:b2:a6:18:47 -79 1 Y -- WEP
sherwoodcafe 00:24:a5:53:39:00 -74 1 Y -- WPA(PSK/AES/AES)
au_Wi-Fi 50:a7:33:23:35:89 -74 6 Y -- WPA2(PSK/AES/AES)
Wi2premium_club 50:a7:33:a1:d0:f9 -85 11 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
0001softbank c2:f8:da:ce:36:75 -74 2 Y JP NONE
ap-pc-65b0fe 00:22:cf:65:b0:fe -84 7,+1 Y -- WPA2(PSK/AES/AES)
FON c0:f8:da:cd:fb:61 -87 11 Y JP NONE
0001softbank c2:f8:da:ce:12:f1 -81 11 Y JP NONE
FON c0:f8:da:ce:12:f1 -83 11 Y JP NONE
0001softbank c2:f8:da:cd:fb:61 -70 11 Y JP NONE
Wi2 16:90:c7:99:4b:b0 -67 11 N J1 NONE
0001softbank c2:f8:da:d0:dd:0d -50 7 Y JP NONE
FON c0:f8:da:d0:dd:0d -46 7 Y JP NONE
001601271C10 00:16:01:27:1c:11 -82 7 N -- WEP
0001softbank c2:f8:da:d0:d9:e9 -66 6 Y JP NONE
Wi2premium 50:a7:33:63:35:89 -70 6 Y -- NONE
Wi2premium_club 50:a7:33:a3:35:89 -70 6 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
FON c0:f8:da:d0:d9:e9 -68 6 Y JP NONE
WZR-HP-G301NH 0a:24:a5:d7:65:06 -82 5,-1 Y -- WEP
0024A5D76506-1 02:24:a5:d7:65:06 -82 5,-1 Y -- WPA(PSK/AES/AES)
AP0120150349KN1 00:0a:79:ab:b5:40 -59 2 N -- WEP
Wi2premium 50:a7:33:6e:b2:f9 -81 1 Y -- NONE
Wi2premium_club 50:a7:33:9d:ed:f9 -67 1 Y -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
Wi2premium 50:a7:33:5d:ed:f9 -68 1 Y -- NONE
au_Wi-Fi 50:a7:33:1d:ed:f9 -70 1 Y -- WPA2(PSK/AES/AES)
0001softbank 12:90:c7:99:4b:b0 -72 11 N J1 NONE
livedoor-web 00:90:c7:99:4b:b0 -67 11 N J1 WEP
Now you want to know which channel is used least from the output of “airport -s”. This command line below gives you numbers of how many of access points(SSIDS) use each channel.
# count channel
10 1
9 11
5 6
3 7
3 2
2 7,+1
2 5,-1
2 5
2 4
1 8 <- channel# least occupied
1 3 <- channel# least occupied
1 10 <- channel# least occupied
From the result above, it would be good to choose channel 8, 3, or 10. I chose channel 3 this case. I setup the internet sharing again with the channel 3, and confirmed that I was able to to join the shared network “mbp-shared-wifi”.
Also pay attention to RSSI
You may want to pay attention to RSSI. According to wikipedia, RSSI is the relative received signal strength in a wireless environment, in arbitrary units. RSSI is an indication of the power level being received by the antenna. Therefore, the higher the RSSI number (or less negative in some devices), the stronger the signal.
Simply, the channel with lower value of RSSI is less likely to cause interference than the one with higher value of RSSI. It would be good to choose the channel with least value of RSSI for the internet sharing.
Web Based Tool – Wifi Stumbler
There is a local wifi scanning web service, called “Wifi Stumbler“. This service provides you the information to choose the best wireless channel to choose. A good thing about this is that this is free web serivce, you don’t need airport command or any kind of wifi scanning software to install on your computer. See the site for more detail. Here is the scanned output of my wifi environment by Wifi Stumbler.

http://tools.meraki.com/stumbler
REFERENCES
- http://en.wikipedia.org/wiki/IEEE_802.11
- http://www.microsoft.com/athome/setup/wirelesstips.aspx
- http://wlanbook.com/mac-os-x-wifi-wireless-scanner/
- http://en.wikipedia.org/wiki/Received_signal_strength_indication
- http://tools.meraki.com/stumbler
- http://lifehacker.com/5538927/wifi-stumbler-scans-local-wi+fi-to-find-an-interference+free-channel
No related posts.
Posted in: Environment Setup, Random Topics
Leave a comment


