iwlwifi: allow user to set max rate
authorAbbas, Mohamed <mohamed.abbas@intel.com>
Wed, 21 Jan 2009 05:33:52 +0000 (21:33 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:04 +0000 (16:01 -0500)
commitc6ec7a9b17875e3a5a9cdd23f7914d74069316c8
treef4be861847da62edad456939f6ce0b7ddb3f773c
parent3cbb5dd73697b3f1c677daffe29f00ace22b71e9
iwlwifi: allow user to set max rate

allow user to set max rate through #iwconfig <inteface> rate XXX.
mac80211 will try to force this if user set it, but driver is not
in sync which cause mac80211 to report wrong current rate. This
patch will check if max rate is set and force it in rate scaling

Signed-off-by: mohamed abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945-rs.c
drivers/net/wireless/iwlwifi/iwl-agn-rs.c