20 Aug, 2009
4 commits
-
IEEE 802.15.4-2006 adds new concept: channel pages, which can contain several
channels. Add support for channel pages in the API and in the fakehard driver.Signed-off-by: Dmitry Eremin-Solenikov
-
Make fakehard create and maintain wpan-phy node, thus representing
it's phy in the sysfs.Signed-off-by: Dmitry Eremin-Solenikov
-
Add a sysfs/in-kernel representation of LR-WPAN master devices.
Signed-off-by: Dmitry Eremin-Solenikov
-
Signed-off-by: Dmitry Eremin-Solenikov
18 Aug, 2009
1 commit
-
Fix trace_skb_sources build when CONFIG_NET is not enabled:
kernel/built-in.o: In function `probe_skb_dequeue':
trace_skb_sources.c:(.text+0xd9152): undefined reference to `init_net'
trace_skb_sources.c:(.text+0xd9188): undefined reference to `dev_get_by_index'Signed-off-by: Randy Dunlap
Signed-off-by: David S. Miller
15 Aug, 2009
18 commits
-
To ensure a proper handling of CAN frames transported in skbuffs some checks
need to be performed at receive time.As stated by Michael Olbrich and Luotao Fu BUG_ON() might be to restrictive.
This is right as we can just drop the non conform skbuff and the Kernel can
continue working.This patch replaces the BUG_ON() with a WARN_ONCE() so that the system remains
healthy but we made the problem visible (once).Signed-off-by: Oliver Hartkopp
Signed-off-by: Urs Thuermann
CC: Michael Olbrich
CC: Luotao Fu
Signed-off-by: David S. Miller -
The whole restarting flag was introduced by Mike McCormack
and was a temporary duct tape patch around issues with transmits
inflight during restart. The problems it was covering are now
fixed and the code should have been reverted.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Enable netdev feature flag bit NETIF_F_FCOE_MTU for 82599 devices and enable
jumbo frame correspondingly when NETIF_F_FCOE_MTU is set.Signed-off-by: Yi Zou
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Add NETIF_F_FCOE_MTU to indicate that the NIC can support a secondary MTU for
converged traffic of LAN and Fiber Channel over Ethernet (FCoE). The MTU for
FCoE is 2158 = 14 (FCoE header) + 24 (FC header) + 2112 (FC max payload) +
4 (FC CRC) + 4 (FCoE trailer).Signed-off-by: Yi Zou
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Updates netdev->vlan_features for NETIF_F_FCOE_CRC and NETIF_F_FSO, so that
FCoE CRC and GSO offloads will get used for FCoE over ixgbe based vlan
interface.Signed-off-by: Vasu Dev
Signed-off-by: Yi Zou
Acked-by: Peter P Waskiewicz Jr
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Adds fcoe offload related net_device_ops functions vlan_dev_fcoe_ddp_setup
and vlan_dev_fcoe_ddp_done, their implementation simply calls real eth device
net_device_ops for FCoE DDP setup and done operations.Updates VLAN netdev field value for fcoe_ddp_xid from real eth device netdev.
Above changes are required for fcoe DDP offload working on a VLAN interface.
Signed-off-by: Vasu Dev
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
The sky2 driver combines auto speed negotiation with automatic negotiation
of pause parameters; but the ethtool interface expects them to be
split. This patch allows autonegotiation to be used for speed, but
manually disable flow control.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Transmit completion can safely run lockless against transmit start.
In the normal case, completion is done from NAPI and only looks
at elements that are at the tail of the ring. When doing shutdown
or reset, the transmiter should be completely block by NAPI disable
and blocking of transmit queue.Based on earlier work by Mike McCormack.
Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
This unifies the places that bounce the device (suspend/resume
and restart). And makes the operations have the same semantics
as normal dev_open/dev_stop.This also avoids setting the multicast addresses twice when
device is brought up.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
The suspend and shutdown code plays with shared state. Use consistent
locking, for extra protection.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Avoid any possible problems with accessing PHY registers on shutdown.
This is a purely theoretical issue and is not related to any of the
outstanding bug reports. Since receiver and transmitter are already
shutdown and phy interrupts for this device are already disabled,
there should already be enough protection. Suggested by Mike McCormack.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Reseting the tx chain too soon results in invalid tx queue positions
being delivered in the status queue. This also makes sure there's no
overlap between the cleanup done by sky2_tx_clean() and
sky2_tx_done().Signed-off-by: Mike McCormack
Acked-by: Stephen Hemminger
Signed-off-by: David S. Miller -
This is pure refactoring.
Signed-off-by: Mike McCormack
Acked-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Keep sky2->tx_prod consistent since int might be examined by
an softirq poll or restart.Signed-off-by: Mike McCormack
Acked-by: Stephen Hemminger
Signed-off-by: David S. Miller
14 Aug, 2009
17 commits
-
Also implement get/set BB mult, get/set TX gain, set RX gain,
disable/restore CRS, run/stop DDFS, RX IQ est and QDIV roundup
in the process.Signed-off-by: Gábor Stefanik
Acked-by: Michael Buesch
Signed-off-by: John W. Linville -
This patch fixes a bug in ath9k_stop() where the HW
was not put into FULL_SLEEP state. Not doing so will
cause issues in suspend-resume and the HW will not respond
to chip resets.Signed-off-by: Sujith
Signed-off-by: John W. Linville -
This patch fixes a bug where the device was enabled
before restoring the PCI state.Signed-off-by: Sujith
Signed-off-by: John W. Linville -
diversity_control and antenna_switch_swap are already
present in ath9k_ops_config. Remove duplicate occurrences
in ath_hw.Signed-off-by: Sujith
Signed-off-by: John W. Linville -
PHY counters are available in all chipsets supported
by ath9k. Remove the check.Signed-off-by: Sujith
Signed-off-by: John W. Linville -
ath9k supports the AR9002 family of chipsets. This includes
the AR9285 and the miniPCI AR9223 and AR9220 (which themselves
have AR9280+AR5133).We now refer people to the wiki page as it seems this is not
as popular as we would have hoped.Reported-by: JD
Cc: Dakota Lee
Signed-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville -
Sometimes drivers might have a good reason to override
the PS default, like iwlwifi right now where it affects
RX performance significantly at this point. This will
allow them to override the default, if desired, in a
way that users can still change it according to their
trade-off choices, not the driver's, like would happen
if the driver just disabled PS completely then.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
If you trigger a scan request on an interface and then
take it down, or rmmod the module or unplug the device
the driver might "forget" to cancel the scan request.
That is a bug in the driver, but the current behaviour
is that we just hang endlessly waiting for the netdev
refcount to become 0 which it never will. To improve
robustness, check for this situation in cfg80211, warn
about it and clean up behind the driver. I don't just
clean up silently because it's likely that the driver
also has some internal state it has now leaked.Additionally, this fixes a locking bug, clearing the
scan_req pointer should be done under the rdev lock.Finally, we also need to _wait_ for the scan work and
not just abort it since it might be pending and wanting
to do a cleanup.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
The length of the fixed portion of plink confirm frames is 4 bytes longer than
the other plink_action frames. This path corrects an error in the length
adjustment done for these type of frames.Signed-off-by: Javier Cardona
Signed-off-by: John W. Linville -
If a PREQ frame is received giving us a fresher DSN than what we have, record
the new dsn and mark it as valid. This patch fixes a bug in the setting of the
MESH_PATH_DSN_VALID flag.Also, minor fix to coding style on that file.
Signed-off-by: Javier Cardona
Signed-off-by: John W. Linville -
This matches ath9k, providing consistency when reading both drivers.
Signed-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville -
Now that its shared we can remove ath5k's own implementation.
Signed-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville -
Turns out ath5k and ath9k can share the same helper to
allocates RX skbs. We allocate skbs aligned to the cache line
size. This requirement seems to have come from AR5210; when
this was not done it seems sometimes we'd get bogus data. I'm
also told it may have been a performance enhancement
consideration. In the end I can't be sure we can remove this
on new hardware so just keep this and start sharing it through
ath.ko.Make ath9k start using this, ath5k is next.
Signed-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville -
Luis reported that IRQ_MASK conflicts with include/pcmcia/cs.h on
compat-wireless. Remove that and a bunch of other unused defines
from wl1251_reg.h.Reported-by: Luis R. Rodriguez
Signed-off-by: Kalle Valo
Signed-off-by: John W. Linville -
Commit "wl1251: remove wl1251_ops" originally removed file wl1251_ops.c,
but while I rebased the patch the removal got lost. Now remote the file
for real.Signed-off-by: Kalle Valo
Signed-off-by: John W. Linville -
Commit "iwlwifi: Traffic type and counter for debugFs" broke iwl3945 in
a case when CONFIG_IWLWIFI_LEDS is disabled:drivers/net/wireless/iwlwifi/iwl-3945.c:580: error: 'hdr' undeclared (first use in this function)
Fix it by removing the ifdef check for hdr variable.
Signed-off-by: Kalle Valo
Acked-by: Reinette Chatre
Signed-off-by: John W. Linville -
Make it possible to write individual gain table entries.
Allow gain table entries to be written outside gain table init.
Add version-agnostic helpers for writing gain tables.
Use the new TX gain table helpers during table init.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville