{"action":"created","issue":{"url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/94","labels_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/94/comments","events_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/94/events","html_url":"https://github.com/freifunk-gluon/gluon/issues/94","id":31388147,"number":94,"title":"ignored txpower offset on Ubiquiti NanoStation M2","user":{"login":"T-X","id":350145,"avatar_url":"https://avatars.githubusercontent.com/u/350145?v=3","gravatar_id":"","url":"https://api.github.com/users/T-X","html_url":"https://github.com/T-X","followers_url":"https://api.github.com/users/T-X/followers","following_url":"https://api.github.com/users/T-X/following{/other_user}","gists_url":"https://api.github.com/users/T-X/gists{/gist_id}","starred_url":"https://api.github.com/users/T-X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T-X/subscriptions","organizations_url":"https://api.github.com/users/T-X/orgs","repos_url":"https://api.github.com/users/T-X/repos","events_url":"https://api.github.com/users/T-X/events{/privacy}","received_events_url":"https://api.github.com/users/T-X/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/freifunk-gluon/gluon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/freifunk-gluon/gluon/labels/upstream","name":"upstream","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/freifunk-gluon/gluon/milestones/6","labels_url":"https://api.github.com/repos/freifunk-gluon/gluon/milestones/6/labels","id":903686,"number":6,"title":"2015.1","description":"","creator":{"login":"NeoRaider","id":419139,"avatar_url":"https://avatars.githubusercontent.com/u/419139?v=3","gravatar_id":"","url":"https://api.github.com/users/NeoRaider","html_url":"https://github.com/NeoRaider","followers_url":"https://api.github.com/users/NeoRaider/followers","following_url":"https://api.github.com/users/NeoRaider/following{/other_user}","gists_url":"https://api.github.com/users/NeoRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoRaider/subscriptions","organizations_url":"https://api.github.com/users/NeoRaider/orgs","repos_url":"https://api.github.com/users/NeoRaider/repos","events_url":"https://api.github.com/users/NeoRaider/events{/privacy}","received_events_url":"https://api.github.com/users/NeoRaider/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":14,"state":"open","created_at":"2014-12-14T23:40:59Z","updated_at":"2015-02-13T20:26:21Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2014-04-12T18:10:57Z","updated_at":"2015-02-19T15:14:43Z","closed_at":null,"body":"It seems that the 12 dBi antenna of the Ubiquiti NanoStation M2 is properly set in the firmware, at least a 12dB txpower offset is noted in iwinfo. However, the txpower is not reduced accordingly:\r\n\r\n<pre>\r\n$ iwinfo\r\nwlan0     ESSID: \"luebeck.freifunk.net\"\r\n          Access Point: 24:A4:3C:AC:F4:AC\r\n          Mode: Master  Channel: 1 (2.412 GHz)\r\n          Tx-Power: 30 dBm  Link Quality: 40/70\r\n          Signal: -70 dBm  Noise: -89 dBm\r\n          Bit Rate: 43.6 MBit/s\r\n          Encryption: none\r\n          Type: nl80211  HW Mode(s): 802.11bgn\r\n          Hardware: 168C:002A 0777:E012 [Ubiquiti NanoStation M2]\r\n          TX power offset: 12 dB\r\n          Frequency offset: none\r\n          Supports VAPs: yes\r\n\r\nwlan0-1   ESSID: \"02:d1:11:37:fc:38\"\r\n          Access Point: 02:D1:11:37:FC:38\r\n          Mode: Ad-Hoc  Channel: 1 (2.412 GHz)\r\n          Tx-Power: 30 dBm  Link Quality: 69/70\r\n          Signal: -41 dBm  Noise: -89 dBm\r\n          Bit Rate: 102.3 MBit/s\r\n          Encryption: unknown\r\n          Type: nl80211  HW Mode(s): 802.11bgn\r\n          Hardware: 168C:002A 0777:E012 [Ubiquiti NanoStation M2]\r\n          TX power offset: 12 dB\r\n          Frequency offset: none\r\n          Supports VAPs: yes\r\n</pre>\r\n\r\nThe \"Tx-Power\" field seems to include the tx power offset (https://dev.openwrt.org/browser/branches/attitude_adjustment/package/iwinfo/src/iwinfo_cli.c?rev=36121#L433). However it should say \"Tx-Power: 20 dBm\".\r\n\r\nThe reg domain is set correctly, too:\r\n\r\n<pre>\r\n$ iw reg get\r\ncountry DE:\r\n        (2400 - 2483 @ 40), (N/A, 20)\r\n        (5150 - 5250 @ 80), (N/A, 20), NO-OUTDOOR\r\n        (5250 - 5350 @ 80), (N/A, 20), NO-OUTDOOR, DFS\r\n        (5470 - 5725 @ 80), (N/A, 27), DFS\r\n        (57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR\r\n</pre>\r\n\r\n<pre>\r\n$ iwinfo wlan0-1 txpowerlist\r\n  12 dBm (  15 mW)\r\n  13 dBm (  19 mW)\r\n  14 dBm (  25 mW)\r\n  15 dBm (  31 mW)\r\n  16 dBm (  39 mW)\r\n  17 dBm (  50 mW)\r\n  18 dBm (  63 mW)\r\n  19 dBm (  79 mW)\r\n  20 dBm ( 100 mW)\r\n  21 dBm ( 125 mW)\r\n  22 dBm ( 158 mW)\r\n  23 dBm ( 199 mW)\r\n  24 dBm ( 251 mW)\r\n  25 dBm ( 316 mW)\r\n  26 dBm ( 398 mW)\r\n  27 dBm ( 501 mW)\r\n  28 dBm ( 630 mW)\r\n  29 dBm ( 794 mW)\r\n* 30 dBm (1000 mW)\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/comments/75068383","html_url":"https://github.com/freifunk-gluon/gluon/issues/94#issuecomment-75068383","issue_url":"https://api.github.com/repos/freifunk-gluon/gluon/issues/94","id":75068383,"user":{"login":"NeoRaider","id":419139,"avatar_url":"https://avatars.githubusercontent.com/u/419139?v=3","gravatar_id":"","url":"https://api.github.com/users/NeoRaider","html_url":"https://github.com/NeoRaider","followers_url":"https://api.github.com/users/NeoRaider/followers","following_url":"https://api.github.com/users/NeoRaider/following{/other_user}","gists_url":"https://api.github.com/users/NeoRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoRaider/subscriptions","organizations_url":"https://api.github.com/users/NeoRaider/orgs","repos_url":"https://api.github.com/users/NeoRaider/repos","events_url":"https://api.github.com/users/NeoRaider/events{/privacy}","received_events_url":"https://api.github.com/users/NeoRaider/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T15:14:42Z","updated_at":"2015-02-19T15:14:42Z","body":"Such a list does exist in libiwinfo (although entries for many Ubiquiti devices are missing at the moment).\r\n\r\nWe'd just need to think of a nice way to use this list for the default settings."}}