Subject: d80211: RFC: divide by zero when hw->maxssi not set

From: David Kimdon <[email-masked]>
Date: Fri, 17 Nov 2006 15:51:09 -0800

Hi,

commit 448bf25bc9e3d70a211fdf235426472089371c43 added
ieee80211_get_wireless_stats in net/d80211/ieee80211_ioctl.c.  At
present we get a divide by zero (oops) if the low level driver does
not set the new hw->maxssi field.  Perhaps:

- reject registration of devices which do not set maxssi
- do not attempt to report link quality for drivers which do not 
  set maxssi
- other ideas? 

-David