struct ieee80211vap *vap = ni->ni_vap;
struct ieee80211com *ic = ni->ni_ic;
struct ieee80211_frame *wh;
- uint8_t *frm, *efrm, *sfrm;
+ uint8_t *frm, *efrm;
uint8_t *ssid, *rates, *xrates;
wh = mtod(m0, struct ieee80211_frame *);
* [tlv] extended supported rates
*/
ssid = rates = xrates = NULL;
- sfrm = frm;
while (efrm - frm > 1) {
IEEE80211_VERIFY_LENGTH(efrm - frm, frm[1] + 2, return);
switch (*frm) {
}
}
if (mcopy != NULL) {
- int len, err;
- len = mcopy->m_pkthdr.len;
+ int err;
err = ieee80211_handoff(ifp, mcopy);
if (err) {
/* NB: IFQ_HANDOFF reclaims mcopy */
struct ieee80211_tx_ampdu *tap,
int status, int baparamset, int batimeout)
{
- int bufsiz, tid;
-
+ int bufsiz;
+#if 0
+ int tid;
+#endif
/* XXX locking */
addba_stop_timeout(tap);
if (status == IEEE80211_STATUS_SUCCESS) {
tap->txa_wnd = (bufsiz == 0) ?
IEEE80211_AGGR_BAWMAX : min(bufsiz, IEEE80211_AGGR_BAWMAX);
/* XXX AC/TID */
+#if 0
tid = MS(baparamset, IEEE80211_BAPS_TID);
+#endif
tap->txa_flags |= IEEE80211_AGGR_RUNNING;
tap->txa_attempts = 0;
} else {
ieee80211_ioctl_setappie(struct ieee80211vap *vap,
const struct ieee80211req *ireq)
{
- struct ieee80211com *ic = vap->iv_ic;
int error;
uint8_t fc0;
- ic = vap->iv_ic;
fc0 = ireq->i_val & 0xff;
if ((fc0 & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_MGT)
return EINVAL;
{
struct ieee80211_mesh_state *ms = vap->iv_mesh;
struct ieee80211com *ic = vap->iv_ic;
- struct ieee80211_node *ni;
enum ieee80211_state ostate;
ostate = vap->iv_state;
vap->iv_state = nstate; /* state transition */
if (ostate != IEEE80211_S_SCAN)
ieee80211_cancel_scan(vap); /* background scan */
- ni = vap->iv_bss; /* NB: no reference held */
if (nstate != IEEE80211_S_RUN && ostate == IEEE80211_S_RUN)
callout_stop(&ms->ms_cleantimer);
switch (nstate) {
struct ieee80211com *ic = ni->ni_ic;
const struct ieee80211_txparam *tp;
struct ieee80211_bpf_params params;
- struct ieee80211_frame *wh;
const struct ieee80211_rateset *rs;
struct mbuf *m;
uint8_t *frm;
return ENOMEM;
}
- wh = mtod(m, struct ieee80211_frame *);
ieee80211_send_setup(ni, m,
IEEE80211_FC0_TYPE_MGT | IEEE80211_FC0_SUBTYPE_PROBE_REQ,
IEEE80211_NONQOS_TID, sa, da, bssid);
{
struct ieee80211_node *bss = vap->iv_bss;
struct ieee80211com *ic = vap->iv_ic;
- struct ieee80211_frame *wh;
struct mbuf *m;
if (vap->iv_state == IEEE80211_S_CAC) {
M_PREPEND(m, sizeof(struct ieee80211_frame), MB_DONTWAIT);
KASSERT(m != NULL, ("no room for header"));
- wh = mtod(m, struct ieee80211_frame *);
ieee80211_send_setup(bss, m,
IEEE80211_FC0_TYPE_MGT | IEEE80211_FC0_SUBTYPE_PROBE_RESP,
IEEE80211_NONQOS_TID, vap->iv_myaddr, da, bss->ni_bssid);
ieee80211_set_tim(struct ieee80211_node *ni, int set)
{
struct ieee80211vap *vap = ni->ni_vap;
- struct ieee80211com *ic = ni->ni_ic;
uint16_t aid;
int changed;
- ic = ni->ni_ic;
KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP ||
vap->iv_opmode == IEEE80211_M_IBSS,
("operating mode %u", vap->iv_opmode));
void
ieee80211_wme_initparams(struct ieee80211vap *vap)
{
- struct ieee80211com *ic = vap->iv_ic;
-
- ic = vap->iv_ic;
ieee80211_wme_initparams_locked(vap);
}
void
ieee80211_stop(struct ieee80211vap *vap)
{
- struct ieee80211com *ic = vap->iv_ic;
-
- ic = vap->iv_ic;
ieee80211_stop_locked(vap);
}
ieee80211_new_state(struct ieee80211vap *vap,
enum ieee80211_state nstate, int arg)
{
- struct ieee80211com *ic = vap->iv_ic;
int rc;
- ic = vap->iv_ic;
rc = ieee80211_new_state_locked(vap, nstate, arg);
return rc;
}
u_int duration, u_int mindwell, u_int maxdwell,
u_int nssid, const struct ieee80211_scan_ssid ssids[])
{
- struct ieee80211com *ic = vap->iv_ic;
const struct ieee80211_scanner *scan;
int result;
- ic = vap->iv_ic;
scan = ieee80211_scanner_get(vap->iv_opmode);
if (scan == NULL) {
IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
static void
scan_mindwell(struct ieee80211_scan_state *ss)
{
- struct ieee80211com *ic = ss->ss_ic;
-
- ic = ss->ss_ic;
scan_signal(ss);
}
wds_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
{
struct ieee80211com *ic = vap->iv_ic;
- struct ieee80211_node *ni;
enum ieee80211_state ostate;
int error;
callout_stop(&vap->iv_mgtsend); /* XXX callout_drain */
if (ostate != IEEE80211_S_SCAN)
ieee80211_cancel_scan(vap); /* background scan */
- ni = vap->iv_bss; /* NB: no reference held */
error = 0;
switch (nstate) {
case IEEE80211_S_INIT: