freebsd_wlan: Copy out only the size of the request length.
Fixes more problems with wpa_supplicant, this time on x64.
This commit is contained in:
@@ -736,7 +736,11 @@ ieee80211_ioctl_getdevcaps(struct ieee80211com *ic,
|
|||||||
} else
|
} else
|
||||||
dc->dc_chaninfo.ic_nchans = 0; /* HACK */
|
dc->dc_chaninfo.ic_nchans = 0; /* HACK */
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
error = copyout(dc, ireq->i_data, ireq->i_len);
|
||||||
|
#else
|
||||||
error = copyout(dc, ireq->i_data, IEEE80211_DEVCAPS_SPACE(dc));
|
error = copyout(dc, ireq->i_data, IEEE80211_DEVCAPS_SPACE(dc));
|
||||||
|
#endif
|
||||||
IEEE80211_FREE(dc, M_TEMP);
|
IEEE80211_FREE(dc, M_TEMP);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user