Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Rafał Miłecki
On 11 June 2015 at 11:46, Johannes Berg johan...@sipsolutions.net wrote: On Thu, 2015-06-11 at 11:45 +0200, Johannes Berg wrote: On Thu, 2015-06-11 at 11:35 +0200, Rafał Miłecki wrote: iw also wasn't helpful: Frequencies: * 5180 MHz [36] (30.0 dBm) * 5200 MHz [40] (30.0

Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 11:35 +0200, Rafał Miłecki wrote: iw also wasn't helpful: Frequencies: * 5180 MHz [36] (30.0 dBm) * 5200 MHz [40] (30.0 dBm) * 5220 MHz [44] (30.0 dBm) * 5240 MHz [48] (30.0 dBm) After some in-kernel debugging (nl80211_set_wiphy,

Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Rafał Miłecki
Hi, Recently I spent quite some time trying to figure out why hostapd can't start 80 MHz AP for me with following error: radio1 (1617): nl80211: Failed to set channel (freq=5180): -22 (Invalid argument) My config included: hw_mode=a channel=36 vht_oper_chwidth=1 vht_oper_centr_freq_seg0_idx=42

Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 12:00 +0200, Rafał Miłecki wrote: Upon rereading, I think my preference would be to remove much of the channel list information and add a separate iw command. Do you mean removing channel list from iw phy X info? I'm not sure I'd remove it completely - but perhaps

Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 11:45 +0200, Johannes Berg wrote: On Thu, 2015-06-11 at 11:35 +0200, Rafał Miłecki wrote: iw also wasn't helpful: Frequencies: * 5180 MHz [36] (30.0 dBm) * 5200 MHz [40] (30.0 dBm) * 5220 MHz [44] (30.0 dBm) * 5240 MHz [48] (30.0

Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Ben Greear
On 06/11/2015 03:01 AM, Johannes Berg wrote: On Thu, 2015-06-11 at 12:00 +0200, Rafał Miłecki wrote: Upon rereading, I think my preference would be to remove much of the channel list information and add a separate iw command. Do you mean removing channel list from iw phy X info? I'm not

Re: Exposing enum ieee80211_channel_flags to user

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 06:16 -0700, Ben Greear wrote: Maybe also allow the full dump with an optional --verbose flag: 'iw --verbose phy X info' ? Well, as I said, it's not so simple to do this in the info handler since you need to collect all the info first and then print it. johannes -- To