The SIOCGATHDIAG ioctl tries to overlay a new struct defintion (struct ath_diag)...
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 17 Mar 2008 04:46:00 +0000 (04:46 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 17 Mar 2008 04:46:00 +0000 (04:46 +0000)
commitb1a451321f3165c3beccf5e11aa7a438b535c409
treec551d55fc43bba4b7237670a2f6685a8c35b3c37
parentd72a04fc2e9ee0396155ad2a3bd46415d2a05cdb
The SIOCGATHDIAG ioctl tries to overlay a new struct defintion (struct ath_diag) onto the struct ifreq. Unfortunately, this structure appears to be too large on 64-bit platforms due to a larger pointer size; the technique may also suffer other problems.
Remove the old SIOCGATHDIAG ioctl (return -EOPNOTSUPP), and add a new ioctl (SIOCGATHHALDIAG) that passes the struct through ifr_data. Also, return -EOPNOTSUPP for unknown IOCTL numbers.

Incidently, I can't find anything that actually uses the old IOCTL.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3389 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath/if_ath.c
ath/if_athioctl.h