From 2f4eb314547bcbeea9a4b89c0d20cf6a2fb553cc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 26 Nov 2008 16:16:28 +0200 Subject: [PATCH] Changed NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET to use U32 --- hostapd/driver_nl80211.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index 8edb3a3dc..90c67287c 100644 --- a/hostapd/driver_nl80211.c +++ b/hostapd/driver_nl80211.c @@ -485,16 +485,16 @@ 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, - NL80211_SEC_CHAN_BELOW); + 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, - NL80211_SEC_CHAN_ABOVE); + 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, - NL80211_SEC_CHAN_DISABLED); + NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET, + NL80211_SEC_CHAN_DISABLED); break; } }