fix two more instances of using the wrong bssid in IBSS mode. there are more
authorbr1 <br1@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 12 Dec 2007 11:29:19 +0000 (11:29 +0000)
committerbr1 <br1@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 12 Dec 2007 11:29:19 +0000 (11:29 +0000)
places where we could use vap->iv_bss->ni_bssid instead of ni->ni_bssid but i'm
not sure about the other ones.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3036 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_output.c

index 5f73877d6520a55ec0369467603d102aab76545e..7aecdfe279a059e0805200c5b6f3fb2072bee0de 100644 (file)
@@ -478,7 +478,7 @@ ieee80211_send_nulldata(struct ieee80211_node *ni)
                skb_push(skb, sizeof(struct ieee80211_frame));
        ieee80211_send_setup(vap, ni, wh,
                IEEE80211_FC0_TYPE_DATA | IEEE80211_FC0_SUBTYPE_NODATA,
-               vap->iv_myaddr, ni->ni_macaddr, ni->ni_bssid);
+               vap->iv_myaddr, ni->ni_macaddr, vap->iv_bss->ni_bssid);
        /* NB: power management bit is never sent by an AP */
        if ((IEEE80211_VAP_IS_SLEEPING(ni->ni_vap)) &&
            vap->iv_opmode != IEEE80211_M_HOSTAP &&
@@ -533,7 +533,7 @@ ieee80211_send_qosnulldata(struct ieee80211_node *ni, int ac)
                IEEE80211_FC0_TYPE_DATA,
                vap->iv_myaddr, /* SA */
                ni->ni_macaddr, /* DA */
-               ni->ni_bssid);
+               vap->iv_bss->ni_bssid);
 
        qwh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA |
                IEEE80211_FC0_SUBTYPE_QOS_NULL;