aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorKevin Lo <kevlo@kevlo.org>2013-09-18 04:22:44 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-09-26 15:17:30 -0400
commit772eb433357704ec3d6e0daa727d9ec3e85f50c1 (patch)
tree4b727f09cbca70503d8c95a5b9842f29d5925ae7 /scripts/patch-kernel
parentc8820cf2afbded8e75575dcafd6c99aeea06df0c (diff)
rt2x00: Fix rf register for RT3070
Fix RT3070 chip RF initial value to be similar to the latest Ralink vendor driver. Tested on Asus N13 usb wifi dongle. Signed-off-by: Kevin Lo <kevlo@kevlo.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
n> inline struct crypto_ablkcipher *skcipher_givcrypt_reqtfm( struct skcipher_givcrypt_request *req) { return crypto_ablkcipher_reqtfm(&req->creq); } static inline int crypto_skcipher_givencrypt( struct skcipher_givcrypt_request *req) { struct ablkcipher_tfm *crt = crypto_ablkcipher_crt(skcipher_givcrypt_reqtfm(req)); return crt->givencrypt(req); }; static inline int crypto_skcipher_givdecrypt( struct skcipher_givcrypt_request *req) { struct ablkcipher_tfm *crt = crypto_ablkcipher_crt(skcipher_givcrypt_reqtfm(req)); return crt->givdecrypt(req); }; static inline void skcipher_givcrypt_set_tfm( struct skcipher_givcrypt_request *req, struct crypto_ablkcipher *tfm) { req->creq.base.tfm = crypto_ablkcipher_tfm(tfm); } static inline struct skcipher_givcrypt_request *skcipher_givcrypt_cast( struct crypto_async_request *req) { return container_of(ablkcipher_request_cast(req), struct skcipher_givcrypt_request, creq); } static inline struct skcipher_givcrypt_request *skcipher_givcrypt_alloc( struct crypto_ablkcipher *tfm, gfp_t gfp) { struct skcipher_givcrypt_request *req; req = kmalloc(sizeof(struct skcipher_givcrypt_request) + crypto_ablkcipher_reqsize(tfm), gfp); if (likely(req)) skcipher_givcrypt_set_tfm(req, tfm); return req; } static inline void skcipher_givcrypt_free(struct skcipher_givcrypt_request *req) { kfree(req); } static inline void skcipher_givcrypt_set_callback( struct skcipher_givcrypt_request *req, u32 flags, crypto_completion_t complete, void *data) { ablkcipher_request_set_callback(&req->creq, flags, complete, data); } static inline void skcipher_givcrypt_set_crypt( struct skcipher_givcrypt_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int nbytes, void *iv) { ablkcipher_request_set_crypt(&req->creq, src, dst, nbytes, iv); } static inline void skcipher_givcrypt_set_giv( struct skcipher_givcrypt_request *req, u8 *giv, u64 seq) { req->giv = giv; req->seq = seq; } #endif /* _CRYPTO_SKCIPHER_H */