]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/mac80211/mlme.c
mac80211: init HT TX data before rate control
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Feb 2013 16:36:12 +0000 (17:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Feb 2013 08:41:32 +0000 (09:41 +0100)
commit1128958dc22cbfa2562082da2621a06ba71bdce2
treed5242d14a78bc701ea65976a2cf04f046652e485
parent0af83d3df5863224336a18c24a14fda542b712f5
mac80211: init HT TX data before rate control

In case of connection, the station data is initialised from
the beacon/probe response first and then updated from the
association response. If the latter is different we update
the rate control algorithm and driver. Instead of doing it
this way, set the station data properly with data from the
association response before initializing rate control.

Also simplify the code by passing the station pointer.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c