1. 11 10月, 2007 1 次提交
    • J
      [MAC80211]: embed key conf in key, fix driver interface · 8f20fc24
      Johannes Berg 提交于
      This patch embeds the struct ieee80211_key_conf into struct ieee80211_key
      and thus avoids allocations and having data present twice.
      
      This required some more changes:
       1) The removal of the IEEE80211_KEY_DEFAULT_TX_KEY key flag.
          This flag isn't used by drivers nor should it be since
          we have a set_key_idx() callback. Maybe that callback needs
          to be extended to include the key conf, but only a driver that
          requires it will tell.
       2) The removal of the IEEE80211_KEY_DEFAULT_WEP_ONLY key flag.
          This flag is global, so it shouldn't be passed in the key
          conf structure. Pass it to the function instead.
      
      Also, this patch removes the AID parameter to the set_key() callback
      because it is currently unused and the hardware currently cannot know
      about the AID anyway. I suspect this was used with some hardware that
      actually selected the AID itself, but that functionality was removed.
      
      Additionally, I've removed the ALG_NULL key algorithm since we have
      ALG_NONE.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Acked-by: NMichael Wu <flamingice@sourmilk.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f20fc24
  2. 06 5月, 2007 2 次提交