summaryrefslogtreecommitdiff
path: root/net/dccp/sysctl.c
diff options
context:
space:
mode:
authorAlexis Green <agreen@cococorp.com>2015-06-10 02:20:24 +0300
committerJohannes Berg <johannes.berg@intel.com>2015-06-10 12:52:59 +0300
commit5ec596c41bba6f4e3eeef5dc089afc8eaa702a7e (patch)
tree4251124de2077506eaa68a5f2cf5780e66b7859c /net/dccp/sysctl.c
parente060e7adc296c0b3eab1d7b96f36b496733109e4 (diff)
downloadlinux-5ec596c41bba6f4e3eeef5dc089afc8eaa702a7e.tar.xz
mac80211: Fix a case of incorrect metric used when forwarding a PREQ
This patch fixes a bug in hwmp_preq_frame_process where the wrong metric can be used when forwarding a PREQ. This happens because the code uses the same metric variable to record the value of the metric to the source of the PREQ and the value of the metric to the target of the PREQ. This comes into play when both reply and forward are set which happens when IEEE80211_PREQ_PROACTIVE_PREP_FLAG is set and when MP_F_DO | MP_F_RF is set. The original code had a special case to handle the first case but not the second. The patch uses distinct variables for the two metrics which makes the code flow much clearer and removes the need to restore the original value of metric when forwarding. Signed-off-by: Alexis Green <agreen@cococorp.com> CC: Jesse Jones <jjones@cococorp.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/dccp/sysctl.c')
0 files changed, 0 insertions, 0 deletions