wireless: report reasonable bitrate for MCS rates through wext
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Dec 2009 21:43:52 +0000 (16:43 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 16:27:31 +0000 (11:27 -0500)
commit254416aae70ab2e6b57fd79782c8a67196234d02
treee28d54d1514634b591b54296b35bb9029e7b5a9c
parenta252e749f1ae17e43ccc5824f7b1b5854417c98b
wireless: report reasonable bitrate for MCS rates through wext

Previously, cfg80211 had reported "0" for MCS (i.e. 802.11n) bitrates
through the wireless extensions interface.  However, nl80211 was
converting MCS rates into a reasonable bitrate number.  This patch moves
the nl80211 code to cfg80211 where it is now shared between both the
nl80211 interface and the wireless extensions interface.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.h
net/wireless/nl80211.c
net/wireless/util.c
net/wireless/wext-compat.c