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:
parent
202b0d1101
commit
546786c951
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160686
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user