On Wed, Dec 22, 2010 at 8:58 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > 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? Either way is fine, but my thinking here was to just use this as a general country flag, not just DFS region flag. We can just use one byte for DFS region and save ourself the last byte for something else in the future. Luis -- 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