wireless: report reasonable bitrate for MCS rates through wext
commit46615c1f8958e669cce7ded58ae135c425d0d361
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Dec 2009 21:43:52 +0000 (9 16:43 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:11:11 +0000 (5 11:11 -0700)
tree7cc8fd0b30585b897a42d8b1fbd7a20dc970aee8
parent009503a990c81d4cea2250a2c98bc6bcd4063350
wireless: report reasonable bitrate for MCS rates through wext

commit 254416aae70ab2e6b57fd79782c8a67196234d02 upstream.

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>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/wireless/core.h
net/wireless/nl80211.c
net/wireless/util.c
net/wireless/wext-compat.c