Changed NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET to use U32

This commit is contained in:
Jouni Malinen 2008-11-26 16:16:28 +02:00 committed by Jouni Malinen
parent 6dcfad915f
commit 2f4eb31454

View File

@ -485,15 +485,15 @@ static int i802_set_freq2(void *priv, struct hostapd_freq_params *freq)
if (freq->ht_enabled) {
switch (freq->sec_channel_offset) {
case -1:
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NL80211_SEC_CHAN_BELOW);
break;
case 1:
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NL80211_SEC_CHAN_ABOVE);
break;
default:
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
NL80211_SEC_CHAN_DISABLED);
break;
}