linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ath5k in ad-hoc mode and encryption
@ 2008-02-29 23:08 Krzysztof Halasa
  2008-02-29 23:49 ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Halasa @ 2008-02-29 23:08 UTC (permalink / raw)
  To: linux-wireless

A simple question I hope.

I want to experiment with point-point encrypted wifi link. Have 2
machines with AR5212, 5213, 5213A+RF2112A or something like that.

iwlist enc / iwlist keys says:
wlan0     2 key sizes : 40, 104bits                                             
          4 keys available :                                                    
                [1]: off                                                        
                [2]: off                                                        
                [3]: off                                                        
                [4]: off                                                        
          Current Transmit Key: [1]                                             

iwlist auth:
wlan0     Authentication capabilities :                                         
                WPA                                                             
                WPA2                                                            
                CIPHER-TKIP                                                     
                CIPHER-CCMP                                                     
          Current Authentication algorithm :                                    
                open                                                            
                shared-key   

iwlist wpakeys:                                                
wlan0     2 key sizes : 40, 104bits                                             
          4 keys available :                                                    
Error reading wpa keys (SIOCGIWENCODEEXT): Operation not supported              


Now, is it possible to use, for example, CCMP cipher with 256-bit key?
How do I set the key and CCMP mode?

Or, how do I set 104-bit and WPA+TKIP?

IOW, how do I set it up?


I noticed "iwconfig wlan0 key XXXXX" (104 bits) make the transmitting
card encrypt data, but the receiving card doesn't seem to decrypt them
(tcpdump shows encrypted traffic on receiving wlan0 and nothing
works).

Perhaps there is some faq or example?
-- 
Krzysztof Halasa

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ath5k in ad-hoc mode and encryption
  2008-02-29 23:08 ath5k in ad-hoc mode and encryption Krzysztof Halasa
@ 2008-02-29 23:49 ` Dan Williams
  2008-03-01 14:15   ` Krzysztof Halasa
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2008-02-29 23:49 UTC (permalink / raw)
  To: Krzysztof Halasa; +Cc: linux-wireless

On Sat, 2008-03-01 at 00:08 +0100, Krzysztof Halasa wrote:
> A simple question I hope.
> 
> I want to experiment with point-point encrypted wifi link. Have 2
> machines with AR5212, 5213, 5213A+RF2112A or something like that.
> 
> iwlist enc / iwlist keys says:
> wlan0     2 key sizes : 40, 104bits                                             
>           4 keys available :                                                    
>                 [1]: off                                                        
>                 [2]: off                                                        
>                 [3]: off                                                        
>                 [4]: off                                                        
>           Current Transmit Key: [1]                                             
> 
> iwlist auth:
> wlan0     Authentication capabilities :                                         
>                 WPA                                                             
>                 WPA2                                                            
>                 CIPHER-TKIP                                                     
>                 CIPHER-CCMP                                                     
>           Current Authentication algorithm :                                    
>                 open                                                            
>                 shared-key   
> 
> iwlist wpakeys:                                                
> wlan0     2 key sizes : 40, 104bits                                             
>           4 keys available :                                                    
> Error reading wpa keys (SIOCGIWENCODEEXT): Operation not supported              
> 
> 
> Now, is it possible to use, for example, CCMP cipher with 256-bit key?
> How do I set the key and CCMP mode?
> 
> Or, how do I set 104-bit and WPA+TKIP?
> 
> IOW, how do I set it up?

You use wpa_supplicant with an ad-hoc WPA config (ie,
key_mgmt=WPA-NONE).  I don't think iwconfig has the ability to set TKIP
& CCMP keys, thought it might have grown that ability when I wasn't
looking.

Dan

> 
> I noticed "iwconfig wlan0 key XXXXX" (104 bits) make the transmitting
> card encrypt data, but the receiving card doesn't seem to decrypt them
> (tcpdump shows encrypted traffic on receiving wlan0 and nothing
> works).
> 
> Perhaps there is some faq or example?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ath5k in ad-hoc mode and encryption
  2008-02-29 23:49 ` Dan Williams
@ 2008-03-01 14:15   ` Krzysztof Halasa
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Halasa @ 2008-03-01 14:15 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless

Dan Williams <dcbw@redhat.com> writes:

> You use wpa_supplicant with an ad-hoc WPA config (ie,
> key_mgmt=WPA-NONE).  I don't think iwconfig has the ability to set TKIP
> & CCMP keys, thought it might have grown that ability when I wasn't
> looking.

Thanks.
-- 
Krzysztof Halasa

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-01 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 23:08 ath5k in ad-hoc mode and encryption Krzysztof Halasa
2008-02-29 23:49 ` Dan Williams
2008-03-01 14:15   ` Krzysztof Halasa

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).