Johannes Berg 1d4df3a50f mac80211: fix variable truncation on 32-bit
Stephen Rothwell reported these warnings from a 32-bit build:

  net/mac80211/mlme.c:1771: warning: left shift count >= width of type
  net/mac80211/mlme.c:1772: warning: left shift count >= width of type
  net/mac80211/mlme.c:1773: warning: left shift count >= width of type
  net/mac80211/mlme.c:1774: warning: left shift count >= width of type
  net/mac80211/mlme.c:1775: warning: left shift count >= width of type

This shows a bug in my code -- BIT(X) uses just "1 << X" which means
a 32-bit integer on 32-bit platforms, but the code here needs a u64
on all platforms. Fix this by using "1ULL << X" instead of BIT(X).

Thanks Stephen!

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-04-22 16:57:20 -04:00
..
2007-05-05 11:46:38 -07:00
2009-04-22 16:54:28 -04:00
2009-04-22 16:57:17 -04:00
2009-04-22 16:57:17 -04:00
2009-04-22 16:57:16 -04:00
2009-02-27 14:51:42 -05:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-02-27 14:51:42 -05:00
2009-04-22 16:57:14 -04:00
2009-04-22 16:54:28 -04:00
2009-04-22 16:57:17 -04:00
2009-04-22 16:57:17 -04:00
2009-03-27 20:13:21 -04:00
2008-10-31 18:05:59 -04:00
2009-04-22 16:54:28 -04:00