Commit Graph

  • 876563aeb1 Turn off beacon debug mtaylor 2008-01-16 22:24:46 +0000
  • 6322355756 Add an error if bursted beacons fails to set the buffer address. mtaylor 2008-01-16 22:21:51 +0000
  • 4183b417a2 This is another case where we are getting clones of SKB and then modifying the header or the data. In a bridge, this is bad behavior. This fixes more bridge anomalies where incorrect header/data are sent to wired ports when packets are previously forwarded over madwifi port(s). mtaylor 2008-01-16 22:17:53 +0000
  • 00a96b9d09 Do not allow rs_rssi to go negative due to stale noise floor values. In this case we know that RSSI is 'real low' so zero is as good a value as any. mtaylor 2008-01-16 22:13:23 +0000
  • 406f509bd5 More non-DFS changes merged from madwifi-dfs to trunk mtaylor 2008-01-16 22:09:13 +0000
  • 888266fa0e Revert some r3164 - was only meant ot have one file in it mentor 2008-01-16 20:11:38 +0000
  • c55568ef0d DFS and FCC requirements pretty much make the madwifi-specific 'CSA PROTECTION PERIOD' violate compliance with the regulations. This is being commented out in preparation for merging the DFS compliant code into the trunk mtaylor 2008-01-16 20:11:27 +0000
  • 63ccd5bbe2 Remove unneccessary node unreference - it is handled in ieee80211_dev_kfree_skb mentor 2008-01-16 20:09:34 +0000
  • 5f4816e17e Add ieee80211_skb_copy_noderef, which hopefully does what it says on the tin (i.e., copies a node reference, not a pointer, from one skb to another). mentor 2008-01-16 20:07:34 +0000
  • 92c62d977e More changes from madwifi-dfs that are either definitions or missed changes that should not have been on the feature branch. mtaylor 2008-01-16 20:01:39 +0000
  • 909dc70af4 More changes merged over from madwifi-dfs that seem to have been missed mtaylor 2008-01-16 19:45:36 +0000
  • d01fbe3c85 Annotate len in struct l2_update_frame as big-endian proski 2008-01-16 04:08:40 +0000
  • fa8be6633f Fromatting cleanup for r3152. To deal with a maximal 80C line length some clearly very silly things have had to be done; I think this is proabbly a goo dindication that code needs to be refactored or split out into seperate functions. mentor 2008-01-16 01:41:39 +0000
  • 934d2aea42 Cleanup merge wierdness mtaylor 2008-01-16 01:08:28 +0000
  • ec46fcf728 Merge from madwifi-dfs r3150. Fixes for AP+STA mode state machine logic mtaylor 2008-01-16 01:04:01 +0000
  • e3d16ecc8f More stuff that should have been in r3140. Sorry, teasing apart a rather long diff. mtaylor 2008-01-16 00:40:11 +0000
  • 132f01bad9 Fix for bridging. We modify the packet's contents. Linux bridging code assumes it can clone the packet and send it to multiple interfaces without having it changed out from under it. Therefore, we need to clone each skb prior to modifying the copy. This fixes some very nasty bugs with bridged VAPs (esp with multiple VAPs in a bridge and multicast/broadcast traffic). mtaylor 2008-01-16 00:21:23 +0000
  • d246553128 Switch from clone to copy. Contents may be changed. mtaylor 2008-01-16 00:16:07 +0000
  • a5f8c2e99b I missed part of r3140. Pinning the node with an extra refcount that is released on cleanup. mtaylor 2008-01-16 00:14:02 +0000
  • 56d4a86372 Fix for a defect where WDS nodes were expired. Never time them out. mtaylor 2008-01-16 00:08:14 +0000
  • 050d239b51 Log an error when node allocation fails mtaylor 2008-01-16 00:06:30 +0000
  • e43eb9472d Fix for NULL dereference in skb tracking code mtaylor 2008-01-16 00:02:50 +0000
  • e6a0fd9b49 This patch refactors the layer 2 update frame sending logic into two routines. Both RNR and XID frames are sent to update bridges. The RNR is probably not the best way to update L2 bridges. It's basically telling the bridges and switches that the MAC is not able to receive traffic (i.e. congested or down) and we never send any other L2 packets to counteract any side effects of this. I also found that it didn't seem to be updating every MAC table on every bridge. XID, however, is the correct way, according to my research and we send XID to inform the bridges of the new location of the MAC as dictated by the standards. I left the RNR in there for good measure, since it doesn't appear to have any ill effects for anyone. (Hostapd ALSO sends XID when you are using hostapd... the redundancy is harmless and allows madwifi to operate correctly when using open or WEP protected modes without hostapd). mtaylor 2008-01-16 00:01:06 +0000
  • e7ccdf6be3 When IFF_MULTICAST was not enabled on the vap, we used to skip some filtering that prevents reception of your own multicast traffic. Then we would procede to ignore the fact that IFF_MULTICAST flag was disabled and send anyway. mtaylor 2008-01-15 23:54:34 +0000
  • f2bbcd9fa2 Use clone instead of copy because the contents of the frame may be modified. mtaylor 2008-01-15 23:46:22 +0000
  • d2db9e2fc0 Show more flags in interrupt debugging output. Continuation of r3126. mtaylor 2008-01-15 23:40:36 +0000
  • cf28881cdf Port r3126 from madwifi-dfs mtaylor 2008-01-15 23:35:11 +0000
  • 56f411f3c0 Fixed a kernel panic due to incorrect linux API use hard_start_xmit() functions must either return NETDEV_TX_OK or NETDEV_TX_BUSY (they might also return negative errno values as well, like -ENETDOWN) Correct a small missing static reported by sparse This revert part of r3075 benoit 2008-01-10 20:10:41 +0000
  • b4d7a14f0a Merge madwifi-dfs to trunk : r3121 When hardware queue is full, stop the linux device queue. This fix a bug where CPU was 100% in softirq context benoit 2008-01-08 15:59:33 +0000
  • 7fd69f6877 Merge -dfs to trunk - r3116 mentor 2008-01-04 23:57:35 +0000
  • 93474aed34 Put an appropriate condition for starting CABQ (same as in madwifi-dfs code). Don't process XR queue separately as it's already done in the loop benoit 2008-01-03 15:42:29 +0000
  • 48c02dc865 Update comments and value handling for key indexes to make clear which values should /never/ be used (as per discussion with benoit). mentor 2008-01-02 23:43:23 +0000
  • b7051ec95d Merge madwifi-dfs to trunk : r3109 Revert to the same API/ABI for crypto (used by hostapd/wpa_supplicant) as used in 0.9.3.3. Tested with hostapd & wpa_supplicant. Fixed a minor error in athkey usage display benoit 2008-01-02 21:48:29 +0000
  • e429bd14fb Packets might still be needed by other VAPs (like station VAP) benoit 2008-01-02 11:21:37 +0000
  • a3aa87eeb8 Removed u_int64_t that slipped into last commit Changed FUDGE to 3 to have the very same value as computed before benoit 2007-12-29 18:23:48 +0000
  • c3677b3c7e * Add not about TU variables as the TSF (64-bit) is truncated into a TU (32-bit), even though it is right shifted by 10, but this is OK. * Use roundup() to calculate the next intval boundary for nexttbtt. This method is more simple to understand and computationally simpler. mentor 2007-12-29 17:27:55 +0000
  • 90e92ad904 Revert r3905 mentor 2007-12-29 17:21:10 +0000
  • fd43343eb6 * Update TU variables to be u_int64_t as they are only 10 bits shorter than TSFs which are 64 bit. * Use roundup() to calculate the next intval boundary for nexttbtt. This method is more simple to understand and computationally simpler. mentor 2007-12-29 02:28:36 +0000
  • fd0bc7d1b2 Added lots of debug to understand & test IBSS merges br1 2007-12-28 04:35:23 +0000
  • f23be2b4ce cleaning up dynamic sysctl enum br1 2007-12-26 03:15:42 +0000
  • 5549b4f0c7 set release version to "trunk" br1 2007-12-26 02:00:04 +0000
  • 132e306707 safer bitfield declaration in struct ath_softc br1 2007-12-26 01:58:12 +0000
  • 62274c42c9 fixup r3013: remove duplicate line br1 2007-12-25 03:17:23 +0000
  • 36d29a3180 Update TSTAMP MASK defines missed in last commit mentor 2007-12-24 01:10:25 +0000
  • ff673bb684 Rework monitor mode SKB handling, touching shared and cloned SKB handling in the TX path. This patch removes any such processing based on the assumption that the current processing is wrong even in the most conservative case (cloned SKB). mentor 2007-12-24 01:01:47 +0000
  • 6d28f9cb8e Have net80211 hard_start functions return NETDEV_TX_* codes; tidy some headers in the process. mentor 2007-12-23 20:11:05 +0000
  • 987156394d Remove some conditional SKB/reference handling. * packets dropped in ath_hardstart are cleaned up there, so cleaning up in parent_queue_xmit is an error * packets in ieee80211_pwrsave must always have a reference in the cb, so it is better that is fails noisily otherwise mentor 2007-12-23 20:03:13 +0000
  • 2de63dd9d2 Update dev->trans_start in ieee80211_hardstart. This helps with bonding and ARP monitoring. mentor 2007-12-23 02:57:45 +0000
  • 972e313a8e Whitespace near r3071 mentor 2007-12-22 23:39:14 +0000
  • 806f7b46e7 fix a double-free bug nbd 2007-12-22 17:16:06 +0000
  • 6cef2b96e6 The attached trivial patch attempts to correct a problem whereby minstrel does not increment rs_rateattempts for successfully sent packets, and therefore the rate adaptation does not take place. nbd 2007-12-22 16:14:21 +0000
  • d959c28466 Lots and lots of formatting and trivial changes that I have been collecting mentor 2007-12-21 17:55:45 +0000
  • efd52870b7 Change delete key IOCTL request structure to use ieee80211_keyix_t. mentor 2007-12-21 17:46:02 +0000
  • 78670fc260 Remove long lingering references to wlan_auth and wlan_radius. mentor 2007-12-19 23:46:41 +0000
  • 86b3543c14 Use standard boolean normalisation in r3062 mentor 2007-12-17 01:16:06 +0000
  • 03538d0225 Protect against NULL in ath_beacon_config() proski 2007-12-16 16:40:42 +0000
  • 9fbdb5c7a2 Formatting for r3027 mentor 2007-12-14 17:23:33 +0000
  • e7f80f68cf Remove the use of a bitwise XOR operation which wrongly assumes its arguments are boolean. scottr 2007-12-14 08:24:27 +0000
  • 07554543db remove the call to ath_phydisable, which is causing crashes on various platforms (e.g. data bus error on the next card reset on broadcom 47xx) nbd 2007-12-13 04:16:35 +0000
  • d7fcb75ea8 Use compatibility definition for IRQF_SHARED proski 2007-12-13 02:18:16 +0000
  • 10560f6b2a Fix compiling on non-MIPS platforms proski 2007-12-13 02:08:52 +0000
  • 0de09d5a5a Remove separate versions for ath_pci and wlan modules proski 2007-12-13 02:00:00 +0000
  • 9055c25cc8 fix two more instances of using the wrong bssid in IBSS mode. there are more places where we could use vap->iv_bss->ni_bssid instead of ni->ni_bssid but i'm not sure about the other ones. br1 2007-12-12 11:29:19 +0000
  • 13e0b924cc fixing up r3013: can't use IEEE80211_VERIFY_ELEMENT on extended rates since that discards beacons which dont contain that element. br1 2007-12-12 11:04:17 +0000
  • 6e15444bd5 this ports, with some changes, the IBSS merging work benoit has done in the dfs branch to trunk. especially notable is, that due to improved nexttbtt (next "target beacon transmit time") calculation we will now get the correct backoff behaviour for beacons, resulting in only one beacon per beacon interval (the current head version will send N beacons for N stations in the beacon interval because they are poorly synchronized). also because of the better timer synchronization there is no more time lag of up to 1 minute until we see beacons after a merge. thanks to benoit for figuring that out! br1 2007-12-12 01:32:51 +0000
  • f0d51a7a43 clean up after my last commit. better comments and error reporting (from mentor's patch). br1 2007-12-11 06:37:53 +0000
  • 91fcb5214d Stop writing a bogus IEEE80211_RADIOTAP_DBM_TX_POWER field. scottr 2007-12-10 23:13:33 +0000
  • 45c427d337 guard against 0 rates which can be caused by wrong received frames. br1 2007-12-10 13:15:06 +0000
  • d09703c049 introduce new debug flag "tsf" (ATH_DEBUG_TSF) so TSF timestamp processing doesn't get into the way of debugging beacon stuff br1 2007-12-07 07:00:31 +0000
  • adb4a563ba Spelling mentor 2007-12-05 00:55:31 +0000
  • 59982ec746 Formatting changes: * Remove comments that merely duplicate the code (i.e., they don't provide information on Why or explain the opaque) * Rename some variable for consistency * Line length -> 80 chars * Reorder non-dependent code blocks in a function to make it more readable (at least to me) mentor 2007-12-04 00:43:10 +0000
  • 07bd310cd3 always use the configured bssid (vap->iv_bss->ni_bssid) as the bssid for beacons and management frames. br1 2007-12-03 08:52:34 +0000
  • b76a3ed537 allow the use of the ratiotap field IEEE80211_RADIOTAP_DATA_RETRIES to specify the number of retries for injected frames br1 2007-11-29 01:41:21 +0000
  • 79bf489a8d Only try to remove padding in frames where a data body exists. Otherwise, aligning the data pushes some of it out of the buffer. mentor 2007-11-28 21:32:50 +0000
  • d67559b719 Minor changes to make the TKIP test look more like the other two tests proski 2007-11-28 07:37:53 +0000
  • 0db003c452 Provide means for testing multiple TKIP test vectors proski 2007-11-28 05:52:26 +0000
  • 2f1668b916 Standardize on ARRAY_SIZE, stop defining and undefining N proski 2007-11-28 05:36:29 +0000
  • 212d62c469 Preload crypto module to be tested with ieee80211_crypto_available() proski 2007-11-28 03:42:55 +0000
  • 752da93f47 Eliminate DIRS_MODULES proski 2007-11-28 00:51:25 +0000
  • 613b48e369 Better fix for warning in ath_return_txbuf_locked proski 2007-11-27 21:55:45 +0000
  • 261fcaa170 Update regression tests for current API, add makefiles proski 2007-11-27 21:40:19 +0000
  • 4df2d580a7 port of r2879 from madwifi-dfs mtaylor 2007-11-27 10:06:02 +0000
  • ebcc658008 fix wrong hal type usage for interference mitigation nbd 2007-11-26 14:26:15 +0000
  • 369b43180b Make skb_destructor debug conditional, even within IEEE80211_DEBUG_REFCNT you need IEEE80211_DEBUG_REFCNT_SKBDEST now... until I figure it out. Reports of problems with aircrack-ng injection. mtaylor 2007-11-26 07:58:30 +0000
  • 573cc60660 Uninstall skb debug destructor when skb is passed up mtaylor 2007-11-26 06:38:21 +0000
  • 9d7916a961 Formatting (whitespace only) for r2857 mentor 2007-11-26 01:25:35 +0000
  • 5c221193fd Fix ATH_DEBUG_GLOBAL mask mtaylor 2007-11-25 09:21:09 +0000
  • ec5e8e0a11 Re-enable skb debug destructor, chaining to original when present. Split skb and node debug flags - one ending in _ref tracks minute changes to reference counts, while the non _ref flag trackes more coarse grained debug events. Fix a node reference leak before skb_orphan detected by the debug destructor. Fix debug flag display order for athdebug and 80211debug so that the shorter name comes first and matches, otherwise only the _ref flags match. mtaylor 2007-11-25 09:09:24 +0000
  • 15587c9e84 Do not assign buf->bf_skb to null before cleanup code runs mtaylor 2007-11-25 07:58:23 +0000
  • 70c6a99d95 Restore call to skb_orphan, as the implementation varies by kernel and we cannot elide some of the steps without screwing with others we dont know about. mtaylor 2007-11-25 07:55:48 +0000
  • 394706c826 Allow node reference to be cleaned up normally mtaylor 2007-11-25 07:53:41 +0000
  • 9e643fab44 remove superfluous null assignment and do not use _locked version of ath_take_txbuf for txcont mtaylor 2007-11-25 07:51:08 +0000
  • 479c140cde Missed call during r2902 changes mtaylor 2007-11-25 07:49:33 +0000
  • 652f013b99 Cleanup some null checks mtaylor 2007-11-25 07:48:04 +0000
  • 7b3e465558 Fix a typo. mtaylor 2007-11-25 07:42:12 +0000
  • 4a2fbe421e Only install debug destructor if destructor is not already used by the kernel, otherwise we can interfere with normal cleanup. mtaylor 2007-11-25 07:39:48 +0000
  • 09e5677445 Fix the last sparse warning - find key index in a loop proski 2007-11-25 05:42:23 +0000
  • 3f9f5f6a53 Modify function names for brevity and consistency mentor 2007-11-25 04:13:49 +0000
  • 79e3ccd6ae Formatting changes, parentheses style this time mentor 2007-11-25 04:08:38 +0000
  • e3a6ae05f5 Add linefeeds to block warnings mtaylor 2007-11-24 08:40:15 +0000