Re: Issues with urtwn

2014-11-02 Thread Matthias Apitz

Hi,

I do not understand why I have these 'powersave on/off' transitions:

Nov  2 09:01:06 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
on
Nov  2 09:01:08 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
off
Nov  2 09:06:08 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
on
Nov  2 09:06:10 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
off
Nov  2 09:11:11 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
on
Nov  2 09:11:12 unixarea kernel: wlan0: [00:13:f7:0d:08:48] sta power save mode 
off

# ifconfig wlan0 -powersave
# ifconfig -v wlan0 | fgrep power
AES-CCM 3:128-bit powersavemode OFF powersavesleep 100 txpower 0

i.e. it seems to be OFF, I even can not set it to on:

# ifconfig wlan0 powersave
ifconfig: SIOCS80211: Operation not supported

What I do can set is the powersavesleep interval to zero:

# ifconfig wlan0 powersavesleep 0
# ifconfig -v wlan0 | fgrep power
AES-CCM 3:128-bit powersavemode OFF powersavesleep 0 txpower 0

But this does not help either.

I fgrep'ed throu the src/sys and it seems that the power save mode
on/off message comes out from

/usr/src/sys/net80211/ieee80211_power.c

/*
 * Handle power-save state change in station mode.
 */
void
ieee80211_sta_pwrsave(struct ieee80211vap *vap, int enable)
{
struct ieee80211_node *ni = vap-iv_bss;
 
if (!((enable != 0) ^ ((ni-ni_flags  IEEE80211_NODE_PWR_MGT) != 0)))
return;
 
IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni,
sta power save mode %s, enable ? on : off);

but this does not answer the question why is switching it on/off.

Is it worth to compile a hard change an let return
ieee80211_sta_pwrsave() without doing anything?

Any ideas?

matthias

-- 
Matthias Apitz   |  /\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X- No proprietary attachments
phone: +49-170-4527211   |  / \   - Respect for open standards
 | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: Issues with urtwn

2014-11-02 Thread Matthias Apitz
El día Sunday, November 02, 2014 a las 07:24:02AM -0800, Nathan Whitehorn 
escribió:

 Are you running wpa_supplicant? If you can connect to a plain network 
 with ifconfig, these will stop.
 -Nathan

I do run wpa_supplicant. But I don't understand what you mean with If
you can connect to a plain network with ifconfig ...

wlan0 has an IP addr (via DHCP from the AP) and I can connect. What do
you mean with to a plain network with ifconfig ...?

Thx

matthias


-- 
Matthias Apitz   |  /\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X- No proprietary attachments
phone: +49-170-4527211   |  / \   - Respect for open standards
 | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: Issues with urtwn

2014-11-02 Thread Adrian Chadd
It's not forcing the adapter itself into ps mode - it's just net80211
doing an off-channel scan thing.

Someone has to debug/fix this scan hang thing, I'm out of energy atm :(



-adrian


On 2 November 2014 07:31, Nathan Whitehorn nwhiteh...@freebsd.org wrote:

 On 11/02/14 07:29, Matthias Apitz wrote:

 El día Sunday, November 02, 2014 a las 07:24:02AM -0800, Nathan Whitehorn
 escribió:

 Are you running wpa_supplicant? If you can connect to a plain network
 with ifconfig, these will stop.
 -Nathan

 I do run wpa_supplicant. But I don't understand what you mean with If
 you can connect to a plain network with ifconfig ...

 wlan0 has an IP addr (via DHCP from the AP) and I can connect. What do
 you mean with to a plain network with ifconfig ...?

 Thx

 matthias



 You can connect to an unencrypted network by doing ifconfig wlan0 -bgscan
 ssid blah. The issue is that wpa_supplicant is doing scanning in the
 background, which forces the adapter into power-save mode.
 -Nathan
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Problem reports for freebsd-wireless@FreeBSD.org that need special attention

2014-11-02 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+-
Needs MFC   |154598 | [ath] Atheros 5424/2424 can't connect to WPA ne 
Needs MFC   |163312 | [panic] [ath] kernel panic: page fault with ath 
Needs MFC   |166190 | [ath] TX hangs and frames stuck in TX queue 
Needs MFC   |166357 | [ath] 802.11n TX stall when the first frame in  
Needs MFC   |166642 | [ieee80211] [patch] in 802.11n mode for FreeBSD 
Needs MFC   |169362 | [ath] AR5416: radar pulse PHY errors sometimes  

6 problems total for which you should take action.
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: Issues with urtwn

2014-11-02 Thread Matthias Apitz
El día Sunday, November 02, 2014 a las 10:46:13AM -0800, Adrian Chadd escribió:

 It's not forcing the adapter itself into ps mode - it's just net80211
 doing an off-channel scan thing.
 
 Someone has to debug/fix this scan hang thing, I'm out of energy atm :(

I'm willing to dig into this and will start with instrumenting
net80211/ieee80211_scan.c with more debug messages; from there the power
save is activated:

scan_task(void *arg, int pending)
...
if (vap-iv_opmode == IEEE80211_M_STA 
vap-iv_state == IEEE80211_S_RUN) {
if ((vap-iv_bss-ni_flags  IEEE80211_NODE_PWR_MGT) == 0) {
/* Enable station power save mode */
vap-iv_sta_ps(vap, 1);


Or any other idea? Can you guide me through this?
Thx

matthias


-- 
Matthias Apitz   |  /\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X- No proprietary attachments
phone: +49-170-4527211   |  / \   - Respect for open standards
 | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org