{"action":"created","issue":{"url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/56","labels_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/56/comments","events_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/56/events","html_url":"https://github.com/lwfinger/rtlwifi_new/issues/56","id":90926418,"number":56,"title":"PCIe RTL8812AE 802.11ac has all 5GHz channels disabled","user":{"login":"Sfinx","id":1393676,"avatar_url":"https://avatars.githubusercontent.com/u/1393676?v=3","gravatar_id":"","url":"https://api.github.com/users/Sfinx","html_url":"https://github.com/Sfinx","followers_url":"https://api.github.com/users/Sfinx/followers","following_url":"https://api.github.com/users/Sfinx/following{/other_user}","gists_url":"https://api.github.com/users/Sfinx/gists{/gist_id}","starred_url":"https://api.github.com/users/Sfinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sfinx/subscriptions","organizations_url":"https://api.github.com/users/Sfinx/orgs","repos_url":"https://api.github.com/users/Sfinx/repos","events_url":"https://api.github.com/users/Sfinx/events{/privacy}","received_events_url":"https://api.github.com/users/Sfinx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T10:42:07Z","updated_at":"2015-06-25T16:56:10Z","closed_at":null,"body":"Hello,\r\n\r\nTrying to get the Edimax AC1200 (Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)) working under Linux. The stock driver from Ubuntu 3.19.0-15-generic kernel is not working in 5GHz range though \"iw phy\" lists some channels as enabled. The rtlwifi_new list all the 5GHz channels as disabled :\r\n\r\n```\r\n..........\r\n\t\t* 5180 MHz [36] (disabled)\r\n\t\t\t* 5200 MHz [40] (disabled)\r\n\t\t\t* 5220 MHz [44] (disabled)\r\n\t\t\t* 5240 MHz [48] (disabled)\r\n\t\t\t* 5260 MHz [52] (disabled)\r\n\t\t\t* 5280 MHz [56] (disabled)\r\n\t\t\t* 5300 MHz [60] (disabled)\r\n\t\t\t* 5320 MHz [64] (disabled)\r\n\t\t\t* 5500 MHz [100] (disabled)\r\n\t\t\t* 5520 MHz [104] (disabled)\r\n\t\t\t* 5540 MHz [108] (disabled)\r\n\t\t\t* 5560 MHz [112] (disabled)\r\n\t\t\t* 5580 MHz [116] (disabled)\r\n\t\t\t* 5600 MHz [120] (disabled)\r\n\t\t\t* 5620 MHz [124] (disabled)\r\n\t\t\t* 5640 MHz [128] (disabled)\r\n\t\t\t* 5660 MHz [132] (disabled)\r\n\t\t\t* 5680 MHz [136] (disabled)\r\n\t\t\t* 5700 MHz [140] (disabled)\r\n\t\t\t* 5745 MHz [149] (disabled)\r\n\t\t\t* 5765 MHz [153] (disabled)\r\n\t\t\t* 5785 MHz [157] (disabled)\r\n\t\t\t* 5805 MHz [161] (disabled)\r\n\t\t\t* 5825 MHz [165] (disabled)\r\n........\r\n```\r\n\r\nWhat can be the problem ? The card is working ok in 2GHz mode.\r\n\r\nSo I'm seeing strange message in kernel log : \r\n```\r\n......\r\n[   10.974270] rtl8821ae:_rtl8821ae_get_chnl_group(): 5G, Channel 163 in Group not found\r\n[   10.974272] rtl8821ae:_rtl8821ae_get_chnl_group(): 5G, Channel 163 in Group not found\r\n....\r\n```\r\n\r\nLooked into the code, seems like the following typo present here :\r\n\r\n```javascript\r\ndiff --git a/rtl8821ae/hw.c b/rtl8821ae/hw.c\r\nindex 5d7c407..5896d89 100644\r\n--- a/rtl8821ae/hw.c\r\n+++ b/rtl8821ae/hw.c\r\n@@ -2666,7 +2666,7 @@ static u8 _rtl8821ae_get_chnl_group(u8 chnl)\r\n                        group = 10;\r\n        else if (157 <= chnl && chnl <= 161)\r\n                        group = 11;\r\n-       else if (165 <= chnl && chnl <= 171)\r\n+       else if (163 <= chnl && chnl <= 171)\r\n                        group = 12;\r\n        else if (173 <= chnl && chnl <= 177)\r\n                        group = 13;\r\n```"},"comment":{"url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/comments/115322927","html_url":"https://github.com/lwfinger/rtlwifi_new/issues/56#issuecomment-115322927","issue_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/56","id":115322927,"user":{"login":"lwfinger","id":4006501,"avatar_url":"https://avatars.githubusercontent.com/u/4006501?v=3","gravatar_id":"","url":"https://api.github.com/users/lwfinger","html_url":"https://github.com/lwfinger","followers_url":"https://api.github.com/users/lwfinger/followers","following_url":"https://api.github.com/users/lwfinger/following{/other_user}","gists_url":"https://api.github.com/users/lwfinger/gists{/gist_id}","starred_url":"https://api.github.com/users/lwfinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwfinger/subscriptions","organizations_url":"https://api.github.com/users/lwfinger/orgs","repos_url":"https://api.github.com/users/lwfinger/repos","events_url":"https://api.github.com/users/lwfinger/events{/privacy}","received_events_url":"https://api.github.com/users/lwfinger/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T16:56:10Z","updated_at":"2015-06-25T16:56:10Z","body":"I think that channel 163 should be in group 11, rather than group 12 as your patch places it, but I have written to the Realtek engineer to confirm that.\r\n\r\nWhich branch of this repo are you trying?\r\n\r\nPlease run the command 'dmesg | grep cfg80211' and post the result to see what regulatory rules you are using. That is generally where channels are disabled."}}