Kaynağa Gözat

[PATCH] orinoco: fix truncating commsquality RID with the latest Symbol firmware

Symbol firmware F3.91-71 has an additional word in the commsquality RID.
Extend the receiving buffer by one word to accomodate it.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Pavel Roskin 19 yıl önce
ebeveyn
işleme
a208c4e1ea
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      drivers/net/wireless/orinoco.c

+ 1 - 1
drivers/net/wireless/orinoco.c

@@ -390,7 +390,7 @@ static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev)
 		}
 	} else {
 		struct {
-			__le16 qual, signal, noise;
+			__le16 qual, signal, noise, unused;
 		} __attribute__ ((packed)) cq;
 
 		err = HERMES_READ_RECORD(hw, USER_BAP,