aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/fwio.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2011-08-19 19:53:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-24 14:57:13 -0400
commit0d78156eef1d8869ea4e56f8a257252a8f262f04 (patch)
treebfd4db22b84225b3f5ae777c6503eb30af37ff07 /drivers/net/wireless/p54/fwio.c
parent6423d30f030b560ef1b701bb1f205c3817efe380 (diff)
p54: improve site survey
The firmware keeps track of channel usage. This data can be used by the automatic channel selection to find the best channel. Survey data from wlan4 frequency: 5200 MHz [in use] noise: -91 dBm channel active time: 811909 ms channel busy time: 63395 ms channel transmit time: 59636 ms Survey data from wlan4 frequency: 5210 MHz noise: -91 dBm channel active time: 121 ms channel busy time: 119 ms channel transmit time: 0 ms Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/fwio.c')
-rw-r--r--drivers/net/wireless/p54/fwio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c
index b6a061cbbdec..53a3408931be 100644
--- a/drivers/net/wireless/p54/fwio.c
+++ b/drivers/net/wireless/p54/fwio.c
@@ -385,6 +385,7 @@ int p54_setup_mac(struct p54_common *priv)
385 setup->v2.osc_start_delay = cpu_to_le16(65535); 385 setup->v2.osc_start_delay = cpu_to_le16(65535);
386 } 386 }
387 p54_tx(priv, skb); 387 p54_tx(priv, skb);
388 priv->phy_idle = mode == P54_FILTER_TYPE_HIBERNATE;
388 return 0; 389 return 0;
389} 390}
390 391
@@ -626,6 +627,7 @@ int p54_set_ps(struct p54_common *priv)
626 psm->exclude[0] = WLAN_EID_TIM; 627 psm->exclude[0] = WLAN_EID_TIM;
627 628
628 p54_tx(priv, skb); 629 p54_tx(priv, skb);
630 priv->phy_ps = mode != P54_PSM_CAM;
629 return 0; 631 return 0;
630} 632}
631 633