{"id":7855,"date":"2013-09-13T14:21:31","date_gmt":"2013-09-13T19:21:31","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7855"},"modified":"2016-05-08T23:29:45","modified_gmt":"2016-05-09T03:29:45","slug":"mac-dropping-the-wi-fi-connection","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/09\/13\/mac-dropping-the-wi-fi-connection\/","title":{"rendered":"Mac Dropping the Wi-Fi Connection"},"content":{"rendered":"<p>Starting in the late spring or early summer, my main MacBook Pro started losing its Wi-Fi connection to the AirPort Extreme Base Station (fifth generation) several times per day. Instead of five black signal strength bars in the menu bar, I would suddenly see five gray ones. This seemed to happen most often while the Mac was doing an unattended <a href=\"http:\/\/www.haystacksoftware.com\/arq\/\">Arq<\/a> backup. I could always re-select my network from the menu, and it would instantly connect again with full signal strength. It would never auto-reconnect, however. The problem never affected other computers or iOS devices, even ones the same 35-foot distance from the base station.<\/p>\r\n<p>I saw Console messages like this:<\/p>\r\n<pre>9\/9\/13 12:01:14.000 AM kernel[0]: MacAuthEvent en0   Auth result for: 70:73:cb:bb:ae:47  MAC AUTH succeeded\r\n9\/9\/13 12:01:14.000 AM kernel[0]: wlEvent: en0 en0 Link UP virtIf = 0\r\n9\/9\/13 12:01:14.000 AM kernel[0]: wl0: Roamed or switched channel, reason #8, bssid 70:73:cb:bb:ae:47\r\n9\/9\/13 12:01:14.000 AM kernel[0]: en0: BSSID changed to 70:73:cb:bb:ae:47\r\n9\/9\/13 12:01:14.000 AM kernel[0]: en0::IO80211Interface::postMessage bssid changed\r\n9\/9\/13 12:01:17.000 AM kernel[0]: wlEvent: en0 en0 Link DOWN virtIf = 0\r\n9\/9\/13 12:01:17.000 AM kernel[0]: AirPort: Link Down on en0. Reason 2 (Previous authentication no longer valid).<\/pre>\r\n<p>Searching the Apple discussion forums, people have been reporting symptoms like this (probably with different causes) since <a href=\"https:\/\/discussions.apple.com\/thread\/3190651?start=0&amp;tstart=0\">since Lion<\/a>, if not <a href=\"https:\/\/discussions.apple.com\/message\/6594975#6594975\">earlier<\/a>.<\/p>\r\n<p>I found a potential <a href=\"https:\/\/discussions.apple.com\/message\/16575053#16575053\">workaround<\/a> in that there&rsquo;s a command-line tool that can check whether Wi-Fi is active:<\/p>\r\n<pre>networksetup -getairportpower en0\r\nWi-Fi Power (en0): On<\/pre>\r\n<p>Which means that it should be easy to write a cron job that re-enables it if necessary:<\/p>\r\n<pre>networksetup -setairportpower en0 on<\/pre>\r\n<p>That could be my backup plan, but I wanted to actually fix this. I called AppleCare, and the specialist walked me though some basic troubleshooting steps: <a href=\"http:\/\/support.apple.com\/kb\/HT3964?viewlocale=en_US&amp;locale=en_US\">resetting the SMC<\/a>, <a href=\"http:\/\/support.apple.com\/kb\/HT1379\">resetting the PRAM<\/a>, <a href=\"http:\/\/support.apple.com\/kb\/HT1455\">doing a safe boot<\/a>, and <a href=\"http:\/\/support.apple.com\/kb\/ht3728\">resetting the base station<\/a>. He then got some more specialized information. I was told that:<\/p>\r\n<ol>\r\n<li>In the Network preferences, &ldquo;Require administrator authorization to: Turn Wi-Fi on or off&rdquo; should be checked. I had thought that this was for when the user turns it off, but the wireless specialist said that it also prevents the Mac from turning off the Wi-Fi chip due to inactivity.<\/li>\r\n<li>In the Energy Saver preferences, &ldquo;Wake for Wi-Fi network access&rdquo; should be checked. I had thought this was for waking the Mac from sleep, but the wireless specialist said that this prevents the Mac from putting the wireless card to sleep, which it tries to do even when the Mac is plugged in and set never to go to sleep.<\/li>\r\n<\/ol>\r\n<p>I was skeptical about this advice, but I tried it. It didn&rsquo;t help.<\/p>\r\n<p>It was then suggested that I run Wireless Diagnostics by holding down the Option key and choosing it from the AirPort menu. I had done this before, and it found no problems. However, rather than immediately seeing the report, you can choose the option to &ldquo;Monitor my Wi-Fi connection.&rdquo; It will then keep running in the background. When there&rsquo;s a problem with the connection, it will bounce its Dock icon, write a lot of log files to the desktop (reminiscent of <a href=\"http:\/\/mjtsai.com\/blog\/2013\/02\/13\/sysdiagnose\/\">sysdiagnose<\/a>), and present some recommendations.<\/p>\r\n<p>In my case, one of the suggestions was to use a dual-band wireless router (which I already had). Another was that the 5GHz band is typically less susceptible to interference from other devices than the 2.4GHz band. I had been using the standard configuration in AirPort Utility with the both the 2.4Ghz and 5GHz channels set to Automatic. On this advice, I checked the box to specify a separate &ldquo;5Ghz network name,&rdquo; so that the Mac doesn&rsquo;t try to connect at 2.4Ghz. After selecting this network in the AirPort menu, the Mac has been reliably connected to the network ever since. (With Wireless Diagnostics running in the background, it has detected several disconnections, but it is apparently reconnecting automatically and immediately so that this is not noticeable.)<\/p>\r\n<img decoding=\"async\" src=\"http:\/\/mjtsai.com\/blog\/images\/2013-09-13-crowded-wi-fi-channel.png\" alt=\"Wireless Diagnostics: Crowded Wi-Fi Channel\" \/>\r\n<img decoding=\"async\" src=\"http:\/\/mjtsai.com\/blog\/images\/2013-09-13-poor-wireless-environment.png\" alt=\"Wireless Diagnostics: Poor Wi-Fi Environment\" \/>","protected":false},"excerpt":{"rendered":"<p>Starting in the late spring or early summer, my main MacBook Pro started losing its Wi-Fi connection to the AirPort Extreme Base Station (fifth generation) several times per day. Instead of five black signal strength bars in the menu bar, I would suddenly see five gray ones. This seemed to happen most often while the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[589,131,30,476,187,588],"class_list":["post-7855","post","type-post","status-publish","format-standard","hentry","category-technology","tag-airport-extreme-base-station","tag-bug","tag-mac","tag-networking","tag-wifi","tag-wireless-diagnostics"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7855"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7855\/revisions"}],"predecessor-version":[{"id":14426,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7855\/revisions\/14426"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}