fixed encryption bug for access point
Merge pull request #10 from danstaples/master

fixed bug for access point encryption