mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-25 21:37:45 +00:00
275240af94
When using udev >=177 libertas driver does not load properly the firmware [1]. The patches 0001-0016 were taken from [2] and can be viewed at [3]. Patch 0017 I created to fix compiler complaining for missing symbol is_interrupt when DEBUG set. The patch series was tested with meta-gumstix on overo with udev-175 and udev-182. [1] http://www.spinics.net/lists/linux-wireless/msg85541.html [2] git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git [3] http://git.kernel.org/?p=linux/kernel/git/linville/wireless-next.git;a=history;f=drivers/net/wireless/libertas;hb=HEAD Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
81 lines
2.4 KiB
Diff
81 lines
2.4 KiB
Diff
From 377526578f2c343ea281a918b18ece1fca65005c Mon Sep 17 00:00:00 2001
|
|
From: Daniel Drake <dsd@laptop.org>
|
|
Date: Wed, 14 Mar 2012 22:34:33 +0000
|
|
Subject: [PATCH 05/17] libertas: remove dump_survey implementation
|
|
|
|
libertas provides a dump_survey implementation based on reading of
|
|
a RSSI value. However, this RSSI value is calculated based on the
|
|
last received beacon from the associated AP - it is not a good
|
|
way of surveying a channel in general, and even causes an error
|
|
if the card is not associated to a network.
|
|
|
|
As this is not appropriate as a survey, remove it. This fixes an
|
|
issue where something in userspace is repeatedly calling site-survey
|
|
during boot, resulting in many repeated errors as the RSSI value cannot
|
|
be read before associating.
|
|
|
|
Signed-off-by: Daniel Drake <dsd@laptop.org>
|
|
Signed-off-by: John W. Linville <linville@tuxdriver.com>
|
|
---
|
|
drivers/net/wireless/libertas/cfg.c | 37 -----------------------------------
|
|
1 files changed, 0 insertions(+), 37 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c
|
|
index a7cd311..3fa1ece 100644
|
|
--- a/drivers/net/wireless/libertas/cfg.c
|
|
+++ b/drivers/net/wireless/libertas/cfg.c
|
|
@@ -1631,42 +1631,6 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,
|
|
|
|
|
|
/*
|
|
- * "Site survey", here just current channel and noise level
|
|
- */
|
|
-
|
|
-static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev,
|
|
- int idx, struct survey_info *survey)
|
|
-{
|
|
- struct lbs_private *priv = wiphy_priv(wiphy);
|
|
- s8 signal, noise;
|
|
- int ret;
|
|
-
|
|
- if (dev == priv->mesh_dev)
|
|
- return -EOPNOTSUPP;
|
|
-
|
|
- if (idx != 0)
|
|
- ret = -ENOENT;
|
|
-
|
|
- lbs_deb_enter(LBS_DEB_CFG80211);
|
|
-
|
|
- survey->channel = ieee80211_get_channel(wiphy,
|
|
- ieee80211_channel_to_frequency(priv->channel,
|
|
- IEEE80211_BAND_2GHZ));
|
|
-
|
|
- ret = lbs_get_rssi(priv, &signal, &noise);
|
|
- if (ret == 0) {
|
|
- survey->filled = SURVEY_INFO_NOISE_DBM;
|
|
- survey->noise = noise;
|
|
- }
|
|
-
|
|
- lbs_deb_leave_args(LBS_DEB_CFG80211, "ret %d", ret);
|
|
- return ret;
|
|
-}
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-/*
|
|
* Change interface
|
|
*/
|
|
|
|
@@ -2068,7 +2032,6 @@ static struct cfg80211_ops lbs_cfg80211_ops = {
|
|
.del_key = lbs_cfg_del_key,
|
|
.set_default_key = lbs_cfg_set_default_key,
|
|
.get_station = lbs_cfg_get_station,
|
|
- .dump_survey = lbs_get_survey,
|
|
.change_virtual_intf = lbs_change_intf,
|
|
.join_ibss = lbs_join_ibss,
|
|
.leave_ibss = lbs_leave_ibss,
|
|
--
|
|
1.7.4.4
|
|
|