> + /* check if we need to merge IBSS */ > + if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS && beacon && > + !local->sta_sw_scanning && !local->sta_hw_scanning && > + mgmt->u.beacon.capab_info & WLAN_CAPABILITY_IBSS && > + memcmp(elems.ssid, sdata->u.sta.ssid, sdata->u.sta.ssid_len) == 0) { This needs to test whether elems.ssid_len == sdata->u.sta.ssid_len (before doing the memcmp to not overrun the frame). > + if (rx_status->flag & RX_FLAG_TSFT) > + /* in order for correct IBSS merging we need mactime */ > + mactime = rx_status->mactime; This needs to be documented (with the RX flag I guess) and b43(legacy) should be changed to include the TSFT in beacon frames in IBSS mode... johannes
Attachment:
signature.asc
Description: This is a digitally signed message part