20 Aug, 2009
40 commits
-
CC [M] net/mac80211/rc80211_pid_algo.o
net/mac80211/rc80211_pid_algo.c: In function ‘rate_control_pid_rate_init’:
net/mac80211/rc80211_pid_algo.c:304: warning: unused variable ‘si’Signed-off-by: John W. Linville
-
This moves the shared regulatory structure into the
common structure. We will use this ongoing for common
data.Signed-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville -
In ath9k_stop(), tx_complete_work was being cancelled twice.
This patch fixes it. Also, locking sc->mutex should be done
at the beginning.Signed-off-by: Sujith
Signed-off-by: John W. Linville -
After initial power-up, the embedded cpu is usually halted. However,
if we down the interface and only do a soft reset before bringing
the interface back up, it will still be running and the firmware
loading code will bail out. This change halts the CPU before loading
the firmware, enabling a second call to wl1251_boot() to succeed
without a hard reset.Signed-off-by: Bob Copeland
Signed-off-by: John W. Linville -
Mesh uses the tx failure average to compute the (m)path metric. This used to
be done inside the rate control module. This patch breaks the dependency
between the mesh stack and the rate control algorithm. Mesh will now work
independently of the chosen rate control algorithm.The mesh stack keeps a moving average of the average transmission losses for
each mesh peer station. If the fail average exceeds a certain threshold, the
peer link is marked as broken.Signed-off-by: Javier Cardona
Signed-off-by: John W. Linville -
rt2800pci can handle different retry rates,
it will always step 1 rate down after a failed
transmission so creating the retry rate list
for mac80211 is quite simple.Signed-off-by: Benoit PAPILLAULT
Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
According to the original Ralink driver,
LG_FBK_CFG0_OFDMMCS2FBK should be initialized to 9 rather then 3.Based on a patch for rt2800pci from Benoit
Signed-off-by: Benoit PAPILLAULT
Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
In the TX descriptor the Packet ID must not be 0,
so add 1 to the ID. The wireless CLI ID is not allowed
to be 0 either, but also must be initialized with the
wcid value rather then keyid.Based on a patch for rt2800pci from Benoit
Signed-off-by: Benoit PAPILLAULT
Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
When the RX descriptor indicates the frame was L2 padded,
the SKBDESC_L2_PADDED flag should be set to make sure the
L2 padding is removed before it is send to mac80211.Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
Add new defines for RF chipsets which can be found
by the driver. We don't have to check for these
chips specifically yet, but it is better to have
the defines in now.Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
Fixed comments about SHARED_KEY_TABLE_BASE and SHARED_KEY_MODE_BASE.
Fixed initialization loop for SHARED_KEY_MODE_ENTRY.Based on a patch for rt2800pci from Benoit.
Signed-off-by: Benoit PAPILLAULT
Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
The rfkill_poll callback function in the drivers check a bit
to see if the RFKILL key has been pressed. However when the
bit is set it means the radio is active and the device can be
used.The wiphy_rfkill_set_hw_state() function expects the inversed,
so '1' must be send when the radio must be disabled.Signed-off-by: Ivo van Doorn
Signed-off-by: John W. Linville -
Call set_tx_power_control with a LPPHY_TXPCTL rather than an
LPPHY_TX_PWR_CTL_CMD_MODE.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Check the mode the hardware is in, not the mode we used the last time.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
ACX_SLV_SOFT_RESET_BIT and ACX_REG_EEPROM_START_BIT are both defined
as "1" in the vendor driver code, but they were defined to be BIT(1)
("2") here.The SOFT_RESET typo ensures that wl1251_boot_soft_reset() doesn't;
as a result the device hangs when trying to reprogram the PLL
registers while running.Signed-off-by: Bob Copeland
Acked-by: Kalle Valo
Signed-off-by: John W. Linville -
All but two drivers have now stopped using the two
deprecated members radio_enabled and beacon_int,
so it's about time to remove them for good.Signed-off-by: Johannes Berg
Acked-by: Kalle Valo
Signed-off-by: John W. Linville -
Over time, a whole bunch of drivers have come up
with their own scheme to delay the configure_filter
operation to a workqueue. To be able to simplify
things, allow configure_filter to sleep, and add
a new prepare_multicast callback that drivers that
need the multicast address list implement. This new
callback must be atomic, but most drivers either
don't care or just calculate a hash which can be
done atomically and then uploaded to the hardware
non-atomically.A cursory look suggests that at76c50x-usb, ar9170,
mwl8k (which is actually very broken now), rt2x00,
wl1251, wl1271 and zd1211 should make use of this
new capability.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
Instead of hacking the event reporting into the
__cfg80211_connect_result() function which is also
invoked by others, set up things correctly and then
invoke that function, so that it can do more sanity
checking.Also, it is currently not possible to get a ROAMED
event from the userspace SME anyway since we send
out a DISCONNECTED event when it disassociates and
then a new CONNECTED event on the next association.Thanks to Zhu Yi for pointing out that the code is
somewhat convoluted and doesn't warn when it should.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
Larry has reported success getting scan data with an LP-PHY device,
so it's probably time to release LP-PHY support for testing.Also disable 802.11a support for now, as 802.11a currently causes
the driver to panic on startup (NULL pointer dereference).Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
The spec for initializing the B2062 radio have changed recently,
update the code to match the changes.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
I missed the "+16" part of the instruction in the specs.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
A few typos have been discovered in both the specs and the code.
This patch fixes them.Also use lpphy_op_switch_channel consistently, and make all users
of it print its return value for easier debugging.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
The channel switch routine had a whole instruction missing. Add it.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
When removing an interface with nl80211, cfg80211 will
deadlock in the netdev notifier because we're already
holding rdev->mtx and try to acquire it again to verify
the scan has been done.This bug was introduced by my patch
"cfg80211: check for and abort dangling scan requests".To fix this, move the dangling scan request check into
wiphy_unregister(). This will not be able to catch all
cases right away, but if the scan problem happens with
a manual ifdown or so it will be possible to remedy it
by removing the module/device.Additionally, add comments about the deadlock scenario.
Reported-by: Christian Lamparter
Signed-off-by: Johannes Berg
Tested-by: Christian Lamparter
Tested-by: Kalle Valo
Signed-off-by: John W. Linville -
The spec had some nasty typos, and a large part of the rev0/1 BB
init procedure was also missing. Fix these.Also make the init-time channel switch debuggable.
(The change from -EINVAL to -EIO is simply to make it possible
to distinguish the PLL charge pump error from a channel-not-found
error.)Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Don't drop all packets received from an LP-PHY with WARN_ON.
Also update a comment with LP-specific information.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
This should fix the remaining WARN_ON.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Rev2+ never needs to have gain tables adjusted according to the spec.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
-Enable rate memory init for LP-PHY (same as G and N-PHY).
-Mark rev.2 LP-PHYs with the B2063 radio as supported.
-Allow using the 5GHz band on LP-PHYs.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Add support for loading LP-PHY firmware to b43_try_request_fw.
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
No comment. :-)
Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Johannes kindly pointed out that I completely missed a hunk in
his patch: "[PATCH] cfg80211: allow driver to override PS default".The driver must explicitly set ps_default to false,
as the setting is pre-filled with the kconfig default.Signed-off-by: Christian Lamparter
Signed-off-by: John W. Linville -
Enable AsyncFIFO and AGGWEP for AR9287_12 and later revisions only.
Signed-off-by: Vivek Natarajan
Signed-off-by: John W. Linville -
Signed-off-by: Vivek Natarajan
Signed-off-by: John W. Linville -
Signed-off-by: Vivek Natarajan
Signed-off-by: John W. Linville -
Signed-off-by: Vivek Natarajan
Signed-off-by: John W. Linville -
Signed-off-by: Vivek Natarajan
Signed-off-by: John W. Linville -
-Move pdiv from lpphy_2062_init to struct b43_phy_lp.
-Add channel table for the B2062 radio.
-Add code for tuning the B2062 radio to channel.
-Add error handling to op_switch_channel, and use it for both radios.Rev0/1/B2062 will now hopefully show some signs of life, though
it won't work at full performance, as calibration is still missing.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville -
Rev.2+/B2063 will now hopefully show some signs of life, though
it won't work at full performance, as calibration is still missing.Signed-off-by: Gábor Stefanik
Signed-off-by: John W. Linville