* [PATCH] mac80211: fix an error in ieee80211_send_assoc() method.
@ 2008-12-16 20:38 Rami Rosen
2008-12-16 20:43 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Rami Rosen @ 2008-12-16 20:38 UTC (permalink / raw)
To: linville; +Cc: Johannes Berg, linux-wireless
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)
Signed-off-by: Rami Rosen <ramirose@gmail.com>
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 9a06905..829cdf8 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: fix an error in ieee80211_send_assoc() method.
2008-12-16 20:38 [PATCH] mac80211: fix an error in ieee80211_send_assoc() method Rami Rosen
@ 2008-12-16 20:43 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2008-12-16 20:43 UTC (permalink / raw)
To: Rami Rosen; +Cc: linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 609 bytes --]
On Tue, 2008-12-16 at 22:38 +0200, Rami Rosen wrote:
> 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.
> - 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-16 20:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 20:38 [PATCH] mac80211: fix an error in ieee80211_send_assoc() method Rami Rosen
2008-12-16 20:43 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox