little-dude / netlink

netlink libraries for rust
Other
329 stars 89 forks source link

Question: Changing frequency of interface #52

Open mainrs opened 5 years ago

mainrs commented 5 years ago

Is it possible to change the frequency (aka channel) of a given interface using this library? I am trying to port some C code:

NLA_PUT_U32(m, NL80211_ATTR_IFINDEX, ifindex);
NLA_PUT_U32(m, NL80211_ATTR_WIPHY_FREQ, freq);
NLA_PUT_U32(m, NL80211_ATTR_WIPHY_CHANNEL_TYPE, NL80211_CHAN_HT40PLUS);

I couldn't really find an example or methods/struct that re similar named.

little-dude commented 5 years ago

Unfortunately nl80211 is not supported yet, sorry.