mac80211: Fix incorrectly named last_hop_metric variable in mesh_rx_path_sel_frame
authorAlexis Green <agreen@cococorp.com>
Fri, 5 Jun 2015 19:43:54 +0000 (12:43 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 9 Jun 2015 19:53:35 +0000 (21:53 +0200)
commitafd2efb91990667cd4d9171a743f8a89e19d5ef1
tree41cc3f82ecf3f6cfb5fad653569391f47fd46b2a
parent74d803b6021f7a1cb06363cd9f65dbdf4fcf35e7
mac80211: Fix incorrectly named last_hop_metric variable in mesh_rx_path_sel_frame

The last hop metric should refer to link cost (this is how
hwmp_route_info_get uses it for example). But in mesh_rx_path_sel_frame
we are not dealing with link cost but with the total cost to the origin
of a PREQ or PREP.

Signed-off-by: Alexis Green <agreen@cococorp.com>
CC: Jesse Jones <jjones@cococorp.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c