mac80211: fix an error in ieee80211_send_assoc() method.
PATCH 1/1 mac80211: fix an error in ieee80211_send_assoc() method.
This patch fixes an error in ieee80211_send_assoc(), net/mac80211/mlme.c.
The error is usage of a wrong member when building
the ie80211 management frame (it should be assoc_req, and not reassoc_req).
This error is due to commit ea95bba41e69c616bb1512cf59d22f33266b8568, which dealt with configuring a listen interval , from Jul 18, 2008.
(wireless-testing)
net/mac80211/mlme.c +0 -0
@@ -309,7 +309,7 @@ static void ieee80211_send_assoc(struct
ieee80211_sub_if_data *sdata,
mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
IEEE80211_STYPE_ASSOC_REQ);
mgmt->u.assoc_req.capab_info = cpu_to_le16(capab);
- mgmt->u.reassoc_req.listen_interval =
+ mgmt->u.assoc_req.listen_interval =
cpu_to_le16(local->hw.conf.listen_interval);
}
Johannes Berg
maintainerReview
Quoted 11 lines · Rami Rosen
This patch fixes an error in
ieee80211_send_assoc(),net/mac80211/mlme.c.The error is usage of a wrong member when building
the ie80211 management frame (it should beassoc_req, and notreassoc_req).This error is due to commit
ea95bba41e69c616bb1512cf59d22f33266b8568, which dealt with configuring a listen interval , from Jul 18, 2008.(quoted diff) +1
-1- mgmt->u.reassoc_req.listen_interval = + mgmt->u.assoc_req.listen_interval = cpu_to_le16(local->hw.conf.listen_interval);
Seems fine, but, uh, it's not a bug.
johannes