android_kernel_xiaomi_sm8350/drivers/net/wireless
Pavel Roskin b15eff2632 [PATCH] hostap update
Warning fix for 64-bit platforms

Hello!

The patch fixes following warning seen on 64-bit platforms (in my case -
x86_64, gcc-4.0):

In file included from /usr/local/src/hostap/driver/modules/hostap_cs.c:203:
/usr/local/src/hostap/driver/modules/hostap_hw.c: In function ?prism2_transmit_cb?:
/usr/local/src/hostap/driver/modules/hostap_hw.c:1674: warning: cast from pointer to integer of different size
/usr/local/src/hostap/driver/modules/hostap_hw.c: In function ?prism2_transmit?:
/usr/local/src/hostap/driver/modules/hostap_hw.c:1758: warning: cast to pointer from integer of different size

prism2_transmit_cb uses a (void *) argument to get an integer.   A
simple fix would be to use double cast from pointer to long and then to
int (and vice versa when int is passed as a pointer).  But I prefer a
slightly longer patch.

I believe that whenever an argument can hold both a pointer and an
integer, it should be declared long.  long can hold both pointers and
integers (except win64, but we are not coding for Windows), it can be
cast to both of them and it's never assumed to be a valid pointer, which
could be useful for some automatic code checkers.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-07-30 18:17:23 -04:00
..
hostap [PATCH] hostap update 2005-07-30 18:17:23 -04:00
prism54
airo_cs.c [PATCH] pcmcia: remove references to pcmcia/version.h 2005-07-07 18:24:07 -07:00
airo.c /spare/repo/netdev-2.6 branch 'ieee80211' 2005-07-30 18:14:50 -04:00
airport.c [PATCH] openfirmware: generate device table for userspace 2005-07-06 12:55:20 -07:00
arlan-main.c
arlan-proc.c
arlan.h
atmel_cs.c [PATCH] pcmcia: remove references to pcmcia/version.h 2005-07-07 18:24:07 -07:00
atmel_pci.c
atmel.c
atmel.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c [PATCH] wireless-device-attr-fixes 2005-06-27 23:37:29 -04:00
ipw2100.h [PATCH] ipw2100: kill dead macros 2005-06-27 23:26:30 -04:00
ipw2200.c wireless: fix ipw warning; add is_broadcast_ether_addr() to linux/etherdevice.h 2005-06-28 01:46:35 -04:00
ipw2200.h
Kconfig Merge /spare/repo/netdev-2.6 branch 'ieee80211' 2005-06-27 23:45:25 -04:00
Makefile
netwave_cs.c [PATCH] pcmcia: remove references to pcmcia/version.h 2005-07-07 18:24:07 -07:00
orinoco_cs.c [PATCH] pcmcia: remove duplicates in orinoco_cs 2005-07-28 08:39:00 -07:00
orinoco_pci.c
orinoco_plx.c
orinoco_tmd.c
orinoco.c Merge upstream ieee80211.h with us (us == branch 'ieee80211' of netdev-2.6) 2005-06-27 22:03:52 -04:00
orinoco.h
ray_cs.c [PATCH] pcmcia: remove references to pcmcia/version.h 2005-07-07 18:24:07 -07:00
ray_cs.h
rayctl.h
README
strip.c
todo.txt
wavelan_cs.c Merge /spare/repo/netdev-2.6 branch 'ieee80211' 2005-07-13 19:11:44 -04:00
wavelan_cs.h
wavelan_cs.p.h Merge /spare/repo/netdev-2.6 branch 'ieee80211' 2005-07-13 19:11:44 -04:00
wavelan.c
wavelan.h
wavelan.p.h
wl3501_cs.c Merge /spare/repo/netdev-2.6 branch 'ieee80211' 2005-07-13 19:11:44 -04:00
wl3501.h

	README
	------

	This directory is mostly for Wireless LAN drivers, in their
various incarnations (ISA, PCI, Pcmcia...).
	This separate directory is needed because a lot of driver work
on different bus (typically PCI + Pcmcia) and share 95% of the
code. This allow the code and the config options to be in one single
place instead of scattered all over the driver tree, which is never
100% satisfactory.

	Note : if you want more info on the topic of Wireless LANs,
you are kindly invited to have a look at the Wireless Howto :
		http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
	Some Wireless LAN drivers, like orinoco_cs, require the use of
Wireless Tools to be configured :
		http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

	Special notes for distribution maintainers :
	1) wvlan_cs will be discontinued soon in favor of orinoco_cs
	2) Please add Wireless Tools support in your scripts

	Have fun...

	Jean