On Mon, 2010-12-20 at 12:02 -0500, Luis R. Rodriguez wrote: > for alpha2 in countrynames: > coll = countries[alpha2] > # struct regdb_file_reg_country > - output.write(struct.pack('>ccxxI', str(alpha2[0]), str(alpha2[1]), reg_rules_collections[coll.permissions])) > + output.write(struct.pack('>cchI', str(alpha2[0]), str(alpha2[1]), coll.cflags, reg_rules_collections[coll.permissions])) maybe you shouldn't be using the full two bytes we have since you just need three bits? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html