netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Kondratiev <vkondra@mail.ru>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@oss.sgi.com, mcgrof@studorgs.rutgers.edu,
	acx100-devel@lists.sourceforge.net, prism54-devel@prism54.org
Subject: Re: generic 802.11 stack
Date: Sat, 2 Oct 2004 01:25:32 +0200	[thread overview]
Message-ID: <200410020125.40669.vkondra@mail.ru> (raw)
In-Reply-To: <20041001155310.515ee09e.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 2728 bytes --]

On Saturday 02 October 2004 00:53, David S. Miller wrote:
DS>
DS> Why this change?
DS>
DS> -extern void hh_data_is_too_small(void);
DS> +static void hh_data_is_too_small(void)
DS> +{
DS> +    printk(KERN_ERR "hh_data_is_too_small\n");
DS> +}

My misunderstanding. Sorry.

DS>
DS> We don't define the function because it is meant to
DS> cause a compile time error if hh->hh_data is too small to
DS> hold the full p80211_data_header structure.  Please undo
DS> this change.
DS>
DS> And therefore undo this change too:
DS>
DS> - if (sizeof(hh->hh_data) < sizeof(*p))
DS> + if (sizeof(hh->hh_data) < sizeof(*p)) {
DS>    hh_data_is_too_small();
DS> +        return -1;
DS> +    }

As above.

DS>
DS> Next, what's this?
DS>
DS> - dev->hard_header = p80211_header;
DS> + dev->hard_header     = p80211_header;
DS>   dev->rebuild_header  = p80211_rebuild_header;
DS>
DS> Your merely changing the tab character after dev->hard_header
DS> into spaces.  Please don't do this.  This makes a lot of white
DS> space noise when making diffs against the original davem-p80211
DS> code thus making it harder to review the changes you actually made.

My editor did it for me. I'll be more carefull to check this behind the scene 
things. Maybe, I'll do one patch to do all spaces accordingly to kernel 
coding style, and since that will follow it.

DS>
DS> Next:
DS>
DS> +    dev->mtu                = 2304;
DS> +    dev->type               = ARPHRD_IEEE80211;
DS>
DS> Is this really the correct default MTU for wireless devices?

Yes, 802.11e (QoS) defines this value.

DS>
DS> @@ -342,7 +343,7 @@ int p80211_recv_cfackpoll(struct sk_buff
DS>  static struct packet_type p80211_packet_type = {
DS>   .type = __constant_htons(ETH_P_802_11),
DS>   .func = p80211_rcv,
DS> - .data = (void *) 1, /* understands shared SKBs */
DS> + .af_packet_priv = (void *) 1, /* understands shared SKBs */
DS>  };
DS>
DS> You can just remove this line entirely for 2.6.x kernels.

Thanks, I will. I was confused by this member and did simplest trick to make 
it compile.

DS>
DS> Otherwise looks fine :-)

Really, thus far I did almost nothing. It is just foundation for playing with 
stack. My intention was to decouple driver and stack ASAP to enable separate 
development for each part.

Next step I will do data path, with some code to enable QoS 26 byte headers 
but without real QoS, which is, by the way, pretty complicated as defined in 
TGe. May be, it is better to start with WME w.r.t QoS.

Then, it is management's turn. Association, scanning.

Then, once again, data path. Fragmentation, reassembly. Framework for 
security.

Then - let's see how this will develop.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-10-01 23:25 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 18:11 [RFC] acx100 inclusion in mainline; generic 802.11 stack Denis Vlasenko
2004-08-31 18:21 ` Jeff Garzik
2004-08-31 19:14   ` Vladimir Kondratiev
2004-08-31 21:37     ` Luis R. Rodriguez
2004-08-31 22:06       ` Vladimir Kondratiev
2004-09-01  2:22       ` Jouni Malinen
2004-09-02 20:24   ` Vladimir Kondratiev
2004-09-02 20:33     ` Jeff Garzik
2004-09-03 17:37       ` Vladimir Kondratiev
2004-09-03 20:29         ` Jeff Garzik
2004-09-06 18:13 ` Sam Leffler
2004-09-06 18:57   ` Vladimir Kondratiev
2004-09-06 19:30     ` Sam Leffler
2004-09-06 20:09       ` Vladimir Kondratiev
2004-09-06 23:04         ` Sam Leffler
2004-09-07  1:23   ` David S. Miller
2004-09-07  4:32     ` Sam Leffler
2004-09-07  6:47       ` David S. Miller
2004-09-07 17:22         ` Vladimir Kondratiev
2004-09-07 17:32           ` David S. Miller
2004-09-07 18:06             ` Vladimir Kondratiev
2004-09-07 18:08               ` David S. Miller
2004-09-07 18:41                 ` Vladimir Kondratiev
2004-09-07 19:10                   ` David S. Miller
2004-09-07 19:54                     ` Vladimir Kondratiev
2004-09-09  2:40                       ` Sam Leffler
2004-09-09  4:36                       ` Luis R. Rodriguez
2004-09-07 17:03       ` [RFC] acx100 inclusion in mainline; " greg chesson
2004-09-07 17:10         ` David S. Miller
2004-09-07 18:14           ` greg chesson
2004-09-07 18:16             ` David S. Miller
2004-09-08  7:38           ` jamal
2004-09-08 16:02             ` greg chesson
2004-09-08 19:51               ` Vladimir Kondratiev
2004-09-08 20:52                 ` greg chesson
2004-09-08 21:54                   ` Vladimir Kondratiev
2004-09-09 17:06                     ` greg chesson
2004-09-12 18:03                       ` Vladimir Kondratiev
2004-09-13  0:09                         ` Jeff Garzik
2004-09-13  0:45                           ` David S. Miller
2004-09-15 17:57                             ` James Ketrenos
2004-09-13  0:14                         ` David S. Miller
2004-09-13  5:39                           ` Vladimir Kondratiev
2004-09-13  5:50                             ` Jeff Garzik
2004-09-13 23:21                               ` David S. Miller
2004-09-14  5:14                                 ` Vladimir Kondratiev
2004-09-14  5:35                                   ` David S. Miller
2004-09-14 23:55                                     ` Luis R. Rodriguez
2004-09-15  0:11                                       ` Jeff Garzik
2004-09-15  0:51                                         ` greg chesson
2004-09-15  1:19                                           ` Jeff Garzik
2004-09-15  3:02                                             ` Luis R. Rodriguez
2004-09-15  3:05                                               ` Jeff Garzik
2004-09-15  3:17                                                 ` Luis R. Rodriguez
2004-09-15  5:44                                                   ` Vladimir Kondratiev
2004-09-15 14:47                                                     ` greg chesson
2004-09-15 15:55                                                       ` David S. Miller
2004-09-15 16:48                                                         ` Sam Leffler
2004-09-15 17:06                                                           ` David S. Miller
2004-09-28 12:20                   ` [RFC] acx100 inclusion in mainline; " Luis R. Rodriguez
2004-09-28 20:29                     ` Vladimir Kondratiev
2004-09-29  0:48                       ` Luis R. Rodriguez
2004-09-29  7:10                         ` Vladimir Kondratiev
2004-09-29  8:00                           ` Luis R. Rodriguez
2004-10-01 14:30                             ` Vladimir Kondratiev
2004-10-01 22:53                               ` David S. Miller
2004-10-01 23:25                                 ` Vladimir Kondratiev [this message]
2004-10-02  0:11                                   ` David S. Miller
2004-09-08 21:19                 ` [Acx100-devel] Re: [RFC] acx100 inclusion in mainline; " Denis Vlasenko
2004-09-09  3:31                   ` Sam Leffler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410020125.40669.vkondra@mail.ru \
    --to=vkondra@mail.ru \
    --cc=acx100-devel@lists.sourceforge.net \
    --cc=davem@davemloft.net \
    --cc=mcgrof@studorgs.rutgers.edu \
    --cc=netdev@oss.sgi.com \
    --cc=prism54-devel@prism54.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).