From: Simon Wunderlich Date: Mon, 8 Jul 2013 14:55:53 +0000 (+0200) Subject: mac80211: select and adjust bitrates according to channel mode X-Git-Tag: v3.12-rc1~132^2~297^2^2~56^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2103dec14792be2c2194a454630b01120d30e5cb;p=pandora-kernel.git mac80211: select and adjust bitrates according to channel mode The various components accessing the bitrates table must use consider the used channel bandwidth to select only available rates or calculate the bitrate correctly. There are some rates in reduced bandwidth modes which can't be represented as multiples of 500kbps, like 2.25 MBit/s in 5 MHz mode. The standard suggests to round up to the next multiple of 500kbps, just do that in mac80211 as well. Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer [make rate unsigned in ieee80211_add_tx_radiotap_header(), squash fix] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed