libiwinfo: fix nl80211_get_channel() and nl80211_get_frequency()