Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net80211 Add Kevin Lahey's power-saving support from the...



details:   https://anonhg.NetBSD.org/src/rev/3ae5f64c1a66
branches:  trunk
changeset: 553221:3ae5f64c1a66
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Oct 13 04:23:56 2003 +0000

description:
Add Kevin Lahey's power-saving support from the old 802.11 layer

diffstat:

 sys/net80211/ieee80211_proto.c |  6 ++++--
 sys/net80211/ieee80211_proto.h |  4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r 7337344c2de0 -r 3ae5f64c1a66 sys/net80211/ieee80211_proto.c
--- a/sys/net80211/ieee80211_proto.c    Mon Oct 13 04:22:55 2003 +0000
+++ b/sys/net80211/ieee80211_proto.c    Mon Oct 13 04:23:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_proto.c,v 1.4 2003/09/28 02:35:20 dyoung Exp $       */
+/*     $NetBSD: ieee80211_proto.c,v 1.5 2003/10/13 04:23:56 dyoung Exp $       */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -35,7 +35,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_proto.c,v 1.3 2003/07/20 21:36:08 sam Exp $");
 #else
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_proto.c,v 1.4 2003/09/28 02:35:20 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_proto.c,v 1.5 2003/10/13 04:23:56 dyoung Exp $");
 #endif
 
 /*
@@ -143,6 +143,7 @@
        mtx_destroy(&ic->ic_mgtq.ifq_mtx);
 #else
        IF_PURGE(&ic->ic_mgtq);
+       IF_PURGE(&ic->ic_pwrsaveq);
 #endif
 }
 
@@ -378,6 +379,7 @@
                        IF_DRAIN(&ic->ic_mgtq);
 #else
                        IF_PURGE(&ic->ic_mgtq);
+                       IF_PURGE(&ic->ic_pwrsaveq);
 #endif
                        if (ic->ic_wep_ctx != NULL) {
                                free(ic->ic_wep_ctx, M_DEVBUF);
diff -r 7337344c2de0 -r 3ae5f64c1a66 sys/net80211/ieee80211_proto.h
--- a/sys/net80211/ieee80211_proto.h    Mon Oct 13 04:22:55 2003 +0000
+++ b/sys/net80211/ieee80211_proto.h    Mon Oct 13 04:23:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_proto.h,v 1.2 2003/09/14 01:14:55 dyoung Exp $       */
+/*     $NetBSD: ieee80211_proto.h,v 1.3 2003/10/13 04:23:56 dyoung Exp $       */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -65,6 +65,8 @@
                int, int);
 extern struct mbuf *ieee80211_encap(struct ifnet *, struct mbuf *,
                struct ieee80211_node **);
+extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, 
+               struct mbuf *);
 extern struct mbuf *ieee80211_decap(struct ifnet *, struct mbuf *);
 extern u_int8_t *ieee80211_add_rates(u_int8_t *frm,
                const struct ieee80211_rateset *);



Home | Main Index | Thread Index | Old Index