Fix segfault in hostapd_eid_ht_capabilities() with some drivers
authorJouni Malinen <j@w1.fi>
Sun, 5 Sep 2010 09:47:16 +0000 (12:47 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 5 Sep 2010 09:47:16 +0000 (12:47 +0300)
commit8421e95c712e10fca768ee8bfe3d334cba6a9d12
tree42b489b0a54ae4ebb86761aba3866a47580ec3ba
parentb070460b1a1848159e68f3714ffb56dc6d67eef9
Fix segfault in hostapd_eid_ht_capabilities() with some drivers

This function is not really needed in case of drivers that build the
HT IEs internally. However, since this can get called if ieee80211n=1
is set in hostapd.conf, we better not segfault even if the driver
does not provide hw info (hapd->iface->current_mode == NULL).
src/ap/ieee802_11_ht.c