diff --git a/net-wireless/crda/files/crda-3.18-python3.patch b/net-wireless/crda/files/crda-3.18-python3.patch
index 4f8756862d2b1332f5c7b6ddd5a1a660b5727948..22212d8218c887574e99f00276c2fc9f667cc1e5 100644
--- a/net-wireless/crda/files/crda-3.18-python3.patch
+++ b/net-wireless/crda/files/crda-3.18-python3.patch
@@ -43,7 +43,7 @@ diff --git a/utils/key2pub.py b/utils/key2pub.py
 index 3e84cd2..c76cbbb 100755
 --- a/utils/key2pub.py
 +++ b/utils/key2pub.py
-@@ -1,126 +1,128 @@
+@@ -1,127 +1,128 @@
  #!/usr/bin/env python
  
 +import io
@@ -145,6 +145,7 @@ index 3e84cd2..c76cbbb 100755
 +
      import struct
 -    output.write('#include <stdint.h>\n')
+-    output.write('#include <openssl/bn.h>\n')
      if len(struct.pack('@L', 0)) == 8:
          return print_ssl_64(output, name, val)
      else:
@@ -170,9 +171,10 @@ index 3e84cd2..c76cbbb 100755
  
  static struct pubkey keys[] = {
  ''')
-     for n in xrange(n + 1):
+-    for n in xrange(n + 1):
 -        output.write('	KEYS(e_%d, n_%d),\n' % (n, n))
 -    output.write('};\n')
++    for n in range(n + 1):
 +        output.write(u'	KEYS(e_{0}, n_{0}),\n'.format(n))
 +    output.write(u'};\n')
      pass