|
@@ -145,7 +145,7 @@ static void ap_free_sta(struct ap_data *ap, struct sta_info *sta)
|
|
|
if (sta->aid > 0)
|
|
if (sta->aid > 0)
|
|
|
ap->sta_aid[sta->aid - 1] = NULL;
|
|
ap->sta_aid[sta->aid - 1] = NULL;
|
|
|
|
|
|
|
|
- if (!sta->ap && sta->u.sta.challenge)
|
|
|
|
|
|
|
+ if (!sta->ap)
|
|
|
kfree(sta->u.sta.challenge);
|
|
kfree(sta->u.sta.challenge);
|
|
|
del_timer_sync(&sta->timer);
|
|
del_timer_sync(&sta->timer);
|
|
|
#endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
|
|
#endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
|