/* Copy command payload. */
memcpy(&cmd[1], buf, len);
- RSU_DPRINTF(sc, RSU_DEBUG_TX,
+ RSU_DPRINTF(sc, RSU_DEBUG_TX | RSU_DEBUG_FWCMD,
"%s: Tx cmd code=0x%x len=0x%x\n",
__func__, code, cmdsz);
data->buflen = xferlen;
rsp = (struct r92s_event_join_bss *)buf;
res = (int)le32toh(rsp->join_res);
- DPRINTF("Rx join BSS event len=%d res=%d\n", len, res);
+ RSU_DPRINTF(sc, RSU_DEBUG_STATE | RSU_DEBUG_FWCMD,
+ "%s: Rx join BSS event len=%d res=%d\n",
+ __func__, len, res);
if (res <= 0) {
RSU_UNLOCK(sc);
ieee80211_new_state(vap, IEEE80211_S_SCAN, -1);
DPRINTF("Assoc ID overflow\n");
tmp = 1;
}
- DPRINTF("associated with %s associd=%d\n",
- ether_sprintf(rsp->bss.macaddr), tmp);
+ RSU_DPRINTF(sc, RSU_DEBUG_STATE | RSU_DEBUG_FWCMD,
+ "%s: associated with %s associd=%d\n",
+ __func__, ether_sprintf(rsp->bss.macaddr), tmp);
+ /* XXX is this required? What's the top two bits for again? */
ni->ni_associd = tmp | 0xc000;
RSU_UNLOCK(sc);
ieee80211_new_state(vap, IEEE80211_S_RUN,
struct ieee80211com *ic = &sc->sc_ic;
struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
- RSU_DPRINTF(sc, RSU_DEBUG_RX,
+ RSU_DPRINTF(sc, RSU_DEBUG_RX | RSU_DEBUG_FWCMD,
"%s: Rx event code=%d len=%d\n", __func__, code, len);
switch (code) {
case R92S_EVT_SURVEY:
if (vap->iv_state == IEEE80211_S_AUTH)
rsu_event_join_bss(sc, buf, len);
break;
-#if 0
-XXX This event is occurring regularly, possibly due to some power saving event
-XXX and disrupts the WLAN traffic. Disable for now.
case R92S_EVT_DEL_STA:
- DPRINTF("disassociated from %s\n", ether_sprintf(buf));
+ RSU_DPRINTF(sc, RSU_DEBUG_FWCMD | RSU_DEBUG_STATE,
+ "%s: disassociated from %s\n", __func__,
+ ether_sprintf(buf));
if (vap->iv_state == IEEE80211_S_RUN &&
IEEE80211_ADDR_EQ(vap->iv_bss->ni_bssid, buf)) {
RSU_UNLOCK(sc);
RSU_LOCK(sc);
}
break;
-#endif
case R92S_EVT_WPS_PBC:
RSU_DPRINTF(sc, RSU_DEBUG_RX | RSU_DEBUG_FWCMD,
"%s: WPS PBC pushed.\n", __func__);