add IEEE80211_IOC_BMISSTHRESHOLD for managing the beacon miss

threshold

Submitted by:	Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after:	2 weeks
This commit is contained in:
sam 2006-07-26 03:07:36 +00:00
parent 0e7f6a5c5f
commit 21beef2f64
2 changed files with 11 additions and 0 deletions

View File

@ -1644,6 +1644,9 @@ ieee80211_ioctl_get80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re
case IEEE80211_IOC_BURST:
ireq->i_val = (ic->ic_flags & IEEE80211_F_BURST) != 0;
break;
case IEEE80211_IOC_BMISSTHRESHOLD:
ireq->i_val = ic->ic_bmissthreshold;
break;
default:
error = EINVAL;
break;
@ -2597,6 +2600,13 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re
ic->ic_flags &= ~IEEE80211_F_BURST;
error = ENETRESET; /* XXX maybe not for station? */
break;
case IEEE80211_IOC_BMISSTHRESHOLD:
if (!(IEEE80211_HWBMISS_MIN <= ireq->i_val &&
ireq->i_val <= IEEE80211_HWBMISS_MAX))
return EINVAL;
ic->ic_bmissthreshold = ireq->i_val;
error = IS_UP(ic) ? ic->ic_reset(ic->ic_ifp) : 0;
break;
default:
error = EINVAL;
break;

View File

@ -446,6 +446,7 @@ struct ieee80211req {
#define IEEE80211_IOC_FRAGTHRESHOLD 73 /* tx fragmentation threshold */
#define IEEE80211_IOC_BURST 75 /* packet bursting */
#define IEEE80211_IOC_SCAN_RESULTS 76 /* get scan results */
#define IEEE80211_IOC_BMISSTHRESHOLD 77 /* beacon miss threshold */
/*
* Scan result data returned for IEEE80211_IOC_SCAN_RESULTS.