TIL

How Your Neighbour Makes Your Mac can’t Connect to Your Own WiFi

Since last two weeks ago, it has been really hard for my MacBook to connect to the wifi network at my house. Although my other devices (an Android phone and iPad) can connect to the network seamlessly, sometimes my MacBook can’t discover the network. It didn’t happen every day but it was annoying for me. The first thing I did was running a wireless diagnostics by clicking wifi icon and press option at the same time, but I didn’t find anything useful from there.

wireless_diagnostic

After that, I tried to look at system report (Apple logo --> Overview --> System Report--> WiFi). And then, I realized two things:

  1. My MacBook actually could discover my wifi network. It seems that the OS hides it from the network list.
  2. It turns out my airport couldn’t support channel 12. So this is the reason why the OS hides unsupported options (in this case, network on channel 12).
system_wifi

 

These finding led me to a few questions:

  1. Why can’t my MacBook support channel 12?
    I realized that my WiFi interface en0 ‘s country code is the US. Channels 12 & 13 are not allowed in the USA. So it makes sense for my OS to block channel 12.
  2. But I stay in Malaysia, how can my MacBook’s en0 country code become US?
    It turns out one my neighbors used a router with US country code. Since my MacBook had discovered his router first, so it assumed that the MacBook was in the US.
    system_wifi2
  3. Why is my router set to channel 12?
    A technician from the ISP set my router. I guess he set my router to channel 12 because channels 1 – 11 are crowded. There are like 10 other networks around my place.
IMG-20160522-WA0008 (1)

Based on these data, there are 3 solutions:

  1. Set router to channel 11
    Pros: This is the most straightforward solution.
    Cons: The traffic on channel 11 was crowded, it made the connection slower.
  2. Restarting my MacBook / wait until it captures the desirable WiFi network.
    Pros: Faster connection than option 1, since less WiFi network on channel 12.
    Cons: It depends on your luck.
  3. Using 5GHz frequency
    Cons: You need to buy a new router if your current router doesn’t support 5GHz.
    Cons: Lower area coverage compared to 2.4 GHz, but this cons actually makes you may not have as much interference from neighbors.
    Pros: Less interference from neighbors, so theoretically this is the fastest connection.

Lucky for me, my router supports 5GHz frequency. I just need to enable it and.. voila! No one uses 5GHz frequency around me and now my MacBook doesn’t have any problem to connect to my 5GHz WiFi network.

Screen Shot 2016-05-22 at 10.11.42 PMIMG-20160522-WA0009

Finally, I did some benchmarks by using fast.com.

Solution 1 (2.4 GHz, Channel 11): 28 Mbps
Solution 2 (2.4 GHz, Channel 12): 61 Mbps
Solution 3 (5 GHz, Channel Auto / 40):

final_benchmark

 

This result is  astonishing! By tweaking your router to use the least crowded channel, you can get 150% speed improvement (by comparing from the most crowded channel)!

Btw, thanks, neighbor!