madwifi: allow ad-hoc mode with software based TSF merging (hardware merging can...
[openwrt/openwrt.git] / package / madwifi / patches / 370-wdsvap.patch
index ee0a2de5bbc18a7e544bd57d766cf9158f012a75..0e4b3a85d30f32d6969b5c3a6c3083d4cd7ce6fd 100644 (file)
@@ -67,7 +67,7 @@
        /* override with driver methods */
        vap = &avp->av_vap;
        avp->av_newstate = vap->iv_newstate;
-@@ -4201,8 +4203,7 @@
+@@ -4209,8 +4211,7 @@
        if (ic->ic_opmode == IEEE80211_M_STA ||
            sc->sc_opmode == HAL_M_IBSS ||      /* NB: AHDEMO too */
            (sc->sc_nostabeacons) || sc->sc_scanning ||
        ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) == IEEE80211_FC0_SUBTYPE_PS_POLL)
        struct ieee80211_node_table *nt;
        struct ieee80211_node *ni;
-+      u_int8_t *addr;
++      const u_int8_t *addr;
 +
 +      if (IS_CTL(wh) && !IS_PSPOLL(wh) /*&& !IS_RTS(ah)*/)
 +              addr = wh->i_addr1;