Linux wireless drivers development
 help / color / mirror / Atom feed
* re: rndis_wlan: split getting current channel to separate function
@ 2012-02-29  6:32 Dan Carpenter
  2012-02-29  8:09 ` Jussi Kivilinna
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2012-02-29  6:32 UTC (permalink / raw)
  To: jussi.kivilinna; +Cc: linux-wireless

Hello Jussi,

The patch b5257c952: "rndis_wlan: workaround device not returning bss
for currently connected AP" from Nov 9, 2011, leads to the following
warning:
drivers/net/wireless/rndis_wlan.c:1374:36: warning: cast to restricted __le16
drivers/net/wireless/rndis_wlan.c:1374:36: warning: cast from restricted __le32

  1372  
  1373          if (beacon_interval)
  1374                  *beacon_interval = le16_to_cpu(config.beacon_period);
  1375          return channel;

The problem is that config.beacon_period is declared as le32 but we're
using it as le16.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-29  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  6:32 rndis_wlan: split getting current channel to separate function Dan Carpenter
2012-02-29  8:09 ` Jussi Kivilinna
2012-02-29  8:47   ` Jussi Kivilinna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox