Search Linux Wireless

re: mac80211: optimize ieee80211_rx_status struct layout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Johannes Berg,

The patch 30f422925c39: "mac80211: optimize ieee80211_rx_status 
struct layout" from Jul 5, 2012, leads to the following warning:
drivers/net/wireless/b43/xmit.c:773 b43_rx()
	 error: status.rate_idx is never equal to -1 (wrong type 0 - 255).

drivers/net/wireless/b43/xmit.c
   768          if (phystat0 & B43_RX_PHYST0_OFDM)
   769                  status.rate_idx = b43_plcp_get_bitrate_idx_ofdm(plcp,
   770                                                  phytype == B43_PHYTYPE_A);
   771          else
   772                  status.rate_idx = b43_plcp_get_bitrate_idx_cck(plcp);
   773          if (unlikely(status.rate_idx == -1)) {
   774                  /* PLCP seems to be corrupted.
   775                   * Drop the frame, if we are not interested in corrupted frames. */
   776                  if (!(dev->wl->filter_flags & FIF_PLCPFAIL))
   777                          goto drop;
   778          }

b43_plcp_get_bitrate_idx_ofdm() and b43_plcp_get_bitrate_idx_cck()
return -1 on error.  The "rate_idx" variable used to be an int but now
it's a u8.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux