Hi, This patch moves the boring set_security logic (which is currently duplicated line-for-line in zd1211 and bcm43xx) into softmac, and adds a hook so that drivers can still be notified about sec changes (so that they can upload keys to the device, etc). I also attached a patch for bcm43xx to illustrate this. However, the set_security stuff in ieee80211 feels kind of sub-standard (or have I just misunderstood it?), how each driver is expected to populate ieee->sec from that callback, and how the driver doesn't get an opportunity to say "actually, I can't work with that configuration". Is it worth fixing the whole thing, or is this kind of patch acceptable? Thanks, Daniel