mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
net80211: enhance (disabled) debugging
Add maxchans to the disabled debugging in addchan() and copychan_prev() to aid debugging possible errors rreturned due to reaching maxchans limits. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
a8189e9bd4
commit
32cf376a01
|
@ -1287,8 +1287,8 @@ addchan(struct ieee80211_channel chans[], int maxchans, int *nchans,
|
|||
return (ENOBUFS);
|
||||
|
||||
#if 0
|
||||
printf("%s: %d: ieee=%d, freq=%d, flags=0x%08x\n",
|
||||
__func__, *nchans, ieee, freq, flags);
|
||||
printf("%s: %d of %d: ieee=%d, freq=%d, flags=0x%08x\n",
|
||||
__func__, *nchans, maxchans, ieee, freq, flags);
|
||||
#endif
|
||||
|
||||
c = &chans[(*nchans)++];
|
||||
|
@ -1317,8 +1317,8 @@ copychan_prev(struct ieee80211_channel chans[], int maxchans, int *nchans,
|
|||
return (ENOBUFS);
|
||||
|
||||
#if 0
|
||||
printf("%s: %d: flags=0x%08x\n",
|
||||
__func__, *nchans, flags);
|
||||
printf("%s: %d of %d: flags=0x%08x\n",
|
||||
__func__, *nchans, maxchans, flags);
|
||||
#endif
|
||||
|
||||
c = &chans[(*nchans)++];
|
||||
|
|
Loading…
Reference in a new issue