]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc/wifi.h
wifi: update wifi.h header
[plan9front.git] / sys / src / 9 / pc / wifi.h
index bca2e07e97211d44a69c84f7572d77ca27dcad61..2171afd21b61863e5a1427ddd7668ab033b6436a 100644 (file)
@@ -15,10 +15,10 @@ enum {
 
 struct Wkey
 {
-       int     cipher;
-       int     len;
-       uchar   key[32];
-       uvlong  tsc;
+       int             cipher;
+       int             len;
+       uvlong          tsc;
+       uchar           key[];
 };
 
 struct Wnode
@@ -30,8 +30,8 @@ struct Wnode
 
        int     rsnelen;
        uchar   rsne[258];
-       Wkey    txkey[1];
-       Wkey    rxkey[5];
+       Wkey    *txkey[1];
+       Wkey    *rxkey[5];
 
        int     aid;            /* association id */
        ulong   lastsend;
@@ -58,6 +58,7 @@ struct Wifi
 
        int     debug;
 
+       RWlock  crypt;
        Queue   *iq;
        ulong   watchdog;
        ulong   lastauth;