{"id":44,"date":"2010-02-17T20:30:05","date_gmt":"2010-02-18T01:30:05","guid":{"rendered":"http:\/\/darwin-mach.net\/blog\/?p=44"},"modified":"2010-10-30T23:36:18","modified_gmt":"2010-10-31T04:36:18","slug":"wifi-woes","status":"publish","type":"post","link":"https:\/\/dmach.net\/blog\/2010\/02\/17\/wifi-woes\/","title":{"rendered":"WiFi Woes"},"content":{"rendered":"<p>So where I live most of the time, the 802.11 access points that are installed utilize an anti-rogue AP mechanism that not only blocks other APs from using the same SSIDs they are advertising, but to also prevent other 2.4GHz networks from being created and used as a way to enforce their ban on setting up private WLANs.<\/p>\n<p>So I recently acquired a Nokia N900 and wanted to SSH into it. With only 2.4GHz 802.11 support, utilizing the 5GHz band was not an option. But I decided to go ahead and try it anyways, since my previous phone (HTC Fuze \/ Touch Pro \/ Raphael), after some careful tweaking, would be able to connect to a &#8220;foreign&#8221; AP for a minute or two before being kicked off.<\/p>\n<p>Guess what? Association works!<br \/>\n<!--more--><br \/>\nBut there&#8217;s a slight tweak that&#8217;s required to be able to use the N900 for any services such as SSH. Normally, at home, I can connect the N900 to my 2.4GHz band and access it from another computer without any special tricks. But due to the bullcrap policy of prohibiting unauthorized APs, the &#8220;Power Saving&#8221; option for the wireless controller of the N900 needs to be disabled in order to use it for services. Solution #2 is to make an applet that runs a shell script invoking a ping command that pings any IP on the LAN. I used the gateway&#8217;s. Both of these keep the WLAN connection &#8220;active&#8221; and work some magic, probably with CTS\/RTS protection.<\/p>\n<p>I personally recommend the 2nd method as it is more secure and allows more control over the power management.<\/p>\n<p>Here&#8217;s a &#8220;HowTo&#8221; for both solutions:<\/p>\n<p>SOLUTION #1 &#8211; Disable Power Management<br \/>\n1.) Settings -> Internet connections -> Connections<br \/>\n2.) Select your WLAN&#8217;s profile and press &#8220;Edit&#8221;<br \/>\n3.) Press &#8220;Next&#8221; 3 times to get you to the end of the wizard.<br \/>\n4.) Press &#8220;Advanced&#8221;, then to the &#8220;Other&#8221; tab.<br \/>\n5.) Change &#8220;Power saving&#8221; to &#8220;Off&#8221;<br \/>\n6.) &#8220;Save&#8221;, &#8220;Finish&#8221;, &#8220;Done&#8221;, &#8220;Save&#8221;<\/p>\n<p>SOLUTION #2 &#8211; Make a Ping XTerm Script<br \/>\nYou must have root access to set this up or it won&#8217;t work. (Hint: Install the &#8216;rootsh&#8217; package.)<\/p>\n<p>Create the file \/usr\/share\/applications\/hildon\/keepalive.desktop containing the following:<\/p>\n<p><code>[Desktop Entry]<br \/>\nEncoding=UTF-8<br \/>\nVersion=0.1<br \/>\nType=Application<br \/>\nTerminal=true<br \/>\nName=KeepAlive<br \/>\nExec=\/usr\/bin\/osso-xterm 'sudo ping <strong>[RHOST]<\/strong>'<br \/>\nIcon=<br \/>\n#X-Window-Icon=timerwidget<br \/>\nX-Window-Icon=<br \/>\nX-HildonDesk-ShowInToolbar=true<br \/>\nX-Osso-Type=application\/x-executable<\/code><\/p>\n<p>Change [RHOST] to whatever host you wish to use. This script will open up xterm and ping the specified host. A straight up execution of a ping will send the task to the background and you will need to then grep for the PID and kill it to stop execution. Running in xterm will give you a much easier way to stop the script.<\/p>\n<p>Cheers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So where I live most of the time, the 802.11 access points that are installed utilize an anti-rogue AP mechanism that not only blocks other APs from using the same SSIDs they are advertising, but to also prevent other 2.4GHz networks from being created and used as a way to enforce their ban on setting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-personal"],"_links":{"self":[{"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":7,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dmach.net\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}