Lines Matching defs:assoc
1245 struct iwi_notif_association *assoc;
1314 assoc = (struct iwi_notif_association *)(notif + 1);
1316 DPRINTFN(2, ("Association (%u, %u)\n", assoc->state,
1317 assoc->status));
1319 switch (assoc->state) {
1338 "unknown association state %u\n", assoc->state);
2575 struct iwi_associate assoc;
2656 memset(&assoc, 0, sizeof assoc);
2658 assoc.mode = IWI_MODE_11A;
2660 assoc.mode = IWI_MODE_11G;
2662 assoc.mode = IWI_MODE_11B;
2664 assoc.chan = ieee80211_chan2ieee(ic, ni->ni_chan);
2667 assoc.auth = (ic->ic_crypto.cs_def_txkey << 4) | IWI_AUTH_SHARED;
2670 assoc.plen = IWI_ASSOC_SHPREAMBLE;
2673 assoc.policy |= htole16(IWI_POLICY_WME);
2675 assoc.policy |= htole16(IWI_POLICY_WPA);
2677 assoc.type = IWI_HC_IBSS_START;
2679 assoc.type = IWI_HC_ASSOC;
2680 memcpy(assoc.tstamp, ni->ni_tstamp.data, 8);
2693 assoc.capinfo = htole16(capinfo);
2695 assoc.lintval = htole16(ic->ic_lintval);
2696 assoc.intval = htole16(ni->ni_intval);
2697 IEEE80211_ADDR_COPY(assoc.bssid, ni->ni_bssid);
2699 IEEE80211_ADDR_COPY(assoc.dst, ifp->if_broadcastaddr);
2701 IEEE80211_ADDR_COPY(assoc.dst, ni->ni_bssid);
2705 assoc.type == IWI_HC_IBSS_START ? "Start" : "Join",
2706 ether_sprintf(assoc.bssid), ether_sprintf(assoc.dst),
2707 assoc.chan, le16toh(assoc.policy), assoc.auth,
2708 le16toh(assoc.capinfo), le16toh(assoc.lintval),
2709 le16toh(assoc.intval)));
2711 return iwi_cmd(sc, IWI_CMD_ASSOCIATE, &assoc, sizeof assoc, 1);