]> err.no Git - linux-2.6/commit
wext: Emit event stream entries correctly when compat.
authorDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 01:50:49 +0000 (18:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 01:50:49 +0000 (18:50 -0700)
commitccc580571cf0799d0460a085a7632b77753f083e
tree018e0f83776b089b1f272694132688ac93be25b4
parent0f5cabba49021d36e9f76bd97d7fa0f4a408063f
wext: Emit event stream entries correctly when compat.

Three major portions to this change:

1) Add IW_EV_COMPAT_LCP_LEN, IW_EV_COMPAT_POINT_OFF,
   and IW_EV_COMPAT_POINT_LEN helper defines.

2) Delete iw_stream_check_add_*(), they are unused.

3) Add iw_request_info argument to iwe_stream_add_*(), and use it to
   size the event and pointer lengths correctly depending upon whether
   IW_REQUEST_FLAG_COMPAT is set or not.

4) The mechanical transformations to the drivers and wireless stack
   bits to get the iw_request_info passed down into the routines
   modified in #3.  Also, explicit references to IW_EV_LCP_LEN are
   replaced with iwe_stream_lcp_len(info).

With a lot of help and bug fixes from Masakazu Mokuno.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
drivers/net/ps3_gelic_wireless.c
drivers/net/wireless/airo.c
drivers/net/wireless/atmel.c
drivers/net/wireless/hostap/hostap.h
drivers/net/wireless/hostap/hostap_ap.c
drivers/net/wireless/hostap/hostap_ioctl.c
drivers/net/wireless/libertas/scan.c
drivers/net/wireless/orinoco.c
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/rndis_wlan.c
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/zd1201.c
include/linux/wireless.h
include/net/iw_handler.h
net/ieee80211/ieee80211_wx.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/wext.c