Re: IEEE80211_DEBUG

2014-07-23 Thread Chris Cappuccio
Nathanael Rensen [nathan...@list.polymorpheus.com] wrote:
> The IEEE80211_DEBUG kernel option needs a little help to compile.
> 
> Index: ieee80211_pae_input.c
> ===
> RCS file: /cvs/src/sys/net80211/ieee80211_pae_input.c,v
> retrieving revision 1.19
> diff -u -p -r1.19 ieee80211_pae_input.c
> --- ieee80211_pae_input.c 22 Jul 2014 11:06:10 -  1.19
> +++ ieee80211_pae_input.c 23 Jul 2014 14:25:22 -
> @@ -978,7 +978,7 @@ ieee80211_recv_group_msg2(struct ieee802
>  
>   /* discard if we're not expecting this message */
>   if (ni->ni_rsn_gstate != RSNA_REKEYNEGOTIATING) {
> - DPRINTF(("%s: unexpected in state: %d\n", ni->ni_rsn_gstate));
> + DPRINTF(("unexpected in state: %d\n", ni->ni_rsn_gstate));

probably want this:
+   DPRINTF(("%s: unexpected in state: %d\n", ic->ic_if.if_xname,
+   ni->ni_rsn_gstate));



IEEE80211_DEBUG

2014-07-23 Thread Nathanael Rensen
The IEEE80211_DEBUG kernel option needs a little help to compile.

Index: ieee80211_pae_input.c
===
RCS file: /cvs/src/sys/net80211/ieee80211_pae_input.c,v
retrieving revision 1.19
diff -u -p -r1.19 ieee80211_pae_input.c
--- ieee80211_pae_input.c   22 Jul 2014 11:06:10 -  1.19
+++ ieee80211_pae_input.c   23 Jul 2014 14:25:22 -
@@ -978,7 +978,7 @@ ieee80211_recv_group_msg2(struct ieee802
 
/* discard if we're not expecting this message */
if (ni->ni_rsn_gstate != RSNA_REKEYNEGOTIATING) {
-   DPRINTF(("%s: unexpected in state: %d\n", ni->ni_rsn_gstate));
+   DPRINTF(("unexpected in state: %d\n", ni->ni_rsn_gstate));
return;
}
if (BE_READ_8(key->replaycnt) != ni->ni_replaycnt) {

Also a plug for a previous diff that may have fallen through the cracks:

http://marc.info/?l=openbsd-tech&m=140421855720135

Nathanael