|
|
@@ -1191,7 +1191,7 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
|
|
|
struct wilc_priv *priv;
|
|
|
struct wilc_vif *vif;
|
|
|
u32 i = 0;
|
|
|
- u32 associatedsta = 0;
|
|
|
+ u32 associatedsta = ~0;
|
|
|
u32 inactive_time = 0;
|
|
|
priv = wiphy_priv(wiphy);
|
|
|
vif = netdev_priv(dev);
|
|
|
@@ -1204,7 +1204,7 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (associatedsta == -1) {
|
|
|
+ if (associatedsta == ~0) {
|
|
|
netdev_err(dev, "sta required is not associated\n");
|
|
|
return -ENOENT;
|
|
|
}
|