From: Felix Fietkau Date: Mon, 16 May 2011 21:22:00 +0000 (+0200) Subject: ath9k: fix ad-hoc mode beacon selection X-Git-Tag: v3.0-rc1~147^2~12^2^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6820f1e6c8273ca4b8f94c2354193d19e1a5c47;p=pandora-kernel.git ath9k: fix ad-hoc mode beacon selection In ad-hoc mode, beacon timers are configured differently compared to AP mode, and (depending on the scenario) can vary enough to make the beacon tasklet not detect slot 0 based on the TSF. Since staggered beacons are not (and cannot be) used in ad-hoc mode, it makes more sense to just hardcode slot 0 here, avoiding unnecessary TSF reads and calculations. Signed-off-by: Felix Fietkau Reported-by: Rajkumar Manoharan Signed-off-by: John W. Linville --- Reading git-diff-tree failed