{"action":"created","issue":{"url":"https://api.github.com/repos/kaloz/mwlwifi/issues/173","repository_url":"https://api.github.com/repos/kaloz/mwlwifi","labels_url":"https://api.github.com/repos/kaloz/mwlwifi/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/kaloz/mwlwifi/issues/173/comments","events_url":"https://api.github.com/repos/kaloz/mwlwifi/issues/173/events","html_url":"https://github.com/kaloz/mwlwifi/issues/173","id":234284952,"number":173,"title":"DFS won't work with WRT3200ACM-UK","user":{"login":"cilix-lab","id":11046352,"avatar_url":"https://avatars1.githubusercontent.com/u/11046352?v=3","gravatar_id":"","url":"https://api.github.com/users/cilix-lab","html_url":"https://github.com/cilix-lab","followers_url":"https://api.github.com/users/cilix-lab/followers","following_url":"https://api.github.com/users/cilix-lab/following{/other_user}","gists_url":"https://api.github.com/users/cilix-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/cilix-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cilix-lab/subscriptions","organizations_url":"https://api.github.com/users/cilix-lab/orgs","repos_url":"https://api.github.com/users/cilix-lab/repos","events_url":"https://api.github.com/users/cilix-lab/events{/privacy}","received_events_url":"https://api.github.com/users/cilix-lab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-07T17:27:28Z","updated_at":"2017-06-09T17:59:48Z","closed_at":null,"body":"Hi! I've been trying to get DFS to work on my WRT3200ACM-UK with latest mwlwifi 10.3.4.0-20170606 with no success. I've read a lot about how DFS is supposed to work with mwlwifi, but it won't on my router. I'm thinking it might be a regulatory issue with the UK version of the router.\r\n\r\n My hostapd config:\r\n\r\n```\r\n# hostapd configuration file  \r\ninterface=wlan0\r\nbridge=br0\r\ndriver=nl80211\r\nctrl_interface=/var/run/hostapd\r\nssid=Armada_5GHz\r\ncountry_code=US\r\nieee80211d=1\r\nieee80211h=1\r\nhw_mode=a\r\nchannel=116\r\nauth_algs=1\r\nignore_broadcast_ssid=0\r\nwmm_enabled=1\r\n\r\n# IEEE 802.11n\r\nieee80211n=1\r\nht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]\r\n\r\n# IEEE 802.11ac\r\nieee80211ac=1\r\nvht_capab=[MAX-MPDU-11454][VHT160][RXLDPC][SHORT-GI-80][SHORT-GI-160][SU-BEAMFORMER][SU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][MAX-A-MPDU-LEN-EXP7]\r\nvht_oper_chwidth=1\r\nvht_oper_centr_freq_seg0_idx=122\r\n\r\n# WPA/IEEE 802.11i\r\nwpa=2\r\nwpa_passphrase=armada50\r\nwpa_key_mgmt=WPA-PSK\r\nwpa_pairwise=TKIP\r\nrsn_pairwise=CCMP\r\n```\r\n\r\nRunning hostapd -d wlan0.conf will fail with:\r\n\r\n```\r\nphy: phy0\r\nBSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)\r\nwlan0: interface state UNINITIALIZED->COUNTRY_UPDATE\r\nPrevious country code 98, new country code US \r\nContinue interface setup after channel list update\r\n(...)\r\nnl80211: Regulatory information - country=98\r\nnl80211: 2402-2472 @ 40 MHz 20 mBm\r\nnl80211: 5170-5250 @ 80 MHz 17 mBm\r\nnl80211: 5250-5330 @ 80 MHz 20 mBm (DFS)\r\nnl80211: 5490-5710 @ 160 MHz 23 mBm (DFS)\r\nnl80211: 57240-63720 @ 2160 MHz 40 mBm\r\nDisable HT capability [DSSS_CCK-40] on 5 GHz band\r\nhw vht capab: 0x33837976, conf vht capab: 0x33801976\r\nwlan0: interface state COUNTRY_UPDATE->HT_SCAN\r\nScan for neighboring BSSes prior to enabling 40 MHz channel\r\n40 MHz affected channel range: [5570,5610] MHz\r\nwlan0: nl80211: scan request\r\nnl80211: Passive scan requested\r\nScan requested (ret=0) - scan timeout 10 seconds\r\nInterface initialization will be completed in a callback\r\nnl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0\r\nwlan0: nl80211: Scan trigger\r\nwlan0: Event SCAN_STARTED (47) received\r\nUnknown event 47\r\nnl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0\r\nwlan0: nl80211: New scan results available\r\nnl80211: Scan included frequencies: 5580 5600\r\nwlan0: Event SCAN_RESULTS (3) received\r\nnl80211: Received scan results (0 BSSes)\r\nHT40: control channel: 116  secondary channel: 120\r\nCompleting interface initialization\r\nMode: IEEE 802.11a  Channel: 116  Frequency: 5580 MHz\r\nDFS 4 channels required radar detection\r\nDFS all channels available, (SKIP CAC): no\r\nDFS 0 chans unavailable - choose other channel: no\r\nwlan0: interface state HT_SCAN->DFS\r\nDFS start CAC on 5580 MHz\r\nwlan0: DFS-CAC-START freq=5580 chan=116 sec_chan=1, width=1, seg0=122, seg1=0, cac_time=60s\r\nnl80211: Start radar detection (CAC) 5580 MHz (ht_enabled=1, vht_enabled=1, bandwidth=80 MHz, cf1=5610 MHz, cf2=0 MHz)\r\n  * freq=5580\r\n  * vht_enabled=1\r\n  * ht_enabled=1\r\n  * bandwidth=80\r\n  * channel_width=3\r\n  * center_freq1=5610\r\n  * center_freq2=0\r\nnl80211: Failed to start radar detection: -22 (Invalid argument)\r\nDFS start_dfs_cac() failed, -1\r\nInterface initialization failed\r\nwlan0: interface state DFS->DISABLED\r\nwlan0: AP-DISABLED \r\n(...)\r\n```\r\n\r\nDoing iw reg get:\r\n\r\n```\r\ncountry 98: DFS-UNSET\r\n    (2402 - 2472 @ 40), (N/A, 20), (N/A)\r\n    (5170 - 5250 @ 80), (N/A, 17), (N/A)\r\n    (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS\r\n    (5490 - 5710 @ 160), (N/A, 23), (0 ms), DFS\r\n    (57240 - 63720 @ 2160), (N/A, 40), (N/A)\r\n```\r\n\r\ncat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info:\r\n\r\n```\r\ndriver name: mwlwifi\r\nchip type: 88W8964\r\nhw version: 7\r\ndriver version: 10.3.4.0-20170606\r\nfirmware version: 0x09030007\r\npower table loaded from dts: no\r\nfirmware region code: 0x30\r\nmac address: (...)\r\n2g: disable\r\n5g: enable\r\nantenna: 4 4\r\nirq number: 45\r\nap macid support: 0000ffff\r\nsta macid support: 00010000\r\nmacid used: 00000000\r\nradio: disable\r\niobase0: e1f80000\r\niobase1: e2200000\r\ntx limit: 1024\r\nrx limit: 16384\r\n```\r\n\r\nI've tried changing the country code, with no success whatsoever. Same config with no DFS will work.\r\n\r\nI'm running Ubuntu 16.04 (https://github.com/cilix-lab/ubuntu-wrt) with hostapd-2.6."},"comment":{"url":"https://api.github.com/repos/kaloz/mwlwifi/issues/comments/307458151","html_url":"https://github.com/kaloz/mwlwifi/issues/173#issuecomment-307458151","issue_url":"https://api.github.com/repos/kaloz/mwlwifi/issues/173","id":307458151,"user":{"login":"aqwserf","id":29235861,"avatar_url":"https://avatars3.githubusercontent.com/u/29235861?v=3","gravatar_id":"","url":"https://api.github.com/users/aqwserf","html_url":"https://github.com/aqwserf","followers_url":"https://api.github.com/users/aqwserf/followers","following_url":"https://api.github.com/users/aqwserf/following{/other_user}","gists_url":"https://api.github.com/users/aqwserf/gists{/gist_id}","starred_url":"https://api.github.com/users/aqwserf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aqwserf/subscriptions","organizations_url":"https://api.github.com/users/aqwserf/orgs","repos_url":"https://api.github.com/users/aqwserf/repos","events_url":"https://api.github.com/users/aqwserf/events{/privacy}","received_events_url":"https://api.github.com/users/aqwserf/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T17:59:48Z","updated_at":"2017-06-09T17:59:48Z","body":"Ok, I don't know where is the magic but with your build, everything works (almost) !! :) \r\n\r\nStock configuration with @yuhhaurlin build:\r\n* Channel 100 / Width 80MHz: OK\r\n* Channel 120 / Width 80MHz: OK\r\n* Channel 36 / Width 160MHz: OK\r\n* Channel 120 / Width 160MHz: OK\r\n* Channel auto / Width 80MHz: OK\r\n* Channel auto / Width 160MHz: KO (the only one that don't work)\r\n\r\nCustom configuration (SSID, security, MAC filter, DNS...) with LEDE Snapshot:\r\n* Channel 100 / Width 80MHz: KO\r\n* Channel 120 / Width 80MHz: KO\r\n* Channel 36 / Width 160MHz: KO\r\n* Channel 120 / Width 160MHz: KO\r\n* Channel auto / Width 80MHz: KO\r\n* Channel auto / Width 160MHz: KO\r\n\r\nI don't know where is the difference between the two builds, except the configuration (and obviously package version, kernel...)\r\n\r\nThe wifi driver seems to be the same:\r\n\r\n* LEDE\r\n\r\n        root@linksys:~# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info \r\n        \r\n        driver name: mwlwifi\r\n        chip type: 88W8964\r\n        hw version: 7\r\n        driver version: 10.3.4.0-20170512\r\n        firmware version: 0x09030007\r\n        power table loaded from dts: no\r\n        firmware region code: 0x30\r\n        mac address: 60:38:e0:bc:2f:82\r\n        2g: disable\r\n        5g: enable\r\n        antenna: 4 4\r\n        irq number: 45\r\n        ap macid support: 0000ffff\r\n        sta macid support: 00010000\r\n        macid used: 00000001\r\n        radio: enable\r\n        iobase0: e0e80000\r\n        iobase1: e1100000\r\n        tx limit: 1024\r\n        rx limit: 16384\r\n\r\n* yuhhaurlin\r\n\r\n        root@LEDE:~# cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/info \r\n\r\n        driver name: mwlwifi\r\n        chip type: 88W8964\r\n        hw version: 7\r\n        driver version: 10.3.4.0-20170606\r\n        firmware version: 0x09030007\r\n        power table loaded from dts: no\r\n        firmware region code: 0x30\r\n        mac address: 60:38:e0:bc:2f:82\r\n        2g: disable\r\n        5g: enable\r\n        antenna: 4 4\r\n        irq number: 45\r\n        ap macid support: 0000ffff\r\n        sta macid support: 00010000\r\n        macid used: 00000000\r\n        radio: disable\r\n        iobase0: e0e00000\r\n        iobase1: e1080000\r\n        tx limit: 1024\r\n        rx limit: 16384\r\n\r\nMaybe in my wireless configuration...? I can post mine if you want and I also have all the \"logread -f\" log for every tests !"}}
{"actor":{"display_login":"aqwserf"}}