Date: Tue, 19 Feb 2008 00:42:16 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 135692 for review Message-ID: <200802190042.m1J0gGQp008551@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135692 Change 135692 by sam@sam_ebb on 2008/02/19 00:41:17 adopt sephe's idea: pass the ioctl cmd code to the reset method so drivers can optimize their work Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211.c#23 edit .. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#27 edit .. //depot/projects/vap/sys/net80211/ieee80211_var.h#29 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211.c#23 (text+ko) ==== @@ -275,7 +275,7 @@ * can override this method to implement more optimized support. */ static int -default_reset(struct ieee80211vap *vap) +default_reset(struct ieee80211vap *vap, u_long cmd) { return ENETRESET; } ==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#27 (text+ko) ==== @@ -3171,7 +3171,7 @@ ieee80211_init(vap); error = 0; } else if (error == ERESTART) { - error = IFNET_IS_UP_RUNNING(ifp) ? vap->iv_reset(vap) : 0; + error = IFNET_IS_UP_RUNNING(ifp) ? vap->iv_reset(vap, cmd) : 0; } return error; } ==== //depot/projects/vap/sys/net80211/ieee80211_var.h#29 (text+ko) ==== @@ -398,7 +398,7 @@ /* beacon miss processing */ void (*iv_bmiss)(struct ieee80211vap *); /* reset device state after 802.11 parameter/state change */ - int (*iv_reset)(struct ieee80211vap *); + int (*iv_reset)(struct ieee80211vap *, u_long); /* [schedule] beacon frame update */ void (*iv_update_beacon)(struct ieee80211vap *, int); /* state machine processing */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802190042.m1J0gGQp008551>