{"action":"created","issue":{"url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/68","labels_url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/68/comments","events_url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/68/events","html_url":"https://github.com/qca/open-ath9k-htc-firmware/issues/68","id":46496499,"number":68,"title":"High CPU load on Raspberry Pi when USB wifi dongle attached","user":{"login":"MartynGough","id":9335900,"avatar_url":"https://avatars.githubusercontent.com/u/9335900?v=3","gravatar_id":"","url":"https://api.github.com/users/MartynGough","html_url":"https://github.com/MartynGough","followers_url":"https://api.github.com/users/MartynGough/followers","following_url":"https://api.github.com/users/MartynGough/following{/other_user}","gists_url":"https://api.github.com/users/MartynGough/gists{/gist_id}","starred_url":"https://api.github.com/users/MartynGough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartynGough/subscriptions","organizations_url":"https://api.github.com/users/MartynGough/orgs","repos_url":"https://api.github.com/users/MartynGough/repos","events_url":"https://api.github.com/users/MartynGough/events{/privacy}","received_events_url":"https://api.github.com/users/MartynGough/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-10-22T10:52:06Z","updated_at":"2015-02-15T18:52:59Z","closed_at":null,"body":"I made the htc_9271.fw file from a clone of the repo following the build instructions, when I copy the file into /lib/firmware/ and reboot my pi, the wifi USB dongle is found and I can connect to wifi access points.\r\nHowever, when running a moderatly network intensive application I see an extra 25% CPU load compaired to when it's not installed. This extra load is apparent when wifi is connected or not.\r\n\r\nlsusb lists the wifi dongle as: 040d:3801 VIA Technologies, Inc.\r\n\r\nI have run similar tests with a Ralink Wifi USB dongle and the CPU load is not affected so it's something to do with the Atheros Wifi firmware/hardware.\r\n\r\nAre there any settings/flags I need to set to improve the performance?"},"comment":{"url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/comments/74430779","html_url":"https://github.com/qca/open-ath9k-htc-firmware/issues/68#issuecomment-74430779","issue_url":"https://api.github.com/repos/qca/open-ath9k-htc-firmware/issues/68","id":74430779,"user":{"login":"olerem","id":3816114,"avatar_url":"https://avatars.githubusercontent.com/u/3816114?v=3","gravatar_id":"","url":"https://api.github.com/users/olerem","html_url":"https://github.com/olerem","followers_url":"https://api.github.com/users/olerem/followers","following_url":"https://api.github.com/users/olerem/following{/other_user}","gists_url":"https://api.github.com/users/olerem/gists{/gist_id}","starred_url":"https://api.github.com/users/olerem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olerem/subscriptions","organizations_url":"https://api.github.com/users/olerem/orgs","repos_url":"https://api.github.com/users/olerem/repos","events_url":"https://api.github.com/users/olerem/events{/privacy}","received_events_url":"https://api.github.com/users/olerem/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T18:52:59Z","updated_at":"2015-02-15T18:52:59Z","body":"Hm.. you are right.\r\nThis string from your dmesg means that driver is trying to use transfer type != 3 (interrupt):\r\nusb 1-1.2.2: BOGUS urb xfer, pipe 1 != type 3\r\n\r\nIf this patches are included, then this error should not happen. If this patch is really included, then some thing strange is happening here. According to the dmesg, there are more devices attached to this usb port. Do your wifi adapter get enough power? According to my tests, after firmware load power consumptions jumps from ~30mA to ~190mA. Usual usb port is limited to 500mA."}}