|
@@ -384,11 +384,9 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
|
|
|
} else {
|
|
|
u8 *ies = found->pub.information_elements;
|
|
|
|
|
|
- if (found->ies_allocated) {
|
|
|
- if (ksize(ies) < ielen)
|
|
|
- ies = krealloc(ies, ielen,
|
|
|
- GFP_ATOMIC);
|
|
|
- } else
|
|
|
+ if (found->ies_allocated)
|
|
|
+ ies = krealloc(ies, ielen, GFP_ATOMIC);
|
|
|
+ else
|
|
|
ies = kmalloc(ielen, GFP_ATOMIC);
|
|
|
|
|
|
if (ies) {
|