1.0.1  14 Jan 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fixed flow control on PCCard driver by simply not reading from the modem when
    the Rx queue is full.
  - Added logging of driver version number when the driver starts up.
  - Added detection of <pause>+++<pause> in PCCard driver while online.
  - PCCard driver resets modem after awakening from a system sleep.

1.0.2  17 Jan 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fixed a bug where the rx and tx queue states were not being set correctly.
  - Added profiling code to help with working on performance improvements.
  - Forced CTS hi on USB driver.  Since it is being polled only once a second,
    it is useless for flow control anyway.
  - Method of I/O for PCCard driver changed to OSReadLittleInt16 and
    OSWriteLittleInt16, since these will be marginally faster than ioRead16
    and ioWrite16.
  - Fixed a mistake in PCCard driver where RTS was being set based on the DTR
    value, not the RTS one.
  - Fixed a problem where, if you issue AT^C6 on the PCCard modem, it would
    hold the interrupt signal hi until you pulled the card out.  This would
    cause the kernel to hang until you unplugged the card.  Now we detect that
    situation and turn the interrupts off.

1.0.3  27 Jan 2005  Ben Martel <benm@symmetric.co.nz>
  - Fixed a problem where the driver reported (correctly) the baud rate set by 
    the application but this had the inadvertent effect of slowing TCP 
    throughput performance drastically.
    "Why?" you might ask! This is because there is a wacky bit of 
    code in the kernel that checks to see if the baud rate of the device is 
    greater than 9600 and less than 128000 and if true sets the TCP maximum
    window size to the sysctl variable net.inet.tcp.slowlink_wsize which
    defaults to 8192. So the solution is to always return the baud rate as 9600!

1.0.4  24 Feb 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Very minor tweaks to make it build properly in certain debug modes.

1.0.5  08 Mar 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - "Network lockdown" added:  This is implemented as a filter that requires
    the AT+CIMI command to return one of a specified set of values.  If it
    fails to satisfy this condition, the filter will make ATD appear to fail.
    The AT+CIMI command must be issued within two seconds of the ATD command
    being issued.

1.0.6  11 Mar 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - The delay after AT+CIMI during which ATD command can be issued changed
    from 2 to 4 seconds.
  - Bug fix in "network lockdown" where it sometimes failed to detect commands.

1.0.7  01 Apr 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Allow console mode to be enabled using the ipw-diagnostic mechanism.

1.0.8  26 Apr 2005  Ben Martel <benm@symmetric.co.nz>
  - Made the network lockdown remove the last 10 digits from the CIMI value,
    they being the serial number of the USIM.

1.0.9  27 Apr 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Code fixed so it builds on Tiger.
  - Fixed a kernel panic-causing bug in the USB driver, which happened if the
    serial device was closed when transmitted data was still pending.

1.0.10  27 Apr 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - IOMemoryDescriptor::release() now called after we've finished with an
    IOMemoryDescriptor.  This fixes a memory leak.
  - Fixed the following bug:
    The PCCard driver will queue up any data it receives from the modem when
    the port isn't open, and this would waste memory when the driver isn't
    being used.  It shouldn't affect customers much, since the console is the
    only thing that outputs data without being asked to, and the console port
    is disabled for customers.

1.0.11  04 May 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fix a bug where subtraction of times was not working properly, and
    therefore 'network lockdown' was failing to allow access.

1.0.12  (development version only - never released)

1.0.13  30 May 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fix a bug where resources are not released on Tiger when you unplug the
    modem.  Had to make the driver very tolerant of lifecycle weirdness,
    since Tiger behaves so strangely.
  - Fix a bug where if the USB device is plugged in at power up, then the
    driver does not recognize it.  There are four preconditions for it to work:
    1. The kernel will not load at "root time" any driver that depends on a
    non-root kext.  IOSerialFamily is non-root, and therefore the system cannot
    load the driver while it is booting.  IPWirelessUSBLoader works around this
    problem.
    2. The system won't load a kext at 'root time' if it is not in the
    kextcache.  So, we need to run 'kextcache -e'.  Unfortunately this is slow.
    3. We also need to run 'kextcache -k /System/Library/Extensions' when the
    driver is installed.  Not 100% sure if this is required, but it is fast.
  - Cosmetic: "registering device ..." now says the correct device name (with
    "tty.")

1.0.14  1 Jun 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fix a bug where, if you unplug the PCCard modem while a session is open,
    you get a kernel panic.

1.0.15  7 Jun 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fix another kernel panic bug that happens (rarely?) when you unplug the
    PCCard modem.

1.0.16  8 Jun 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - On one machine running the first Tiger kernel version 8.0.0 (yet not on
    one machine running that version), there was a kernel panic whenever you
    unplugged the PCCard modem.  It turned out to be that if you wrote to the
    hardware after the 'terminate' message was received, that is - you wrote to
    hardware that was physically not there - then it would panic.
    Fixed by making it not write to the hardware after receiving a 'terminate'
    message.  I can imagine situations where the driver writes to the hardware
    if it does not yet know that it has been unplugged.  At any rate, hopefully
    future kernels will be a little more tolerant.

1.0.17  13 Jun 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Added the extra monitor port when vendor mode is enabled.
  - Added -r option to ipw-diagnostic to simulate physical removal of device.

1.0.18  25 Jun 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Got monitor port working properly on PCCard modem.  It is enabled even
    when vendor mode is off.
  - Made it so only the main modem port appears in the list of modems in the
    Network System Preferences.

1.0.19  18 Jul 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Add a 'loopback' diagnostic mode, which creates a new device for PCCard
    modems called RAS-raw.  This device gives raw access to the RAS channel,
    for use in loopback tests.
  - Remove the '+++' detection code from the PCCard driver, which is suspected
    of causing a problem where the driver outputs ppp data to userspace through
    the console port.
  - Make it so the --loopback and --vendor switches in ipw-diagnostic cause the
    ports to be immediately created and/or destroyed, rather than the user
    having to unplug and re-plug the modem to get them.
  - Fixed a minor bug where the console port was created if the USB modem's
    console existed, even when not in vendor mode.  When vendor mode is off,
    the console port should NOT be created.

1.0.20  21 Jul 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fixed a potential reason for I/O stalls in the driver:  txReady was being set
    zero AFTER the read from the hardware, which meant there was a possibility
    of an interrupt sneaking in there beforehand, which, when it returned from it,
    meant that the txReady was being clobbered.  So, txReady notifications could
    have been getting lost.
  - Fixed another, real reason for I/O stalls in the driver:  The when blockRx is
    true because the RX queue is full, and then the data is dequeued by userspace,
    the code failed to call Queue::checkIO(), which means that it never actually
    gets unblocked.

1.0.21  27 Jul 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Made the PLMN Requirer (the "Network Lockdown") switchable at compile time,
    and turned off by default.
  - Made it so DTR cannot be set lo on the USB modem when the 'loopback'
    diagnostic mode is enabled.  Otherwise, the modem falls out of loopback mode
    when you close the tty.

1.0.22  29 Jul 2005  Stephen Blackheath <stephen@blacksapphire.com>
  - Fix a bug where the PCCard driver was getting its transmit data out of order,
    because the deQueue() call was checking I/O, causing a recursive call to
    checkTransmitIO().

1.0.23  02 Feb 2006  Stephen Blackheath <stephen@blacksapphire.com>
  - Added support for the V2 card, with the proviso that it only works with a
    horrible workaround for a strange bug.  See WORK_AROUND_WEIRD_BUG.
  - Fixed a bug where the SETUP and CONFIG_DONE messages were being sent in the
    wrong sequence.

1.0.24  03 Mar 2006  Stephen Blackheath <stephen@blacksapphire.com>
  - 'Serial number' handling added: Newer versions of the V2 card firmware
    send serial numbers in the MemTX register, because we had a problem on a
    loaded system with the 'Timer Recovery' logic, which was introduced into
    the card firmware to work around hardware problems on certain systems.
    On these systems (including my IBM Thinkpad R50e) the MemTX signal
    occasionally gets lost by the hardware somewhere.  'Timer Recovery'
    causes the signal to be re-sent if not acknowledged after 50
    milliseconds.  Unfortunately if the CPU is slow or heavily loaded, then
    Timer Recovery can fire, causing the driver to get out of synch with the
    card.  (The driver thinks there is one more packet available than there
    really is.)  To solve this, IPWireless added a serial number to the
    MemTX signal, which is incremented for each packet, but not incremented
    for Timer Recovery re-sends.  'serial_number_mode' is set true when we
    detect a non-zero serial number (indicating the new firmware).
    Thereafter, the driver can safely ignore the Timer Recovery re-sends,
    and the out-of-synch problem is solved.
  - WORK_AROUND_WEIRD_BUG renamed to WORK_AROUND_0xDEAD_BUG since that is
    the name this bug has now acquired.

1.0.25  23 Mar 2006  Stephen Blackheath <stephen@blacksapphire.com>
  - Remove acknowledgement of PCIntACK upon RX timer recovery repeat.
  - During initialization, stop driver writing to hardware if the card is not
    physically present.
  - Changed the V2 card to use address 0x0014 for the MemTX register, due to
    the 0xDEAD bug.  This bug is a hardware problem where I/O port 0x0000 is
    sometimes read instead of memory address 0x0000.  If things don't work with
    the new address, it switches to the old address.  The 0xDEAD bug is a
    problem on the PowerPC Macintosh and on some embedded Linux systems.
  - Changed the WORK_AROUND_0xDEAD_BUG functionality so it switches itself on
    if it is needded.

