firefly-linux-kernel-4.4.55.git
19 years agoFixed parameter reordering in firmware log routine.
James Ketrenos [Tue, 30 Aug 2005 15:34:25 +0000 (10:34 -0500)]
Fixed parameter reordering in firmware log routine.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixed problem with not being able to send broadcast packets.
Hong Liu [Wed, 19 Oct 2005 21:25:33 +0000 (16:25 -0500)]
Fixed problem with not being able to send broadcast packets.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoAdded channel support for ipw2200 cards identified as 'ZZR'
James Ketrenos [Wed, 19 Oct 2005 21:12:31 +0000 (16:12 -0500)]
Added channel support for ipw2200 cards identified as 'ZZR'

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoRemoved warning about TKIP not being configured if countermeasures are
James Ketrenos [Thu, 13 Oct 2005 09:26:48 +0000 (09:26 +0000)]
Removed warning about TKIP not being configured if countermeasures are
configured.

Countermeasures default to being turned off when wpa_supplicant runs,
regardless of if TKIP is being used.  They are only turned on if a TKIP
is running.  The warning we were printing is therefore not needed.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixes missed beacon logic in relation to on-network AP roaming.
Ben Cahill [Thu, 6 Oct 2005 20:34:41 +0000 (15:34 -0500)]
Fixes missed beacon logic in relation to on-network AP roaming.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoRemoved legacy WIRELESS_EXT checks from ipw2200.c
James Ketrenos [Wed, 5 Oct 2005 20:59:08 +0000 (15:59 -0500)]
Removed legacy WIRELESS_EXT checks from ipw2200.c

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFix 'Driver using old /proc/net/wireless support, please fix driver !' message.
Benoit Boissinot [Thu, 15 Sep 2005 17:30:28 +0000 (17:30 +0000)]
Fix 'Driver using old /proc/net/wireless support, please fix driver !' message.

Wireless extensions moved the get_wireless_stats handler from being
in net_device into wireless_handler.

Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoPulled out a stray KERNEL_VERSION check around the suspend handler.
James Ketrenos [Thu, 15 Sep 2005 06:00:31 +0000 (01:00 -0500)]
Pulled out a stray KERNEL_VERSION check around the suspend handler.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoUpdated driver version stamps for ipw2100 (1.1.3) and ipw2200 (1.0.7)
James Ketrenos [Thu, 15 Sep 2005 05:42:42 +0000 (00:42 -0500)]
Updated driver version stamps for ipw2100 (1.1.3) and ipw2200 (1.0.7)

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixes WEP firmware error condition.
Hong Liu [Thu, 15 Sep 2005 02:04:15 +0000 (21:04 -0500)]
Fixes WEP firmware error condition.

The problem is caused by the patch in bug455 -- Channel change flood
generates fatal error.

The patch set the DISASSOCIATING status bit after sending the command.
The process was scheduled out when waiting for the command to be sent to
the card. The disassociated notification clears the DISASSOCIATING bit
in the tasklet before the process set the bit.

Move the bit setting code before sending the command now.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years ago[Fix bug# 771] Too many (8) bytes recieved when using AES/hwcrypto
Zhu Yi [Mon, 12 Sep 2005 15:48:48 +0000 (10:48 -0500)]
[Fix bug# 771] Too many (8) bytes recieved when using AES/hwcrypto

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixes problem with WEP not working (association succeeds, but no Tx/Rx)
Hong Liu [Mon, 12 Sep 2005 15:43:33 +0000 (10:43 -0500)]
Fixes problem with WEP not working (association succeeds, but no Tx/Rx)

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoRemoved PF_SYNCTHREAD legacy.
James Ketrenos [Wed, 7 Sep 2005 23:39:03 +0000 (18:39 -0500)]
Removed PF_SYNCTHREAD legacy.

The PF_SYNCTHREAD check was introduced to try and remain compatible with
SWSUSP2.  This check is no longer needed with newer versions.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixed problem with get_cmd_string not existing if CONFIG_IPW_DEBUG disabled.
James Ketrenos [Wed, 7 Sep 2005 23:19:08 +0000 (18:19 -0500)]
Fixed problem with get_cmd_string not existing if CONFIG_IPW_DEBUG disabled.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCard with WEP enabled and using shared-key auth will have firmware
Hong Liu [Wed, 31 Aug 2005 10:14:27 +0000 (18:14 +0800)]
Card with WEP enabled and using shared-key auth will have firmware
error when it tries to auth to a WPA ap. The patch filters out WPA
networks if the card is not wpa enabled when selecting network to
associate to.

Signed-off-by: Hong Liu <hong.liu@intel.com>
19 years agoMixed PTK/GTK CCMP/TKIP support.
Hong Liu [Wed, 31 Aug 2005 10:07:22 +0000 (18:07 +0800)]
Mixed PTK/GTK CCMP/TKIP support.

Signed-off-by: Hong Liu <hong.liu@intel.com>
19 years agoFixed is_network_packet() to include checking for broadcast packets.
Peter Jones [Fri, 26 Aug 2005 21:51:06 +0000 (16:51 -0500)]
Fixed is_network_packet() to include checking for broadcast packets.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoAdds radiotap support to ipw2200 in monitor mode..
Mike Kershaw [Fri, 26 Aug 2005 05:41:54 +0000 (00:41 -0500)]
Adds radiotap support to ipw2200 in monitor mode..

Signed-off-by: Mike Kershaw <dragorn@kismetwireless.net>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoMake all the places the firmware fails to load showerrors (in decimal,
Peter Jones [Fri, 26 Aug 2005 05:33:34 +0000 (00:33 -0500)]
Make all the places the firmware fails to load showerrors (in decimal,
so you can cross-reference errno.h easily).

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoDon't set hardware WEP if we are actually using TKIP/AES.
Hong Liu [Thu, 25 Aug 2005 09:45:49 +0000 (17:45 +0800)]
Don't set hardware WEP if we are actually using TKIP/AES.

Signed-off-by: Hong Liu <hong.liu@intel.com>
19 years ago[Bug 760] Fix setting WEP key in monitor mode causes IV lost.
Zhu Yi [Thu, 25 Aug 2005 09:43:14 +0000 (17:43 +0800)]
[Bug 760] Fix setting WEP key in monitor mode causes IV lost.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years ago[Bug 455] Fix frequent channel change generates firmware fatal error.
Hong Liu [Thu, 25 Aug 2005 09:36:13 +0000 (17:36 +0800)]
[Bug 455] Fix frequent channel change generates firmware fatal error.

Because of the frequent channel change, it is possible that when we are
try to associate with channel 1 (authenticated but not associated).
Another channel change comes at this time, then the driver will issue
disassociate command to the firmware which will cause the fatal error.

It seems that the association/disassociation procedure should not be
interrupted.

The patch attached adds test on STATUS_ASSOCIATING | STATUS_DISASSOCIATING
in ipw_send_cmd(), when ensures that commands will not be sent to firmware
when we are in these two status.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoAdded wait_state wakeup on scan completion.
James Ketrenos [Thu, 25 Aug 2005 05:49:43 +0000 (00:49 -0500)]
Added wait_state wakeup on scan completion.
Fixed copyright date in ipw2200.h

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoUpdated ipw2200 to use the new ieee80211 callbacks
James Ketrenos [Fri, 19 Aug 2005 18:18:55 +0000 (13:18 -0500)]
Updated ipw2200 to use the new ieee80211 callbacks
(handle_probe_response, handle_beacon, handle_association_response).

Fixed a problem with ipw_send_cmd() returning non-zero on success.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoMigrated some of the channel verification code back into the driver to
Liu Hong [Fri, 19 Aug 2005 14:33:10 +0000 (09:33 -0500)]
Migrated some of the channel verification code back into the driver to
keep regulatory consistency in one location.

Signed-off-by: James Ketrenos
19 years agoAdded cmdlog in non-debug systems.
James Ketrenos [Thu, 25 Aug 2005 05:39:09 +0000 (00:39 -0500)]
Added cmdlog in non-debug systems.

You can now specify via the module parameter 'cmdlog' to allocate a
ring buffer for caching host commands sent to the firmware. They can
then be dumped at any time via the sysfs entry 'cmd_log'

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoChanged all of the ipw_send_cmd() calls to return any ipw_send_cmd error
James Ketrenos [Tue, 16 Aug 2005 22:07:11 +0000 (17:07 -0500)]
Changed all of the ipw_send_cmd() calls to return any ipw_send_cmd error
codes to the caller and changed ipw_send_cmd itself to print the error
message to the syslog indicating which command failed to be sent.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoSwitched firmware error dumping so that it will capture a log available
James Ketrenos [Fri, 12 Aug 2005 14:36:32 +0000 (09:36 -0500)]
Switched firmware error dumping so that it will capture a log available
via sysfs even if debugging disabled.  When a firmware error is
captured, it will be dumped to the kernel log (if debug enabled) and
captured in memory to be retrieved via sysfs.

If an error has already been captured, subsequent errors will be
dropped.

The existing error can be cleared by writing to the error log entry.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoModified ipw_config and STATUS_INIT setting to correct race condition
James Ketrenos [Fri, 12 Aug 2005 14:17:04 +0000 (09:17 -0500)]
Modified ipw_config and STATUS_INIT setting to correct race condition
with request_scan being called before initialized if invoked from
insmod, resulting in no association occurring during boot until iwlist
scan is run.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFix firmware error when setting tx_power.
Zhu Yi [Thu, 11 Aug 2005 06:39:33 +0000 (14:39 +0800)]
Fix firmware error when setting tx_power.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoFix ipw_wx_get_txpow shows wrong disabled value.
Zhu Yi [Thu, 11 Aug 2005 02:49:17 +0000 (10:49 +0800)]
Fix ipw_wx_get_txpow shows wrong disabled value.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years ago[Bug 701] Fix a misuse of ieee->mode with ieee->iw_mode.
Zhu Yi [Fri, 5 Aug 2005 09:26:51 +0000 (17:26 +0800)]
[Bug 701] Fix a misuse of ieee->mode with ieee->iw_mode.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoFixes the ad-hoc network WEP key list issue.
Hong Liu [Fri, 5 Aug 2005 09:25:50 +0000 (17:25 +0800)]
Fixes the ad-hoc network WEP key list issue.

If we configure the wep keys after creating the ibss network, the
beacons of this network will not show correctly (it still shows "key
off" in iwlist scan report). This is because we don't update the
beacon info in firmware.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years ago[Bug 792] Fix WPA-PSK AES both for -Dipw and -Dwext.
Zhu Yi [Fri, 5 Aug 2005 09:22:56 +0000 (17:22 +0800)]
[Bug 792] Fix WPA-PSK AES both for -Dipw and -Dwext.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoDisable host fragmentation in open mode since IPW2200/2915 hardware
Zhu Yi [Fri, 5 Aug 2005 09:20:40 +0000 (17:20 +0800)]
Disable host fragmentation in open mode since IPW2200/2915 hardware
support hardware fragmentation.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoWorkaround kernel BUG_ON panic caused by unexpected duplicate packets.
Zhu Yi [Fri, 5 Aug 2005 09:17:35 +0000 (17:17 +0800)]
Workaround kernel BUG_ON panic caused by unexpected duplicate packets.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
19 years agoAdded more useful geography encoding so people's experience with
James Ketrenos [Thu, 4 Aug 2005 01:36:56 +0000 (20:36 -0500)]
Added more useful geography encoding so people's experience with
iwconfig matches what their hardware can actually do in regard to
supported channel maps, etc.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixed some compiler issues if CONFIG_IPW2200_QOS is enabled.
James Ketrenos [Thu, 4 Aug 2005 01:33:14 +0000 (20:33 -0500)]
Fixed some compiler issues if CONFIG_IPW2200_QOS is enabled.
Updated a copyright date.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoUpdated to support ieee80211 callback to is_queue_full for 802.11e
James Ketrenos [Thu, 28 Jul 2005 21:25:55 +0000 (16:25 -0500)]
Updated to support ieee80211 callback to is_queue_full for 802.11e
support.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoChanged default # of missed beacons to miss before disassociation to 24
James Ketrenos [Thu, 14 Jul 2005 15:35:05 +0000 (10:35 -0500)]
Changed default # of missed beacons to miss before disassociation to 24
(vs. 9 which is too low in most environments)

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years ago[Bug 637] Set tx power for A band.
Liu Hong [Wed, 13 Jul 2005 17:27:17 +0000 (12:27 -0500)]
[Bug 637] Set tx power for A band.

It uses the ieee80211-geo info to set the tx power of the a/b/g band.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years ago[bug 667] Fix the notorious "No space for Tx" bug.
Zhu Yi [Wed, 13 Jul 2005 17:25:38 +0000 (12:25 -0500)]
[bug 667] Fix the notorious "No space for Tx" bug.

We send SYSTEM_CONFIG command after the TGI_KEY command if hardware
encryption is enabled. It sometimes causes a firmware stall (firmware
doesn't respond to any request) and finally bungs up the Tx send queue.
The solution is to send SYSTEM_CONFIG command in the post association
stage from a workqueue.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFix is_duplicate_packet() bug for fragmentation number setting.
Zhu Yi [Wed, 13 Jul 2005 17:22:15 +0000 (12:22 -0500)]
Fix is_duplicate_packet() bug for fragmentation number setting.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFix hardware encryption (both WEP and AES) doesn't work with fragmentation.
Zhu Yi [Wed, 13 Jul 2005 17:24:51 +0000 (12:24 -0500)]
Fix hardware encryption (both WEP and AES) doesn't work with fragmentation.
Firmware sends received packets with double sized ICV/MIC.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCatch ipw2200 up to equivelancy with v1.0.5
James Ketrenos [Thu, 25 Aug 2005 05:05:33 +0000 (00:05 -0500)]
Catch ipw2200 up to equivelancy with v1.0.5

* Fixed #452 problem with setting retry limit (thanks to Hong Liu)
* Fixed #592 race condition during association causing firmware errors
* Fixed #602 problem with building in 64-bit environment
* Fixed #625 problem with SCAN_REQUEST_EXT sometimes failing
* Fixed #645 problem with bit rate not decreasing when moving laptop
  farther from AP
* Fixed #656 problem with 'iwconfig eth1 mode auto' and 'modprobe'
  locking the system
* Fixed #667 problem with "No space for Tx" for hwcrypto=1
* Fixed #685 kernel panic in rmmod caused by led work is still queued
* Fixed #695 problem with network doesn't reassociate after suspend/resume
* Fixed #701 problem with 'iwprvi sw_reset' not resetting the card from
  monitor mode
* Fixed #710 problem with monitor mode being used after a WEP key has
  been configured
* Fixed network->mode vs. priv->ieee->iw_mode checking (thanks to Ben Cahill)
* Fixed "Unknown management packet %d" warning
* Fixed setting channels multiple times in monitor mode causes scan stopped
* Fixed ipw_wx_sw_reset doesn't switch firmware if mode is changed.
* Add duplicate packet checking code (kill ping DUP! and TKIP replay warning)
* Fix hardware encryption (both WEP and AES) doesn't work with fragmentation.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoMove code from ipw2100_wpa_enable to IPW2100_PARAM_DROP_UNENCRYPTED to
Zhu Yi [Wed, 13 Jul 2005 17:30:34 +0000 (12:30 -0500)]
Move code from ipw2100_wpa_enable to IPW2100_PARAM_DROP_UNENCRYPTED to
support wpa_supplicant with open AP. We need this to make driver_ipw
work.

driver_ext has already had the similar code with the WE-18 support
added.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years ago[Bug 339] Fix ipw2100 iwconfig set/get txpower.
Liu Hong [Wed, 13 Jul 2005 17:29:21 +0000 (12:29 -0500)]
[Bug 339] Fix ipw2100 iwconfig set/get txpower.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoFixed WEP on ipw2100 (priv->sec was being used instead of
<jketreno@io.(none)> [Tue, 12 Jul 2005 20:45:30 +0000 (15:45 -0500)]
Fixed WEP on ipw2100 (priv->sec was being used instead of
priv->ieee->sec)

19 years agoCatch ipw2100 up to equivelancy with v1.1.1
James Ketrenos [Thu, 25 Aug 2005 03:33:31 +0000 (22:33 -0500)]
Catch ipw2100 up to equivelancy with v1.1.1

* Added WE-18 support.  This allows the use of -Dext with wpa_supplicant
  > 0.4.x (thanks to Hong Liu)
* Fixed #339 problem with iwconfig set/get txpower (thanks to Hong Liu)
* Fixed #598 problem when with error messages when module loaded with
  'disable=1' (thanks to Hong Liu)
* Fixed #640 problem with 'iwlist retry' now showing min/max retry
* Fixed compatibility with wpa_supplicant and the new -Dipw interface
  (that included a fix for 64-bit compatibility)
* Added CFG_CRC_CHECK which allows passing through packets with bad
  CRCs while in monitor mode.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCatch ipw2200 up to equivelancy with v1.0.4
James Ketrenos [Thu, 25 Aug 2005 03:04:42 +0000 (22:04 -0500)]
Catch ipw2200 up to equivelancy with v1.0.4

* Fixed #627 problem with open APs not working with wpa_supplicant
* Fixed #632 problem with 'txpower auto' setting power incorrectly (thanks
  to Kai Groner)
* Fixed #634 problem with 'iwconfig eth1 frag 0' hanging the shell
* Fixed problem with adapter not fully powering off during suspend to RAM or
  when module unloaded.
* Fixed #645 problem with turning fixed rates off not taking effect until
  you reload the driver
* Fixed problem with firmware restart if wpa_supplicant was used to set a key
  that wasn't exactly 5 or 13 bytes in length.
* Fixed #623 Added iwpriv sw_reset extension to reset sw parameters
* Added managment frame export to user space with frame statistics
* Fixed #652 Modified the driver to load the EEPROM data even if RF KILL is
  active during driver load
* Global s:CX2_:IPW_:g to make code more consistent
* Fixed #572 problem with setting txpower to auto
* Fixed #656 problem with kernel oops if mode auto; modprobe -r ipw2200
* Added QoS (CONFIG_IPW_QOS) support.  This is being actively developed but
  is the first step in getting WMM support into the driver and the kernel.
* Fixed some race conditions with channel changes, association, and scan
  abort that could periodically cause a firmware restart.
* Added some extensions to export scan and network statistics to user space
  (exposed through speed_scan and net_stats sysfs entries)
* Fixed a few bugs in how monitor mode was supported (scan lists
  weren't quite right)
* Updated the firmware requirement from 2.2 to 2.3 which supports
  monitor mode.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCatch ipw2200 up to equivelancy with v1.0.3
James Ketrenos [Thu, 25 Aug 2005 02:56:24 +0000 (21:56 -0500)]
Catch ipw2200 up to equivelancy with v1.0.3

* Fix #616 problem with OOPS on module load (thanks to Yi Zhu)
* Fixed problem with led module parameter being described as
  'auto_create'
* Added support to merge between adhoc networks (thanks to Mohamed Abbas)
* Added semaphore lock at the driver's entry points to protect against
  re-entry (thanks to Mohamed Abbas)
* Added semaphore lock to background scheduled driver actions (thanks to
  Mohamed Abbas)
* Changed how signal quality is reported for scan output (thanks to
  Peter Jones)
* Fixed how high/low clamp values of signal quality are reported so a
  more consistent ramp is provided (thanks to Bill Moss)
* Fix #624 problem with duplicate addresses (again)  (thanks to Bernard
  Blackham)
* Fix #385 problem with fragmentation and certain sized packets (thanks
  to Mohamed Abbas)
* Modified iwconfig network name if RF kill is enabled to say 'radio off'
* Fix #382 problem with driver not responding to probe requests in Ad-Hoc
  mode (thanks to Mohamed Abbas)

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCatch ipw2200 up to equivelancy with v1.0.2
James Ketrenos [Thu, 25 Aug 2005 02:43:11 +0000 (21:43 -0500)]
Catch ipw2200 up to equivelancy with v1.0.2

Removed unneeded parenthesis around numeric constant defines

Added support for iwspy

Put in fix for Ad-Hoc mode not passing through all packets (thanks to KKH)

Put in fix for fragmentation not working for fragment sizes between
441-464 bytes (thanks to Mohamed Abbas)

Fixed #592 problem of CONFIG_IEEE80211_WPA_MODULE not including WPA
support into the driver -- fixed as a result of no longer limiting WPAs
inclusion

Fixed #594 problem with user rates mask causing lack of association if
AP mandatory rate is masked out.  We now add back in as a supported rate
any mandatory rate.

Fixed #597 kernel oops due to calling dev_kfree_skb on an skb multiple times.

Added code to control LEDs that can be controlled through the wireless
NIC (vs. non-wireless HW interfaces) -- this is currently disabled by
default due to reports by some users of it hanging their laptop.

Added some more debug messages around fragmentation logic

Added locking around STATUS_HCMD_ACTIVE to prevent re-entry race
conditions

Moved ipw_adapter_restart to only execute on the priv->workqueue to
keep keyboard errors from occuring during adapter restart

Added CFG_BACKGROUND_SCAN to easily allow people to play with
background scanning implementations

Modified WPA logic to send WPA IE if one is set (vs. being based on
wpa_enabled)

Modified scan result logic to report WPA and RSN IEs if set (vs. being
based on wpa_enabled)

Fixed issues with endianess compatability between the host and
wireless adapter (thanks to York Liu and Yi Zhu)

Fixed problem with Ad-Hoc network creation causing a firmware error if
a scan was actively running (thanks to Mohamed Abbas)

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoCatch ipw2200 up to equivelancy with v1.0.1
James Ketrenos [Thu, 25 Aug 2005 02:25:16 +0000 (21:25 -0500)]
Catch ipw2200 up to equivelancy with v1.0.1

This commit contains the following fixes:

Fixed #559: iwconfig rate support (thanks to Florian Hackenberger)

Improved link signal quality calculation (thanks to Bill Moss)

Fixed a problem with sensitivity threshold during association

Added iwpriv for turning forcing long preamble support:
  % iwpriv eth1 set_preamble 1|0

Fixed #542 and #377 support for short preamble

Fixed locked BSSID reporting channel number (thanks to Pedro
Ramalhais)

Fixed type-o with scan watchdog timeout message (thanks to Pedro
Ramalhais)

Changed logic for displaying get_mode output so the code is easier to
follow (thanks to Pedro Ramalhais)

Added initial support for WPA (thanks to Yi Zhu) -- tested with
wpa_supplicant (either tip w/ ipw driver, or with -Dipw2100) with
both CCMP and TKIP

Fixed problem with CCMP not working due to uninitialized 802.11
header fields (thanks to Pedro Ramalhais)

Bug references are to defects stored on http://bughost.org

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoIPW_DEBUG has already included DRV_NAME, remove double prefix print.
Zhu Yi [Mon, 4 Jul 2005 06:06:00 +0000 (14:06 +0800)]
IPW_DEBUG has already included DRV_NAME, remove double prefix print.

19 years agoRan scripts/Lindent on drivers/net/wireless/ipw2{1,2}00.{c,h}
James Ketrenos [Wed, 14 Sep 2005 14:47:29 +0000 (09:47 -0500)]
Ran scripts/Lindent on drivers/net/wireless/ipw2{1,2}00.{c,h}

No other changes.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoUpdate version ieee80211 stamp to 1.1.7
James Ketrenos [Tue, 25 Oct 2005 01:44:06 +0000 (20:44 -0500)]
Update version ieee80211 stamp to 1.1.7

19 years agoFix problem with WEP unicast key > index 0
Volker Braun [Mon, 24 Oct 2005 15:15:36 +0000 (10:15 -0500)]
Fix problem with WEP unicast key > index 0

The functions ieee80211_wx_{get,set}_encodeext fail if one tries to set
unicast (IW_ENCODE_EXT_GROUP_KEY not set) keys at key indices>0. But at
least some Cisco APs dish out dynamic WEP unicast keys at index !=0.

Signed-off-by: Volker Braun <volker.braun@physik.hu-berlin.de>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years agoscripts/Lindent on ieee80211 subsystem.
James Ketrenos [Mon, 24 Oct 2005 15:20:53 +0000 (10:20 -0500)]
scripts/Lindent on ieee80211 subsystem.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
19 years ago[PATCH] b44: late request_irq in b44_open
Francois Romieu [Mon, 7 Nov 2005 00:52:57 +0000 (01:52 +0100)]
[PATCH] b44: late request_irq in b44_open

Don't request_irq before the registers are reset/init.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
19 years ago[PATCH] b44: s/spin_lock_irqsave/spin_lock/ in b44_interrupt
Francois Romieu [Mon, 7 Nov 2005 00:52:06 +0000 (01:52 +0100)]
[PATCH] b44: s/spin_lock_irqsave/spin_lock/ in b44_interrupt

There is no need to save/restore the irq state as the irq are always
locally disabled when b44_interrupt is issued.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
19 years ago[PATCH] b44: expose counters through ethtool
Francois Romieu [Mon, 7 Nov 2005 00:51:34 +0000 (01:51 +0100)]
[PATCH] b44: expose counters through ethtool

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
19 years ago[PATCH] b44: miscellaneous cleanup
Francois Romieu [Mon, 7 Nov 2005 00:50:46 +0000 (01:50 +0100)]
[PATCH] b44: miscellaneous cleanup

- remove unneeded forward declarations
- s/kmalloc + memset/kzalloc/
- whitespace readjustement can't hurt
- wrong comment: b44_init_rings _is_ called with a spinlock held in
  b44_{open/set_ringparam/set_pauseparam/etc}.
  Actually, it does not need to be able to sleep
- b44_remove_one() can not be issued with a NULL device in its
  private member: remove the test.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
19 years ago[PATCH] b44: b44_start_xmit returns with a lock held when it fails allocating
Francois Romieu [Mon, 7 Nov 2005 00:50:03 +0000 (01:50 +0100)]
[PATCH] b44: b44_start_xmit returns with a lock held when it fails allocating

The patch simply factors out the release of the lock.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
19 years agoMerge branch 'master'
Jeff Garzik [Mon, 7 Nov 2005 04:01:34 +0000 (23:01 -0500)]
Merge branch 'master'

19 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild
Linus Torvalds [Mon, 7 Nov 2005 00:59:14 +0000 (16:59 -0800)]
Merge /pub/scm/linux/kernel/git/sam/kbuild

19 years agoMerge master.kernel.org:/home/rmk/linux-2.6-drvmodel
Linus Torvalds [Mon, 7 Nov 2005 00:58:38 +0000 (16:58 -0800)]
Merge kernel.org:/home/rmk/linux-2.6-drvmodel

19 years agoMerge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds [Mon, 7 Nov 2005 00:58:11 +0000 (16:58 -0800)]
Merge master.kernel.org:/home/rmk/linux-2.6-arm

19 years agoMerge master.kernel.org:/home/rmk/linux-2.6-serial
Linus Torvalds [Mon, 7 Nov 2005 00:57:34 +0000 (16:57 -0800)]
Merge master.kernel.org:/home/rmk/linux-2.6-serial

19 years ago[PATCH] ppc64: support 64k pages
Benjamin Herrenschmidt [Mon, 7 Nov 2005 00:06:55 +0000 (11:06 +1100)]
[PATCH] ppc64: support 64k pages

Adds a new CONFIG_PPC_64K_PAGES which, when enabled, changes the kernel
base page size to 64K.  The resulting kernel still boots on any
hardware.  On current machines with 4K pages support only, the kernel
will maintain 16 "subpages" for each 64K page transparently.

Note that while real 64K capable HW has been tested, the current patch
will not enable it yet as such hardware is not released yet, and I'm
still verifying with the firmware architects the proper to get the
information from the newer hypervisors.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years ago[ARM] Fix /proc/cpuinfo format for ARM SMP
Russell King [Sun, 6 Nov 2005 21:41:08 +0000 (21:41 +0000)]
[ARM] Fix /proc/cpuinfo format for ARM SMP

glibc expects to count lines beginning with "processor" to determine
the number of processors, not lines beginning with "Processor".  So,
give glibc the format it expects.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] Don't call dump_cpu_info unless we're booting
Russell King [Sun, 6 Nov 2005 19:49:21 +0000 (19:49 +0000)]
[ARM] Don't call dump_cpu_info unless we're booting

We don't want to call dump_cpu_info() from cpu_init() after boot since
it produces a lot of unnecessary noise - since cpu_init() gets called
on resume and hotplug cpu insertion events.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] Fix second missing declaration of cache_is_vivt()
Russell King [Sun, 6 Nov 2005 19:47:04 +0000 (19:47 +0000)]
[ARM] Fix second missing declaration of cache_is_vivt()

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] Fix missing declaration of cache_is_vivt()
Russell King [Sun, 6 Nov 2005 15:46:57 +0000 (15:46 +0000)]
[ARM] Fix missing declaration of cache_is_vivt()

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] Fix another use of // as a comment
Russell King [Sun, 6 Nov 2005 15:45:00 +0000 (15:45 +0000)]
[ARM] Fix another use of // as a comment

// disagrees with ld's script parsing ability.  Don't use it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] 3113/1: PXA: Allow machines to override (and also reuse) pxa pm functions
Richard Purdie [Sun, 6 Nov 2005 15:03:23 +0000 (15:03 +0000)]
[ARM] 3113/1: PXA: Allow machines to override (and also reuse) pxa pm functions

Patch from Richard Purdie

Update the PXA pm.c file to allow machines (such as the Sharp
Zaurus) to override the standard pm functions but reuse/wrap them
where needed.

The init call is made slightly earlier to give machine code an init
level to override them in removing any race.

Signed-off-by: Richard Purdie
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] 3115/1: small optimizations to exception vector entry code
Nicolas Pitre [Sun, 6 Nov 2005 14:42:37 +0000 (14:42 +0000)]
[ARM] 3115/1: small optimizations to exception vector entry code

Patch from Nicolas Pitre

Since we know the value of cpsr on entry, we can replace the bic+orr with
a single eor.  Also remove a possible result delay (at least on XScale).

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] 3114/1: use ixp2000_reg_wrb in ixp2000 uengine loader
Lennert Buytenhek [Sun, 6 Nov 2005 14:34:13 +0000 (14:34 +0000)]
[ARM] 3114/1: use ixp2000_reg_wrb in ixp2000 uengine loader

Patch from Lennert Buytenhek

Make the uengine loader use ixp2000_reg_wrb in the right places.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] 3089/1: ixp4xx AHB/PCI endianness fix
Alessandro Zummo [Sun, 6 Nov 2005 14:34:12 +0000 (14:34 +0000)]
[ARM] 3089/1: ixp4xx AHB/PCI endianness fix

Patch from Alessandro Zummo

  This patch fixes AHB/PCI endianness problems when the
 processor is in little-endian mode.

 The patch configures the CSR register closely following the directives
 in [1], paragraph 4.1, page 19.

 According to the considerations in [1], page 11, while the AHB bus
 supports both endian modes, on the IXP4XX it always uses big-endian.

 The PCI bus is connected to the South AHB. A wrong setting in the CSR
 register will thus cause a malfunctional PCI bus.

 A schematic diagram of the bus interconnections on the IXP4XX
 can be found in [1], page 18.

 The patch has been verified to work on the NSLU2 in
 both LE and BE modes.

 The author is Peter Korsgaard.

 [1] IntelĀ® IXP4XX Product Line of Network Processors and IXC1100
 Control Plane Processor:
 Understanding Big Endian and Little Endian Modes

 http://www.intel.com/design/network/applnots/25423701.pdf

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[ARM] 3088/1: PXA: Add machine support for the Sharp SL-6000x series of PDAs
Dirk Opfer [Sun, 6 Nov 2005 14:27:52 +0000 (14:27 +0000)]
[ARM] 3088/1: PXA: Add machine support for the Sharp SL-6000x series of PDAs

Patch from Dirk Opfer

This patch adds basic machine support for the Sharp SL-6000x (Tosa) PDAs.

Signed-off-by: Dirk Opfer
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years agokconfig: fix xconfig on fedora 2 & 3 (x86_64)
Sam Ravnborg [Sun, 6 Nov 2005 10:05:21 +0000 (11:05 +0100)]
kconfig: fix xconfig on fedora 2 & 3 (x86_64)

From: Than Ngo <than@redhat.com>
qt as installed on fedora core (2 and 3) does not work with vanilla
kernel. The linker fails to locate the qt lib:

Actual Results:  # make xconfig
  HOSTLD  scripts/kconfig/qconf
  /usr/bin/ld: cannot find -lqt
  collect2: ld returned 1 exit status

Than Ngo has provided following fix for the bug.

Cc: Than Ngo <than@redhat.com>
Acked-by: Dave Jones <davej@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
19 years ago[PATCH] kbuild: permanently fix kernel configuration include mess
Russell King [Sun, 30 Oct 2005 21:42:11 +0000 (22:42 +0100)]
[PATCH] kbuild: permanently fix kernel configuration include mess

Include autoconf.h into every kernel compilation via the gcc command line
using -imacros.  This ensures that we have the kernel configuration
included from the start, rather than relying on each file having #include
<linux/config.h> as appropriate.  History has shown that this is something
which is difficult to get right.

Since we now include the kernel configuration automatically, make
configcheck becomes meaningless, so remove it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
19 years ago[SERIAL] Support Au1x00 8250 UARTs using the generic 8250 driver.
Pantelis Antoniou [Sun, 6 Nov 2005 09:07:03 +0000 (09:07 +0000)]
[SERIAL] Support Au1x00 8250 UARTs using the generic 8250 driver.

The offsets of the registers are in a different place, and
some parts cannot handle a full set of modem control signals.

Signed-off-by: Pantelis Antoniou <pantelis@embeddedalley.ocm>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 years ago[netdrvr s2io] warning fixes
Jeff Garzik [Sun, 6 Nov 2005 04:40:46 +0000 (23:40 -0500)]
[netdrvr s2io] warning fixes

From Andrew Morton.

19 years ago[netdrvr] fac_8xx build fix
Jeff Garzik [Sun, 6 Nov 2005 04:40:16 +0000 (23:40 -0500)]
[netdrvr] fac_8xx build fix

19 years agoRemove linux/version.h include from drivers/net/phy/* and net/ieee80211/*.
Jeff Garzik [Sun, 6 Nov 2005 04:39:54 +0000 (23:39 -0500)]
Remove linux/version.h include from drivers/net/phy/* and net/ieee80211/*.

Unused, and causes the files to be needlessly rebuilt in some cases.

19 years agoMerge git://git.tuxdriver.com/git/netdev-jwl
Jeff Garzik [Sun, 6 Nov 2005 03:20:11 +0000 (22:20 -0500)]
Merge git://git.tuxdriver.com/git/netdev-jwl

19 years ago[PATCH] airo.c/airo_cs.c: correct prototypes
Adrian Bunk [Sat, 5 Nov 2005 16:42:27 +0000 (17:42 +0100)]
[PATCH] airo.c/airo_cs.c: correct prototypes

This patch creates a file airo.h containing prototypes of the global
functions in airo.c used by airo_cs.c .

If you got strange problems with either airo_cs devices or in any other
completely unrelated part of the kernel shortly or long after a airo_cs
device was detected by the kernel, this might have been caused by the
fact that caller and callee disagreed regarding the size of the first
argument to init_airo_card()...

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: update version and minor fixes
Michael Chan [Fri, 4 Nov 2005 16:53:48 +0000 (08:53 -0800)]
[PATCH] bnx2: update version and minor fixes

Some book keeping and a style fix.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: refine bnx2_poll
Michael Chan [Fri, 4 Nov 2005 16:53:48 +0000 (08:53 -0800)]
[PATCH] bnx2: refine bnx2_poll

Refine bnx2_poll() logic to write back the most up-to-date status tag
when all work has been processed. This eliminates some occasional
extra interrupts when a older status tag is written even though all
work has been processed.

The idea is to read the status tag just before exiting bnx2_poll() and
then check again for any new work. If no new work is pending, the
status tag written back will not generate any extra interrupt. This
logic is similar to the changes David Miller did to tg3_poll().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: update firmware handshake for 5708
Michael Chan [Fri, 4 Nov 2005 16:51:21 +0000 (08:51 -0800)]
[PATCH] bnx2: update firmware handshake for 5708

Dynamically determine the shared memory location where eeprom
parameters are stored instead of using a fixed location.

Add speed reporting to management firmware. This allows management
firmware to know the current speed without contending for MII
registers.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: update nvram code for 5708
Michael Chan [Fri, 4 Nov 2005 16:49:17 +0000 (08:49 -0800)]
[PATCH] bnx2: update nvram code for 5708

Update bnx2 nvram code with support for 5708.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: update firmware for 5708
Michael Chan [Fri, 4 Nov 2005 16:48:02 +0000 (08:48 -0800)]
[PATCH] bnx2: update firmware for 5708

Update bnx2 firmware with support for 5708.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] bnx2: add 5708 support
Michael Chan [Fri, 4 Nov 2005 16:45:49 +0000 (08:45 -0800)]
[PATCH] bnx2: add 5708 support

Add 5708 copper and serdes basic support, including 2.5 Gbps support
on 5708 serdes. SPEED_2500 is also added to ethtool.h

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] prism54: Remove redundant assignment
Daniel Drake [Thu, 3 Nov 2005 22:45:02 +0000 (22:45 +0000)]
[PATCH] prism54: Remove redundant assignment

The last patch I sent in ("prism54: Free skb after disabling
interrupts") included a redundant NULL assignment. Thanks to Herbert
Xu for pointing it out.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] drivers/net/hamradio/dmascc.c: remove dmascc_setup()
Adrian Bunk [Mon, 31 Oct 2005 00:33:45 +0000 (01:33 +0100)]
[PATCH] drivers/net/hamradio/dmascc.c: remove dmascc_setup()

It seems dmascc_setup() is a leftover time before dmascc_init() was
there.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] drivers/net/e1000/: possible cleanups
Adrian Bunk [Sun, 30 Oct 2005 15:53:34 +0000 (16:53 +0100)]
[PATCH] drivers/net/e1000/: possible cleanups

This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 the following unused global functions:
  - e1000_hw.c: e1000_mc_addr_list_update
  - e1000_hw.c: e1000_read_reg_io
  - e1000_hw.c: e1000_enable_pciex_master

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] drivers/net/ixgb/: make some code static
Adrian Bunk [Sun, 30 Oct 2005 15:53:30 +0000 (16:53 +0100)]
[PATCH] drivers/net/ixgb/: make some code static

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 years ago[PATCH] reset tss->io_bitmap_owner in sys_ioperm()
Bart Oldeman [Sat, 5 Nov 2005 23:54:07 +0000 (12:54 +1300)]
[PATCH] reset tss->io_bitmap_owner in sys_ioperm()

my patch "x86: initialise tss->io_bitmap_owner to something" (commit ID
d5cd4aadd3d220afac8e3e6d922e333592551f7d) introduced a problem with a
program (DOSEMU) that called ioperm after already doing some port i/o.

The problem is that a process switch return causes tss->io_bitmap_base
to be set to IO_BITMAP_OFFSET so that the fault (that *really* sets the
io bitmap) never triggers.

This fixes that regression.

Signed-off-by: Bart Oldeman <bartoldeman@users.sourceforge.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years ago[PATCH] Set the vga cursor even when hidden
Samuel Thibault [Sat, 5 Nov 2005 21:19:50 +0000 (22:19 +0100)]
[PATCH] Set the vga cursor even when hidden

Some visually impaired people use hardware devices which directly read
the vga screen. When newt for instance asks to hide the cursor for
better visual aspect, the kernel puts the vga cursor out of the screen,
so that the cursor position can't be read by the hardware device. This
is a great loss for such people.

Here is a patch which uses the same technique as CUR_NONE for hiding the
cursor while still moving it.

Mario, you should apply it to the speakup kernel for access floppies
asap. I'll submit a 2.4 patch too.

Signed-off-by: samuel.thibault@ens-lyon.org
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years ago[DRIVER MODEL] Fix sgivwfb
Russell King [Sat, 5 Nov 2005 21:22:39 +0000 (21:22 +0000)]
[DRIVER MODEL] Fix sgivwfb

Statically allocated devices in module data is a potential cause
of oopsen.  The device may be in use by a userspace process, which
will keep a reference to the device.  If the module is unloaded,
the module data will be freed.  Subsequent use of the platform
device will cause a kernel oops.

Use generic platform device allocation/release code in modules.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>