* [PATCH ] mac80211: use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic().
@ 2008-10-08 9:18 Rami Rosen
2008-10-08 9:21 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Rami Rosen @ 2008-10-08 9:18 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, Johannes Berg
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
This patch (wireless-next-2.6) fixes a typo in mac80211_hwsim.c:
use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic()
instead of HWSIM_VIF_MAGIC.
Signed-off-by: Rami Rosen <ramirose@gmail.com>
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 724 bytes --]
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index c9e4a43..bd6e265 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -63,13 +63,13 @@ struct hwsim_sta_priv {
static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta)
{
struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
- WARN_ON(sp->magic != HWSIM_VIF_MAGIC);
+ WARN_ON(sp->magic != HWSIM_STA_MAGIC);
}
static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta)
{
struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
- sp->magic = HWSIM_VIF_MAGIC;
+ sp->magic = HWSIM_STA_MAGIC;
}
static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH ] mac80211: use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic().
2008-10-08 9:18 [PATCH ] mac80211: use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic() Rami Rosen
@ 2008-10-08 9:21 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2008-10-08 9:21 UTC (permalink / raw)
To: Rami Rosen; +Cc: linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
On Wed, 2008-10-08 at 11:18 +0200, Rami Rosen wrote:
> This patch (wireless-next-2.6) fixes a typo in mac80211_hwsim.c:
> use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic()
> instead of HWSIM_VIF_MAGIC.
>
>
> Signed-off-by: Rami Rosen <ramirose@gmail.com>
Indeed, thanks.
Acked-by: Johannes Berg <johannes@sipsolutions.net>
[-- 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-10-08 9:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 9:18 [PATCH ] mac80211: use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic() Rami Rosen
2008-10-08 9:21 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox